Results 1 to 3 of 3

Thread: Glib support cannot be enabled due to functionality tests

  1. #1
    Join Date
    Mar 2013
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default 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

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Glib support cannot be enabled due to functionality tests

    Add path of "gthread-2.0" to library search paths.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Mar 2013
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default 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
    Last edited by Vigneshkumar; 12th April 2013 at 12:12.

Similar Threads

  1. How to write automated tests for my app?
    By oficjalne100 in forum Qt Programming
    Replies: 4
    Last Post: 13th March 2012, 06:06
  2. I do not understand as to start qt tests for gui
    By Chexov in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2010, 15:50
  3. Unit tests
    By leoalvesmachado in forum Newbie
    Replies: 1
    Last Post: 13th April 2010, 20:50
  4. S60 app with support for libREST and Glib
    By s0h4m in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th January 2010, 07:55
  5. how to best separate tests from source
    By Rockem in forum Qt Programming
    Replies: 0
    Last Post: 24th September 2009, 23:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.