Hello All,
I am trying to compile an application on a ubuntu system.  I am getting  the 
following linker error:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/usr/bin/ld:
 soundgst.o: undefined reference to symbol 
'g_type_check_instance_cast'/usr/bin/ld: note: 'g_type_check_instance_cast' is 
defined in DSO /usr/lib/x86_64-linux-gnu/libgobject-2.0.so so try adding it to 
the linker command line/usr/lib/x86_64-linux-gnu/libgobject-2.0.so: could not 
read symbols: Invalid operationcollect2: ld returned 1 exit statusmake: *** 
[StellarFinalMVC] Error 116:18:04: The process "/usr/bin/make" exited with code 
2.Error while building/deploying project StellarFinalMVC (kit: Desktop Qt 5.0.2 
GCC 64bit)When executing step 'Make'16:18:04: Elapsed time: 
02:56.-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 

This is how my .pro file looks:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
QT += widgets core gui quick qml xml xmlpatterns

    linux-g++|linux-g++-64 {        QMAKE_CXXFLAGS += -I/usr/include \          
                -I/usr/include/libxml2 \                          
-I/usr/include/glib-2.0/glib \                          -I/usr/include/glib-2.0 
\                          -I/usr/lib/x86_64-linux-gnu/glib-2.0 \               
           -I/usr/lib/x86_64-linux-gnu/glib-2.0/include \                       
   -I/usr/include/gstreamer-1.0
        QMAKE_LIBDIR_FLAGS += -L/usr/lib/x86_64-linux-gnu
        QMAKE_LFLAGS   += -lgmodule-2.0 \                          -lxml2 \     
                     -lgobject-2.0 \                          -lgthread-2.0 \   
                       -lrt \                          -lglib-2.0 \             
             -lpthread \                          -lgstreamer-1.0}
TARGET = exampleTEMPLATE = app
SOURCES += \
HEADERS += 
\-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

with SOURCES and HEADERS containing all the required files of course.
pkg-config --cflags --libs gtk+-2.0 outputs:

-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-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/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12  -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 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0

Can someone help me solve this error?

Thanks and Regards,
Vaishnavi
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to