linking error with streamer 1.6 with eclipse 3.8

Daniel Marfil danimarfil0 at gmail.com
Mon Oct 19 23:00:12 PDT 2015


Hi everyone,
I am having some errors related to bad linking when compiling against eclipse. I am using the tutorial5 from http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/ <http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/> without modifying anything. So this is the configuration I have in the project:

Cross GCC Compiler:
-Includes:
/usr/include/glib-2.0
/usr/include/atk-1.0
/usr/include/gdk-pixbuf-2.0
/usr/include/cairo
/usr/include/pango-1.0/
/usr/include/gtk-3.0
/usr/lib/gstreamer-1.0/include
/usr/lib/glib-2.0/include
/usr/include/gstreamer-1.0

Cross GCC Linker:
-Command line pattern:
gcc -o tutorial5  tutorial5.o $(pkg-config  --cflags --libs gstreamer-1.0) -lgstnet-1.0 -lgstbase-1.0 -lgstcheck-1.0 -lgstreamer-1.0 -lgstcontroller-1.0 -lpango-1.0 -lcairo -lgtk-3 -lgdk-3 -lgstvideo-1.0 -lgobject-2.0 -lglib-2.0


And this is what the console returns:

Build Project:

12:36:37 **** Build of configuration Debug for project tutorial5 ****
make all 
Building file: ../tutorial5.c
Invoking: Cross GCC Compiler
gcc -I/usr/include/glib-2.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0/ -I/usr/include/gtk-3.0 -I/usr/lib/gstreamer-1.0/include -I/usr/lib/glib-2.0/include -I/usr/include/gstreamer-1.0 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"tutorial5.d" -MT"tutorial5.d" -o "tutorial5.o" "../tutorial5.c"
../tutorial5.c: In function ‘create_ui’:
../tutorial5.c:110:3: warning: ‘gtk_widget_set_double_buffered’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkwidget.h:896) [-Wdeprecated-declarations]
   gtk_widget_set_double_buffered (video_window, FALSE);
   ^
../tutorial5.c:114:3: warning: ‘gtk_button_new_from_stock’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:103): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
   play_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PLAY);//metodo original pero deprecated
   ^
../tutorial5.c:114:3: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
../tutorial5.c:117:3: warning: ‘gtk_button_new_from_stock’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:103): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
   pause_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PAUSE);
   ^
../tutorial5.c:117:3: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
../tutorial5.c:120:3: warning: ‘gtk_button_new_from_stock’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:103): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
   stop_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_STOP);
   ^
../tutorial5.c:120:3: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
Finished building: ../tutorial5.c
 
Building target: tutorial5
Invoking: Cross GCC Linker
gcc -o tutorial5  tutorial5.o  -lgstnet-1.0 -lgstbase-1.0 -lgstcheck-1.0 -lgstreamer-1.0 -lgstcontroller-1.0 -lpango-1.0 -lcairo -lgtk-3 -lgdk-3 -lgstvideo-1.0 -lgobject-2.0 -lglib-2.0
/usr/lib/libgio-2.0.so.0: undefined reference to `g_thread_pool_move_to_front'
makefile:29: recipe for target 'tutorial5' failed
/usr/lib/libgio-2.0.so.0: undefined reference to `g_option_group_unref'
collect2: error: ld returned 1 exit status
make: *** [tutorial5] Error 1

12:36:42 Build Finished (took 5s.350ms) 

I have checked GStreamer has been installed successfully as I can run some samples via gst-launch. This is working under Raspbian (RPi2). The glib version I have installed is 2.46.

As long as I have seen on the Internet this error is due to bad linking with glib but as you can see it is written. So I don’t know which library is missing. Any suggestions?

Thanks for your help, 

Dani



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151020/393410ab/attachment.html>


More information about the gstreamer-devel mailing list