<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.paparazziuav.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=U2ix</id>
	<title>PaparazziUAV - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.paparazziuav.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=U2ix"/>
	<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/wiki/Special:Contributions/U2ix"/>
	<updated>2026-05-09T06:54:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Installation/FromScratch&amp;diff=19456</id>
		<title>Installation/FromScratch</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Installation/FromScratch&amp;diff=19456"/>
		<updated>2015-02-04T19:52:34Z</updated>

		<summary type="html">&lt;p&gt;U2ix: pcre-ocaml can't be found, correct is pcre&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;categorytree style=&amp;quot;float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;&amp;quot; mode=pages&amp;gt;Installation&amp;lt;/categorytree&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
'''Users of recent Debian/Ubuntu distributions are advised to use the binary packages as described in [[Installation/Linux]].'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;'''WARNING! Only use if you are proficient in working with Linux!'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Intro ==&lt;br /&gt;
&lt;br /&gt;
Users of other Linux flavors or anyone needing manual control of each individual package can install them independently. &amp;lt;br/&amp;gt;&lt;br /&gt;
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 &amp;lt;tt&amp;gt;debian/control&amp;lt;/tt&amp;gt;] file and may help users of other distributions.&lt;br /&gt;
&lt;br /&gt;
Some corresponding source tarballs can be downloaded from [https://launchpad.net/~paparazzi-uav/+archive/ppa/+packages paparazzi-uav ppa] on launchpad. (maybe building the packages from source is more reliable in view of dependencies)&lt;br /&gt;
&lt;br /&gt;
For distributions using RPM packaging, the [http://packages.debian.org/unstable/source/alien alien] tool can be used to convert a .deb package into a .rpm package.&lt;br /&gt;
&lt;br /&gt;
As with all Wiki pages, also this page is a work in progress. Try to be a big help to the Paparazzi project and improve this page whenever you can. If you have a distribution different from Ubuntu which doesn't satisfy any other dependency and have instructions about compiling it, packaging it, feel free to add any reference on how to do that on this wikipage.&lt;br /&gt;
&lt;br /&gt;
== Goal ==&lt;br /&gt;
&lt;br /&gt;
The goal of this page is to clarify about which version of each piece of software has to be compiled, where to find that software, patches needed to make it compile on Linux, maybe even FreeBSD or OSX.&lt;br /&gt;
&lt;br /&gt;
== Fedora 19  ==&lt;br /&gt;
&lt;br /&gt;
To build paparazzi-uav on Fedora 19, you must install the next packages from the official repository:&lt;br /&gt;
* ocaml&lt;br /&gt;
* ocaml-findlib&lt;br /&gt;
* ocaml-xml-light&lt;br /&gt;
* ocaml-ocamlnet&lt;br /&gt;
* ocaml-lablgtk-devel&lt;br /&gt;
* libxml2-devel&lt;br /&gt;
* SDL-devel&lt;br /&gt;
* libusb-devel&lt;br /&gt;
&lt;br /&gt;
Paparazzi-uav needs to include some ocaml headers when it compiles the simulator, then please be sure that they are included. If not, edit sw/simulator/Makefile and add:&lt;br /&gt;
&lt;br /&gt;
  CAML_CFLAGS = -I/usr/lib64/ocaml&lt;br /&gt;
&lt;br /&gt;
The following packages must be built from source code (they are not included in the official repository): &lt;br /&gt;
* ivy-c &lt;br /&gt;
* ivy-ocaml &lt;br /&gt;
&lt;br /&gt;
Paparazzi-uav was successfully compiled using ivy-c 3.14 (downloaded from SVN repository, revision #3602) and ivy-ocaml 1.2. Please note that the ivy-c version is an unstable version!&lt;br /&gt;
&lt;br /&gt;
Additionally, you need install the next RPMs to build ivy-c:&lt;br /&gt;
* pcre-devel&lt;br /&gt;
* libXt-devel&lt;br /&gt;
* tcl-devel&lt;br /&gt;
* glib2-devel&lt;br /&gt;
&lt;br /&gt;
Don't forget to set the environment variable PKG_CONFIG before building ivy-ocaml, e.g:&lt;br /&gt;
&lt;br /&gt;
  $ export PKG_CONFIG=/usr/local/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
== Installing the Cross compiler toolchain ==&lt;br /&gt;
&lt;br /&gt;
There are currently two different toolchains available that can be used on Linux based systems with Paparazzi. For more information see [[Installation/Linux#ARM_embedded_toolchain]]&lt;br /&gt;
&lt;br /&gt;
== Installing OCaml packages using OPAM ==&lt;br /&gt;
&lt;br /&gt;
One possibility to install and manage OCaml packages is [http://opam.ocamlpro.com/ OPAM (OCaml Package Manager)]:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Please first check the official [http://opam.ocaml.org/doc/Install.html OPAM install guide] for the simplest method.'''&amp;lt;br/&amp;gt;&lt;br /&gt;
To install it from the latest git tree run:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;git clone https://github.com/OCamlPro/opam.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd opam&lt;br /&gt;
 ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
 opam init&lt;br /&gt;
 eval `opam config env`&lt;br /&gt;
&lt;br /&gt;
Update your shell environment as per opam init's instructions. E.g. add to your ''~/.profile'':&lt;br /&gt;
 eval `opam config env`&lt;br /&gt;
&lt;br /&gt;
Build and install OCaml libs:&lt;br /&gt;
 opam install ocamlfind xml-light pcre ocamlnet&lt;br /&gt;
 opam install -v lablgtk&lt;br /&gt;
&lt;br /&gt;
==  IVY ==&lt;br /&gt;
&lt;br /&gt;
IVY is a simple protocol and a set of open-source libraries and programs that allows applications to broadcast information through text messages, with a subscription mechanism based on regular expressions. The project can be found at: http://www.eei.cena.fr/products/ivy/  &lt;br /&gt;
&lt;br /&gt;
In the paparazzi project, Ivy is used to send telemetry data to where ever you want.&lt;br /&gt;
&lt;br /&gt;
NOTE: Do not confuse this IVY with the Apache Ivy project. &lt;br /&gt;
&lt;br /&gt;
=== Ivy-python ===&lt;br /&gt;
&lt;br /&gt;
The ivy-python package makes it possible to use the IVY libraries from within the Python programming language. The ivy-python package is architecture independent, so it can be downloaded from the Ubuntu or Debian paparazzi repository.&lt;br /&gt;
&lt;br /&gt;
The easiest way to instally it on non Debian based systems is using [https://pip.pypa.io/ pip] to install the [https://pypi.python.org/pypi/ivy-python ivy-python package] from [https://pypi.python.org/pypi PyPi - the Python Package Index].&lt;br /&gt;
 pip install ivy-python&lt;br /&gt;
&lt;br /&gt;
Or install from the source repository via &lt;br /&gt;
 &lt;br /&gt;
 git clone https://gitorious.org/ivybus/ivy-python.git&lt;br /&gt;
 cd ivy-python&lt;br /&gt;
 ./setup.py install&lt;br /&gt;
&lt;br /&gt;
=== Ivy-c ===&lt;br /&gt;
&lt;br /&gt;
To be able to use ivy-c, the libraries need to be installed. &lt;br /&gt;
&lt;br /&gt;
Required packages (Debian based):&lt;br /&gt;
* tk-dev&lt;br /&gt;
* libpcre3-dev&lt;br /&gt;
* libxt-dev&lt;br /&gt;
* pkg-config&lt;br /&gt;
* libglib2.0-dev&lt;br /&gt;
&lt;br /&gt;
Download source, compile and install libraries:&lt;br /&gt;
&lt;br /&gt;
 # mkdir -p /opt/ivy-c &lt;br /&gt;
 # cd /opt/ivy-c&lt;br /&gt;
 # svn co https://svn.tls.cena.fr/svn/ivy/ivy-c/trunk&lt;br /&gt;
 # cd /opt/ivy-c/trunk/src&lt;br /&gt;
 # make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
It is possible you get errors of the test module when compiling, just ignore the messages, it is not important for the Paparazzi project. Contact the IVY team to help them also to resolve also the testing makefile issue.&lt;br /&gt;
&lt;br /&gt;
==== troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Error message:&lt;br /&gt;
 gcc -c -O2 -Wall -Wshadow -fPIC -I/usr/include/tcl8.4 -DTCL_CHANNEL_INTEGRATION  ivytcl.c&lt;br /&gt;
 ivytcl.c:28:17: fatal error: tcl.h: No such file or directory&lt;br /&gt;
&lt;br /&gt;
The Makefile cannot read the tcl-dev version you have installed and assumes that version 8.4 is installed, but can't find the appropriate folder.&amp;lt;br/&amp;gt;&lt;br /&gt;
Edit the line 57 of the Makefile from TCLVERS=8.4 according to your installed version, or just delete the 8.4, both work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Can't find 64bit libs:&lt;br /&gt;
Your ivy libs were probably installed to /usr/local/lib64 and you have to make symbolic links so that they will be found:&lt;br /&gt;
 $ sudo ln -s /usr/local/lib64/libivy.so /usr/local/lib64/libivy.so.3 /usr/lib&lt;br /&gt;
or &lt;br /&gt;
 sudo ln -s /usr/local/lib64/libivy.so /usr/local/lib64/libivy.so.3 /usr/local/lib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you get an error relating to ivytestready.c, make the following changes:&lt;br /&gt;
 mkdir /opt/ivy-c/trunk/tools/Ivy&lt;br /&gt;
 cd /opt/ivy-c/trunk/tools/Ivy&lt;br /&gt;
 cp ../../src/ivy.h .&lt;br /&gt;
 cp ../../src/ivyloop.h .&lt;br /&gt;
 cp ../../src/ivysocket.h .&lt;br /&gt;
 cp ../../src/timer.h .&lt;br /&gt;
 cd ~/develop/ivy-c/trunk/src&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
This copies files from the src directory to the Ivy folder in tools which did not appear after running svn above.&lt;br /&gt;
&lt;br /&gt;
=== Ivy-OCaml ===&lt;br /&gt;
&lt;br /&gt;
ivy-ocaml provides OCaml bindings for ivy-c and is needed for most of the ground segment agents that are written in OCaml like [[Server]] and [[GCS]].&lt;br /&gt;
&lt;br /&gt;
Download source, compile and install libraries:&lt;br /&gt;
&lt;br /&gt;
 # mkdir -p /opt/ivy-ocaml&lt;br /&gt;
 # cd /opt/ivy-ocaml&lt;br /&gt;
 # svn co https://svn.tls.cena.fr/svn/ivy/ivy-ocaml/trunk&lt;br /&gt;
 # cd /opt/ivy-ocaml/trunk&lt;br /&gt;
 # make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
==== ivy-ocaml via OPAM ====&lt;br /&gt;
Or use OPAM: While the source repository and debian package is named ''ivy-ocaml'', in OPAM it is only named ''ivy'' (since it is obviously for OCaml).&lt;br /&gt;
&lt;br /&gt;
 $ opam update&lt;br /&gt;
 $ opam install ivy&lt;br /&gt;
&lt;br /&gt;
== LPC21ISP ==&lt;br /&gt;
&lt;br /&gt;
lpc21isp is only needed to serially flash the LPC2148 based autopilots (e.g. [[Lpc21BootloaderUpload bootloader]] for tiny, twog, umarim). LPC21ISP is an in-circuit programming (ISP) tool for the microcontroller used on the Paparazzi autopilot boards. The lpc21isp project is hosted on sourceforge and one can find the source packages and information at http://sourceforge.net/projects/lpc21isp/ &lt;br /&gt;
&lt;br /&gt;
Get the SVN version via&lt;br /&gt;
 &lt;br /&gt;
 $ mkdir -p /opt/lpc21isp&lt;br /&gt;
 $ cd /opt/lpc21isp&lt;br /&gt;
 $ svn co https://lpc21isp.svn.sourceforge.net/svnroot/lpc21isp lpc21&lt;br /&gt;
&lt;br /&gt;
To compile go into the source directory and then do&lt;br /&gt;
&lt;br /&gt;
 $ cd lpc21&lt;br /&gt;
 $ make -f Makefile clean all&lt;br /&gt;
&lt;br /&gt;
To install&lt;br /&gt;
&lt;br /&gt;
 $ exportline=&amp;quot;PATH=$PATH:/opt/lpc21isp&amp;quot;&lt;br /&gt;
 $ if grep -Fxq &amp;quot;$exportline&amp;quot; ~/.profile; then echo nothing to do ; else echo $exportline &amp;gt;&amp;gt; ~/.profile; fi&lt;br /&gt;
 $ source ~/.profile&lt;br /&gt;
&lt;br /&gt;
== Paparazzi-dev Debian/Ubuntu packages ==&lt;br /&gt;
&lt;br /&gt;
For Ubuntu users, you can install the following packages from standard repository. You can just copy the line(s) and paste into your terminal. But do not copy the $ sign, this symbol is just added on this page to show that it is to be pasted at a normal terminal prompt.&lt;br /&gt;
&lt;br /&gt;
=== Whole lot in one ===&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install ocaml libcamlimages-ocaml liblablgtk2-ocaml-dev liblablgtk2-gl-ocaml-dev \&lt;br /&gt;
                       liblablgtk2-gnome-ocaml-dev libxml-light-ocaml-dev libocamlnet-ocaml-dev libpcre-ocaml \&lt;br /&gt;
                       libpcre-ocaml-dev libgnomecanvas2-0 libgnomecanvas2-dev libglade2-0 libglade2-dev make build-essential \&lt;br /&gt;
                       git gnuplot boa m4 libtool libftdi-dev libmpfr-dev tcl8.5-dev xutils-dev&lt;br /&gt;
&lt;br /&gt;
=== Ocaml and libraries ===&lt;br /&gt;
&lt;br /&gt;
Ocaml, short for Objective Caml is the most popular variant of the Caml language. The Paparazzi Ground Control Station (GCS) and some of it's tools are crafted in this language.&lt;br /&gt;
&lt;br /&gt;
* ocaml, ocaml-camlimages-devel, ocaml-lablgtk2-devel, ocaml-xml-light-devel, ocamlnet-ocaml-devel&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install ocaml libcamlimages-ocaml liblablgtk2-ocaml-dev liblablgtk2-gl-ocaml-dev \&lt;br /&gt;
                        liblablgtk2-gnome-ocaml-dev libxml-light-ocaml-dev libocamlnet-ocaml-dev&lt;br /&gt;
&lt;br /&gt;
=== Gnome canvas Library ===&lt;br /&gt;
&lt;br /&gt;
The GnomeCanvas is an engine for structured graphics that offers a rich imaging model, high performance rendering, and a powerful, high level API. This widget can be used for flexible display of graphics and for creating interactive user interface elements.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libgnomecanvas2-0 libgnomecanvas2-dev&lt;br /&gt;
&lt;br /&gt;
=== USB Library ===&lt;br /&gt;
&lt;br /&gt;
The libusb project aims to create a library for use by user level applications to access USB devices regardless of OS. [http://www.libusb.org]&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libusb-dev&lt;br /&gt;
&lt;br /&gt;
=== Ocaml PCRE ===&lt;br /&gt;
&lt;br /&gt;
This OCaml-library interfaces the PCRE (Perl-compatibility regular expressions) C library. it can be used for matching regular expressions which are written in Perl style.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libpcre-ocaml libpcre-ocaml-dev&lt;br /&gt;
&lt;br /&gt;
=== Glade Library ===&lt;br /&gt;
&lt;br /&gt;
Libglade is a library that performs a similar job to the C source output routines in the GLADE user interface builder. Whereas GLADE's output routines create C source code that must be compiled, libglade builds the interface from an XML file (GLADE's save format) at runtime. This can allow modifying the user interface without recompiling.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libglade2-0 libglade2-dev&lt;br /&gt;
&lt;br /&gt;
=== Tcl/Tk ===&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install tcl-dev&lt;br /&gt;
&lt;br /&gt;
Also the some utils are required to compile and  install Ivy.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install xutils-dev&lt;br /&gt;
&lt;br /&gt;
=== Make ===&lt;br /&gt;
&lt;br /&gt;
GNU Make is an utility which controls the generation of executables and other target files of a program from the program's source files. &lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install make&lt;br /&gt;
&lt;br /&gt;
=== Build essential ===&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install build-essential&lt;br /&gt;
&lt;br /&gt;
=== Libtool ===&lt;br /&gt;
&lt;br /&gt;
GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface. Creating the files for Paparazzi software building becomes less cumbersome by using this tool.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libtool&lt;br /&gt;
&lt;br /&gt;
=== libpcre3-dev ===&lt;br /&gt;
&lt;br /&gt;
Required for compiling Ivy-C.&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install libpcre3-dev&lt;br /&gt;
&lt;br /&gt;
=== Git Client ===&lt;br /&gt;
&lt;br /&gt;
Git is a version control system. Version control systems allow many individuals to collaborate on the Paparazzi source code. This is needed to retrieve the latest sourcecode from various packages and Paparazzi sourcecode itself.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
=== Subversion ===&lt;br /&gt;
&lt;br /&gt;
Version control system, required for cloning the ivy packages.&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install subversion&lt;br /&gt;
&lt;br /&gt;
=== GNU Plot ===&lt;br /&gt;
&lt;br /&gt;
A command-line driven interactive plotting program. Unknow if it is used&lt;br /&gt;
 &lt;br /&gt;
 $ sudo apt-get install gnuplot&lt;br /&gt;
&lt;br /&gt;
=== Meld ===&lt;br /&gt;
&lt;br /&gt;
Meld is a graphical front end to the diff program. It provides a side-by-side view of the differences between two files. It is used by the Paparazzi Center when configuration changes are not yet saved and the option comes along where one either can keep or view changes made in aircraft- and other configuration files.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install meld&lt;br /&gt;
&lt;br /&gt;
=== FTDI library ===&lt;br /&gt;
&lt;br /&gt;
libftdi is a library that talks to FTDI's 232 type chips, including the popular bitbang mode, using libusb. A library to be able to use with a debugging Autopilot hardware boards.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libftdi-dev &lt;br /&gt;
&lt;br /&gt;
=== MPFR library ===&lt;br /&gt;
&lt;br /&gt;
The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libmpfr-dev&lt;br /&gt;
&lt;br /&gt;
=== ImageMagick ===&lt;br /&gt;
&lt;br /&gt;
ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. Being able to modify image based map pictures is a feature that may come in handy one time.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install imagemagick&lt;br /&gt;
&lt;br /&gt;
=== Optional on an older OS ===&lt;br /&gt;
&lt;br /&gt;
If you have an older OS distribution it never hurts to install the following...&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libx11-6 libx11-dev texinfo libncurses5 libncursesw5 libncursesw5-dev zlibc&lt;br /&gt;
&lt;br /&gt;
== Paparazzi Main sourcecode ==&lt;br /&gt;
&lt;br /&gt;
See the main [[Installation#Getting_the_Source_Code]] page&lt;br /&gt;
&lt;br /&gt;
TIP: &lt;br /&gt;
If you get the File &amp;quot;pprz.mli&amp;quot;, line 149, characters 78-89: Error: Unbound type constructor Ivy.binding&lt;br /&gt;
...this happens when IVY libraries are not yet installed. How to do this, read the part on installing IVY on this page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/gcc-arm-embedded/&lt;br /&gt;
&lt;br /&gt;
https://github.com/paparazzi/paparazzi-portability-support&lt;br /&gt;
&lt;br /&gt;
http://wiki.ubuntuusers.de/GNU_arm-toolchain&lt;br /&gt;
&lt;br /&gt;
http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/ARM-Options.html#ARM-Options&lt;br /&gt;
&lt;br /&gt;
http://mcuprogramming.com/forum/arm/gnu-arm-toolchain-installer/&lt;br /&gt;
&lt;br /&gt;
http://www.ethernut.de/en/documents/cross-toolchain-osx.html&lt;br /&gt;
&lt;br /&gt;
http://www.hermann-uwe.de/blog/building-an-arm-cross-toolchain-with-binutils-gcc-newlib-and-gdb-from-source&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]] [[Category:Developer_Documentation]] [[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>U2ix</name></author>
	</entry>
</feed>