Glib support cannot be enabled due to functionality tests
Hi All,
I am trying to build qt-everywhere-opensource-src-4.8.4(for Embedded Linux) with Qt Glib support, dbus support. So in the configure step i gave
./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-kbd-linuxinput -qt-mouse-tslib -webkit -glib -dbus -force-pkg-config -opensource -verbose -R /usr/local/tslib/lib/
But at last i got error
glib support
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
glib.cpp: In function 'int main(int, char**)':
glib.cpp:55: warning: 'pollfd' is used uninitialized in this function
arm-none-linux-gnueabi-g++ -Wl,-O1 -o glib glib.o -L/usr/local/tslib/lib -pthread -lgthread-2.0 -lrt -lglib-2.0
/opt/codesourcery/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgthread-2.0
collect2: ld returned 1 exit status
make: *** [glib] Error 1
Glib disabled.
Glib support cannot be enabled due to functionality tests!
As i am not a QT/C++ developer , I googled a lot to fix this error. But i cannot find any clue. Anyone knows or encountered this problem and help to fix this. Thanks in advance
Regards,
Vignesh
Re: Glib support cannot be enabled due to functionality tests
Add path of "gthread-2.0" to library search paths.
Re: Glib support cannot be enabled due to functionality tests
Hi
Thanks for your kind response... I am very new to Qt/C++ stuffs. Please say clearly where to add the lib path
gthread-2.0 is available in following paths
/usr/lib/i386-linux-gnu/pkgconfig/gthread-2.0.pc
/usr/lib/i386-linux-gnu/libgthread-2.0.so
/usr/lib/i386-linux-gnu/libgthread-2.0.a
/usr/lib/i386-linux-gnu/libgthread-2.0.so.0.3200.3
/usr/lib/i386-linux-gnu/libgthread-2.0.so.0
which one to add at which place ...?
Thanks and excuse if its stupid question
Regards,
Vignesh
Added after 36 minutes:
Hi,
I added
export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/:$LD_LIBRARY_PATH
Even though i am getting same problem. Where should i add exactly....?
regards,
Vignesh