Building AMC from subversion repository (deprecated)

Version 1 (Pieter Van den Hombergh, 05/09/2014 02:01 pm)

1 1
h1. Building AMC from repository
2 1
3 1
Alexis taught me how to build from sources.
4 1
5 1
This how to assumes an debian/ubuntu  system and has been tested on ubuntu 10.04 and 11.10.
6 1
The steps to execute are
7 1
# download (checkout) from the repository
8 1
<pre>
9 1
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
10 1
</pre>
11 1
# build
12 1
<pre>
13 1
$ cd auto-qcm
14 1
$ make deb
15 1
</pre>
16 1
This might show some unfulfilled dependencies and therefore might fail.
17 1
In my case that was 
18 1
*libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin*
19 1
# Install these dependencies, then have another go (two steps).
20 1
<pre>
21 1
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin
22 1
$ make deb
23 1
</pre>
24 1
25 1
This should produce a .deb package in the /tmp dir, which can be checked.
26 1
The package will be named auto-multiple-choice_x.y.z-u_i386.deb where x,y,z and u depend on the revision at the moment of your checkout.
27 1
You're done and can install this package the usual way with e.g. (As I just now did on my 10.04 machine)
28 1
<pre>
29 1
sudo  dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb 
30 1
</pre>
31 1
32 1
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
33 1
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.
34 1
<pre>
35 1
$ cd .../auto-qcm
36 1
$ svn up
37 1
$ make deb
38 1
</pre>