problem compiling ant_track_pmm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

problem compiling ant_track_pmm

Chris Efstathiou
Hi.
Now that i have everything up and running on version 5.8 stable i found one last problem.
I can't compile the ant_track_pmm program found at paparazzi/sw/ground_segment/cockpit/
There is a chance that my ubuntu 14.04 LTS installation is a bit messed up so if you can't reproduce this error on other machines please let me know
The error i get is this:

hendrix@TR3B:~/paparazzi/sw/ground_segment/cockpit$ make
DEPEND .depend
gcc -g -O2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz   -fPIC  -g -o ant_track_pmm ant_track_pmm.c -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   -s -lglibivy 
/usr/bin/ld: /tmp/ccAPx7EJ.o: undefined reference to symbol 'sqrt@@GLIBC_2.0'
//lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ant_track_pmm] Error 1
hendrix@TR3B:~/paparazzi/sw/ground_segment/cockpit$

Now this means if i am not mistaken that the compiler cannot find the sqrt function
so i added  -lm to the linker flags.
This time i got this error:

hendrix@TR3B:~/paparazzi/sw/ground_segment/cockpit$ make
DEPEND .depend
gcc -g -O2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz   -fPIC  -g -o ant_track_pmm ant_track_pmm.c -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   -lm -s -lglibivy 
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libglib-2.0.so: undefined reference to symbol 'pcre_study'
//lib/i386-linux-gnu/libpcre.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ant_track_pmm] Error 1



_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: problem compiling ant_track_pmm

flixr
Administrator
Should be fixed in v5.8 branch and master.

On Fri, Mar 18, 2016 at 11:41 PM, hendrixgr . <[hidden email]> wrote:
Hi.
Now that i have everything up and running on version 5.8 stable i found one last problem.
I can't compile the ant_track_pmm program found at paparazzi/sw/ground_segment/cockpit/
There is a chance that my ubuntu 14.04 LTS installation is a bit messed up so if you can't reproduce this error on other machines please let me know
The error i get is this:

hendrix@TR3B:~/paparazzi/sw/ground_segment/cockpit$ make
DEPEND .depend
gcc -g -O2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz   -fPIC  -g -o ant_track_pmm ant_track_pmm.c -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   -s -lglibivy 
/usr/bin/ld: /tmp/ccAPx7EJ.o: undefined reference to symbol 'sqrt@@GLIBC_2.0'
//lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ant_track_pmm] Error 1
hendrix@TR3B:~/paparazzi/sw/ground_segment/cockpit$

Now this means if i am not mistaken that the compiler cannot find the sqrt function
so i added  -lm to the linker flags.
This time i got this error:

hendrix@TR3B:~/paparazzi/sw/ground_segment/cockpit$ make
DEPEND .depend
gcc -g -O2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz   -fPIC  -g -o ant_track_pmm ant_track_pmm.c -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   -lm -s -lglibivy 
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libglib-2.0.so: undefined reference to symbol 'pcre_study'
//lib/i386-linux-gnu/libpcre.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ant_track_pmm] Error 1



_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel