Installation/Manual

From PaparazziUAV
Revision as of 17:11, 4 February 2013 by Flixr (talk | contribs)
Jump to navigation Jump to search

Users of recent Debian/Ubuntu distributions are advised to use the binary packages as described in Installation/Linux.

Users of other Linux flavors or anyone needing manual control of each individual package can install them independently. The list of dependencies of the Debian package is located in the debian/control file and may help users of other distributions.

Some corresponding source tarballs can be downloaded from paparazzi-uav ppa on launchpad.


For distributions using RPM packaging, the alien tool can be used to translate a .deb package into a .rpm package.

For Fedora (Core8) users, you can install the following packages from standard repository:

  • ocaml.i386
  • ocaml-camlimages-devel.i386
  • ocaml-lablgtk-devel.i386
  • ocaml-xml-light-devel.i386
  • boa.i386
  • libgnomecanvas-devel.i386
  • libusb-devel.i386
  • pcre-devel.i386
  • arm-gp2x-linux-gcc.i386
  • arm-gp2x-linux-binutils.i386
  • glade2.i386
  • and gcc, make, subversion, gnuplot, imagemagik...

Then you need alien tool to convert packages from the paparazzi repository:

  • ivy-c
  • ivy-c-dev
  • ivy-ocaml (WARNING: debian and fedora have different path for ocaml (/usr/lib/ocaml/<version> vs. /usr/lib/ocaml), so you need to move by hand the files in /usr/lib/ocaml/<version> to /usr/lib/ocaml)
  • lpc21isp

Using 32Bit on 64Bit

If you want to run the 32bit versions on a 64bit machine for whatever reason...

In these cases, a chroot is a good compromise, while avoiding the overhead of a virtual machine (and USB device problems which may occur). Initial instructions are here for now: https://help.ubuntu.com/community/DebootstrapChroot The command you use for the bootstrap needs to reflect your architecture - I used

 sudo debootstrap --variant=buildd --arch i386 lucid /var/chroot/lucid http://gb.archive.ubuntu.com/ubuntu/

The format for schroot config files has changed as of lucid however - here is mine:

 $ cat /etc/schroot/chroot.d/lucid-i386 
 [lucid]
 description=Ubuntu 10.04 Lucid for i386
 directory=/var/chroot/lucid
 personality=linux32
 root-users=my_user
 type=directory
 users=my_user

Once you've installed the ubuntu minimal package, make sure you also enable the uni- and multiverse repos (the easiest way for me is to simply copy my host's /etc/apt/sources.lst to /var/chroot/lucid/etc/apt/sources.lst). Then follow the standard instructions above. You may need to manually set the PAPARAZZI_HOME and PAPARAZZI_SRC environment variables. You will also have to set the DISPLAY environment variable to :0.0 like so:

 export DISPLAY=:0.0

Please note, this is more advanced than the standard paparazzi installation and therefore you may encounter strange problems.