Difference between revisions of "Installation/Manual"

From PaparazziUAV
Jump to navigation Jump to search
(fix link to debian/control file)
(cleanup, throw away old info, move fedora 19 stuff to Installation/FromScratch)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<categorytree style="float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;" mode=pages>Installation</categorytree>
#REDIRECT [[Installation/FromScratch]]
__TOC__
'''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 [https://github.com/paparazzi/paparazzi-portability-support/blob/master/debian/paparazzi-dev/debian/control <tt>debian/control</tt>] file and may help users of other distributions.
 
Some corresponding source tarballs can be downloaded from [https://launchpad.net/~paparazzi-uav/+archive/ppa/+packages paparazzi-uav ppa] on launchpad.
 
 
For distributions using RPM packaging, the [http://packages.debian.org/unstable/source/alien 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...
 
Note that ocaml-xml-light version 2.2 in its official source release and in some distribution packages requires a patch in order to function properly with paparazzi. Find patch [https://github.com/OCamlPro/opam-repository/blob/master/packages/xml-light.2.2/files/fix_dtd_trace.patch here].
 
Then you need [http://packages.debian.org/unstable/source/alien 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
 
These Ivy binary packages will only work with the corresponding version of ocaml. Ivy repository is located [http://www.eei.cena.fr/products/ivy/download/packages/ here].
 
== 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.
 
[[Category:Software]] [[Category:User_Documentation]] [[Category:Installation]]

Latest revision as of 05:20, 16 September 2014