<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi everyone,<div class="">I am having some errors related to bad linking when compiling against eclipse. I am using the tutorial5 from <a href="http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/" class="">http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/</a> without modifying anything. So this is the configuration I have in the project:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" size="1" class="">Cross GCC Compiler:</font></div><div class=""><font face="Menlo" size="1" class="">-Includes:</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/glib-2.0</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/atk-1.0</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/gdk-pixbuf-2.0</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/cairo</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/pango-1.0/</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/gtk-3.0</font></div><div class=""><font face="Menlo" size="1" class="">/usr/lib/gstreamer-1.0/include</font></div><div class=""><font face="Menlo" size="1" class="">/usr/lib/glib-2.0/include</font></div><div class=""><font face="Menlo" size="1" class="">/usr/include/gstreamer-1.0</font></div><div class=""><font face="Menlo" size="1" class=""><br class=""></font></div><div class=""><font face="Menlo" size="1" class="">Cross GCC Linker:</font></div><div class=""><font face="Menlo" size="1" class="">-Command line pattern:</font></div><div class=""><font face="Menlo" size="1" class="">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</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">And this is what the console returns:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" size="1" class="">Build Project:</font></div><div class=""><font face="Menlo" size="1" class=""><br class=""></font></div><div class=""><font face="Menlo" size="1" class="">12:36:37 **** Build of configuration Debug for project tutorial5 ****</font></div><div class=""><font face="Menlo" size="1" class="">make all </font></div><div class=""><font face="Menlo" size="1" class="">Building file: ../tutorial5.c</font></div><div class=""><font face="Menlo" size="1" class="">Invoking: Cross GCC Compiler</font></div><div class=""><font face="Menlo" size="1" class="">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"</font></div><div class=""><font face="Menlo" size="1" class="">../tutorial5.c: In function ‘create_ui’:</font></div><div class=""><font face="Menlo" size="1" class="">../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]</font></div><div class=""><font face="Menlo" size="1" class=""> gtk_widget_set_double_buffered (video_window, FALSE);</font></div><div class=""><font face="Menlo" size="1" class=""> ^</font></div><div class=""><font face="Menlo" size="1" class="">../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]</font></div><div class=""><font face="Menlo" size="1" class=""> play_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PLAY);//metodo original pero deprecated</font></div><div class=""><font face="Menlo" size="1" class=""> ^</font></div><div class=""><font face="Menlo" size="1" class="">../tutorial5.c:114:3: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]</font></div><div class=""><font face="Menlo" size="1" class="">../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]</font></div><div class=""><font face="Menlo" size="1" class=""> pause_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PAUSE);</font></div><div class=""><font face="Menlo" size="1" class=""> ^</font></div><div class=""><font face="Menlo" size="1" class="">../tutorial5.c:117:3: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]</font></div><div class=""><font face="Menlo" size="1" class="">../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]</font></div><div class=""><font face="Menlo" size="1" class=""> stop_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_STOP);</font></div><div class=""><font face="Menlo" size="1" class=""> ^</font></div><div class=""><font face="Menlo" size="1" class="">../tutorial5.c:120:3: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]</font></div><div class=""><font face="Menlo" size="1" class="">Finished building: ../tutorial5.c</font></div><div class=""><font face="Menlo" size="1" class=""> </font></div><div class=""><font face="Menlo" size="1" class="">Building target: tutorial5</font></div><div class=""><font face="Menlo" size="1" class="">Invoking: Cross GCC Linker</font></div><div class=""><font face="Menlo" size="1" class="">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</font></div><div class=""><font face="Menlo" size="1" class="">/usr/lib/libgio-2.0.so.0: undefined reference to `g_thread_pool_move_to_front'</font></div><div class=""><font face="Menlo" size="1" class="">makefile:29: recipe for target 'tutorial5' failed</font></div><div class=""><font face="Menlo" size="1" class="">/usr/lib/libgio-2.0.so.0: undefined reference to `g_option_group_unref'</font></div><div class=""><font face="Menlo" size="1" class="">collect2: error: ld returned 1 exit status</font></div><div class=""><font face="Menlo" size="1" class="">make: *** [tutorial5] Error 1</font></div><div class=""><font face="Menlo" size="1" class=""><br class=""></font></div><div class=""><font face="Menlo" size="1" class="">12:36:42 Build Finished (took 5s.350ms) </font></div></div><div class=""><font face="Menlo" size="1" class=""><br class=""></font></div><div class="">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.</div><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">Thanks for your help, </div><div class=""><br class=""></div><div class="">Dani</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>