Qt build doesn't find XCB



  • Hi everyone.

    I'm trying to build a static version of Qt on my Linux (Mint 15).
    This is the command I use to configure it:
    @./configure -prefix /usr/local/Trolltech/Qt-5.1.1_static -static -release -opensource -qt-zlib -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -qt-xcb@

    It fails with this message
    @Running configuration tests...
    The test for linking against libxcb failed!
    You might need to install dependency packages for libxcb.@

    I've installed every single package mentioned into the README (and every single package containing 'xcb' in its name) but Qt still says it's missing. What did I miss ?



  • Investigating further, I may have found the cause (but no solution yet).

    Using the -v option I get this when configuring Qt:
    @g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-g++ -I. -o xcb.o xcb.cpp
    xcb.cpp: In function ‘int main(int, char**)’:
    xcb.cpp:47:23: warning: unused variable ‘t’ [-Wunused-variable]
    g++ -Wl,-O1 -o xcb xcb.o -libmng -libtiff -lxcb
    /usr/bin/ld: cannot find -libmng
    /usr/bin/ld: cannot find -libtiff
    collect2: error: ld returned 1 exit status
    make: *** [xcb] Error 1
    xcb disabled.@

    This doesn't happen only for the xcb test, it's the same error for all the tests for all libs Qt's looking for. The linker can't find -libmng and -libtiff. The very same thing is also happening on Mac.

    Well, I do have libmng and libtiff installed, but shouldn't Qt use -lmng and -ltiff instead of -libmng and -libtiff ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.