Building AMC from subversion repository (deprecated)
Version 1 (Pieter Van den Hombergh, 05/09/2014 02:01 pm) → Version 2/12 (Pieter Van den Hombergh, 05/09/2014 02:01 pm)
h1. Building AMC from repository
Alexis taught me how to build from sources.
This how to assumes an debian/ubuntu system and has been tested on ubuntu 10.04 and 11.10.
The steps to execute are
# download (checkout) from the repository
<pre>
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
</pre>
# build
<pre>
$ cd auto-qcm
$ make deb
</pre>
This might show some unfulfilled dependencies and therefore might fail.
In my case those were: that was
*libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin*
# Install these dependencies, then have another go (two steps).
<pre>
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin
$ make deb
</pre>
This should produce a .deb package in the /tmp directory, dir, which can be checked.
The package will be named auto-multiple-choice_x.y.z-u_i386.deb where x, y, z x,y,z and u depend on the revision at the moment of your checkout.
# After that you're You're done and can install this package the usual way with e.g. (As I did just now did on my ubuntu 10.04 machine)
<pre>
sudo dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb
</pre>
If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and the rerun the package making. Run step 1 and 2 again
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>
Alexis taught me how to build from sources.
This how to assumes an debian/ubuntu system and has been tested on ubuntu 10.04 and 11.10.
The steps to execute are
# download (checkout) from the repository
<pre>
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
</pre>
# build
<pre>
$ cd auto-qcm
$ make deb
</pre>
This might show some unfulfilled dependencies and therefore might fail.
In my case those were: that was
*libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin*
# Install these dependencies, then have another go (two steps).
<pre>
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin
$ make deb
</pre>
This should produce a .deb package in the /tmp directory, dir, which can be checked.
The package will be named auto-multiple-choice_x.y.z-u_i386.deb where x, y, z x,y,z and u depend on the revision at the moment of your checkout.
# After that you're You're done and can install this package the usual way with e.g. (As I did just now did on my ubuntu 10.04 machine)
<pre>
sudo dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb
</pre>
If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and the rerun the package making. Run step 1 and 2 again
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>