paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Installing paparazzi 4.2 on Ubuntu 12.04


From: Michal Podhradsky
Subject: Re: [Paparazzi-devel] Installing paparazzi 4.2 on Ubuntu 12.04
Date: Tue, 7 Jul 2015 15:13:50 -0700

HI Felix,

so I did this:
1. install tklib from Ubuntu Software center
2. sudo apt-get install tcl-dev
3. in ivy-ocaml do "make all" and then "make install" to install libraries
4. Change line 10 to "COMPAT_SYMLINK_CREATE ?= y" https://github.com/flixr/ivy-ocaml/blob/master/Makefile#L10
5. Change line 59 to "TKINC=-I/usr/include/tcl8.5" https://github.com/flixr/ivy-ocaml/blob/master/Makefile#L59 (that is the only place that has tk.h"
6. in paparazzi directory: make clean; make
7. here is the output:
...
OOC gtk_export.ml
OCI export.mli
OOC export.ml
OOC plot.ml
OL plot
OC sd2log.ml
OL sd2log
gcc   -g -O2 -Wall `pkg-config glib-2.0 --cflags` -o plotprofile plotprofile.c `pkg-config glib-2.0 --libs` -lglibivy
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglib-2.0.so: undefined reference to symbol 'pcre_study'
//lib/x86_64-linux-gnu/libpcre.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [plotprofile] Error 1
make: *** [logalizer] Error 2
[1]+  Done   

I can run the Pprzi centre, but not all files are generated (like messages.h) so it doesn't compile any airfarme.

Any ideas what should I do?

Thanks
M


On Tue, Jul 7, 2015 at 1:07 PM, Felix Ruess <address@hidden> wrote:
You need to smylink them from the ivy and glibivy dirs into the main ocaml directory, see https://github.com/flixr/ivy-ocaml/blob/master/Makefile#L125

On Tue, Jul 7, 2015 at 10:00 PM, Michal Podhradsky <address@hidden> wrote:
Hi Felix,

I am happy to do that by hand - where do I need to put the symlinks?

The only reason for using v4.2. is that it has been proven with hundreds of flight hours so our field group can rely on it (yet they still need some minor updates). But we are moving to Lisa MX board with (hopefully) 5.6. version soon:)

Thanks
M


On Tue, Jul 7, 2015 at 12:39 PM, Felix Ruess <address@hidden> wrote:
Hi Michal,

I really don't want to re-enable the symlink, as it results in stupid warning for everyone using v5.0 and later.
And I definitely don't want to encourage or recommend using v4.x versions anymore ;-)

You can always set the symlinks by hand if you want or build the package with symlinks enabled yourself.

Cheers,
Felix

P.S. I can't keep wondering why you still want to use v4.2....

On Tue, Jul 7, 2015 at 9:12 PM, Michal Podhradsky <address@hidden> wrote:
Hi Felix,

would it be possible to re-enable the backwards compatibility symlinks for Ubuntu 14.04 packages? I am at the point when it would be really convenient to have both older (4.2) and newer (5.5) versions of paparazzi at the same machine (Ubuntu 14.04) without having to use virtual box, docker etc.

Thanks for info.
M

On Mon, Feb 23, 2015 at 4:46 PM, Felix Ruess <address@hidden> wrote:
I only rebuilt the package with the compatibility symlink on 12.04, on 14.04 they are disabled...
So compiling 4.x should work on 12.04... but not on 14.04

The 12.04 package hasn't changed since my last post in this thread: https://launchpad.net/~paparazzi-uav/+archive/ubuntu/ppa/+sourcepub/4695332/+listing-archive-extra

Cheers, Felix

On Mon, Feb 23, 2015 at 10:41 PM, Michal Podhradsky <address@hidden> wrote:
Hi, has something changed with the ppa package?
For some reason even if I install the newest paparazzi-dev package (on Ubuntu 14.04 and Ubuntu 12.04) I get the same error as before:
...
OC pprz.mli
File "pprz.mli", line 170, characters 78-89:
Error: Unbound module Ivy
make[1]: *** [pprz.cmi] Error 2
make: *** [lib] Error 2

Thanks
M

On Wed, Jan 28, 2015 at 4:34 PM, Michal Podhradsky <address@hidden> wrote:
Just confirming that version 4.2) now works fine with the updated package.

On Wed, Jan 28, 2015 at 11:52 AM, Felix Ruess <address@hidden> wrote:
Uploaded a new source package ivy-ocaml_1.3.1ppa3~precise with compatibility symlinks enabled to launchpad...
Should be built and published in the ppa soon.

On Wed, Jan 28, 2015 at 8:04 PM, Michal Podhradsky <address@hidden> wrote:
Ace, that sounds like the best option.
Thanks!
M

On Wed, Jan 28, 2015 at 11:00 AM, Felix Ruess <address@hidden> wrote:

The older version should still be available in the ppa. So you should be able to just apt-get install it and force the old 1.2-3something version.

But I think I will just trigger a rebuild for precise with the compatibility enabled.
When I uploaded new packages to trigger the arm build I forgot that it would be good to enable that for precise only.

Will do that when I get home.

Cheers, Felix

Am 28.01.2015 19:34 schrieb "Michal Podhradsky" <address@hidden>:

Thanks Felix for quick reply.

If I install ivy-ocaml 1.2 as described here (http://wiki.paparazziuav.org/wiki/Installation/FromScratch#Ivy-OCaml) how do I enable it?

Also, will I be able to use paparazzi 5.4 at the same time as paparazzi 4.2?

M

On Wed, Jan 28, 2015 at 10:27 AM, Felix Ruess <address@hidden> wrote:
Hi Michal,

the latest version of ivy-ocaml is built without the backwards compatibility symlinks.
So you could either install an older ivy-ocaml package (version 1.2x), build it from source and enable them again or create the symlinks yourself by hand.

Or I add the symlinks only for the precise package again...

It is a bit annoying though if you have a Paparazzi v5.x and the symlinks, it always warns that the interfaces exist in multiple dirs...

Cheers, Felix

On Wed, Jan 28, 2015 at 7:12 PM, Michal Podhradsky <address@hidden> wrote:
Hi all,

I have a legacy version of paparazzi (essentially 4.2 with minor changes in the ap code), and I need to make it run on a new machine with Ubuntu 12.04.

I followed the install guide from wiki:

sudo add-apt-repository ppa:paparazzi-uav/ppa
sudo apt-get update
sudo apt-get install paparazzi-dev
sudo apt-get install paparazzi-arm-multilib

when I run make in the ppprzi directory I get the following error:
...
OC pprz.mli
File "pprz.mli", line 170, characters 78-89:
Error: Unbound module Ivy
make[1]: *** [pprz.cmi] Error 2
make: *** [lib] Error 2


From wiki (http://wiki.paparazziuav.org/wiki/Installation/FromScratch#Paparazzi_Main_sourcecode) it looks like some it is some missing Ocaml/Ivy linking.

Any ideas how to fix it? I already have latest paparazzi (master) running on the machine.

Regards
Michal

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]