« Previous - Version 7/12 (diff) - Next » - Current version
Pieter Van den Hombergh, 05/09/2014 02:01 pm


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, 11.10, 12.04 and 12.10.
The steps to execute are
  1. download (checkout) from the repository
    $ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
    
  2. build
    $ cd auto-qcm
    $ make deb
    

    This might show some unfulfilled dependencies and therefore might fail.
    The dependencies may include libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
  3. Install these dependencies, then have another go (two steps).
    $ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
    $ make deb
    

    This should produce a .deb package in the /tmp directory, which can be checked.
    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.
  4. After that you're done and can install this package the usual way with e.g. (As I did just now on my ubuntu 10.04 machine)
    sudo  dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb 
    

dpkg might complain that some dependencies are not fulfilled. You can install the using apt-get install the usual way.
You should also consider installing the recommended packages (see the Recommends: line in source:debian/control) with apt-get, as dpkg does not tell you if they are missing!

If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and the rerun the package making.

$ cd .../auto-qcm
$ svn up
$ make deb

You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.