Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt build doesn't find XCB
Forum Updated to NodeBB v4.3 + New Features

Qt build doesn't find XCB

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MadWatch
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    1
    • M Offline
      M Offline
      MadWatch
      wrote on last edited by
      #2

      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 ?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved