Problems with Qt5 installation on Linux VM (Ubuntu 12_04 LTS) : libqxcb not linked correctly?

  • After trying to install qt on my VM (installed with the .run executable available at ,
    I encountered the following error when launching qtcreator:

    ~/Qt/Tools/QtCreator/bin$ ./qtcreator
    This application failed to start because it could not find or load the Qt platform plugin ""
    in "".
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
    Reinstalling the application may fix this problem.
    Abandon (core dumped)

    So basically, i did a lot of searches around that error, and i did apt-get every xcb lib that might be missing,
    when running ldd on (Qt/Tools/Qtcreator/lib/Qt/plugins/platforms) i get the following return: =>  (0x00007fff7654d000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7e2306000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7e2069000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7e1de9000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7e1be7000) => /lib/x86_64-linux-gnu/ (0x00007fe7e19df000) => /lib/x86_64-linux-gnu/ (0x00007fe7e16e9000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7e14df000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7e12ce000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7e0f98000) => /usr/lib/ (0x00007fe7e0d67000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7e0a0f000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7e0217000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7dfb05000) => /usr/lib/x86_64-linux-gnu/mesa/ (0x00007fe7df8a5000) => /lib/x86_64-linux-gnu/ (0x00007fe7df687000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7df387000) => /lib/x86_64-linux-gnu/ (0x00007fe7df08b000) => /lib/x86_64-linux-gnu/ (0x00007fe7dee74000) => /lib/x86_64-linux-gnu/ (0x00007fe7deab4000) => /lib/x86_64-linux-gnu/ (0x00007fe7de88a000) => /lib/x86_64-linux-gnu/ (0x00007fe7de672000) => /lib/x86_64-linux-gnu/ (0x00007fe7de42e000) => /lib/x86_64-linux-gnu/ (0x00007fe7de1f0000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7ddfd2000) => /lib/x86_64-linux-gnu/ (0x00007fe7dddce000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7ddbcc000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dd9c6000) => not found => not found => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dd7ba000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dd5b3000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dd3a9000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dd1a4000) => not found => not found => /usr/lib/ (0x00007fe7dcf95000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dcd8c000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dcb7f000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dc973000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dc763000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dc55a000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7dc340000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7dbea5000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7dbaed000) => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/ (0x00007fe7da10a000)
    	/lib64/ (0x00007fe7e2758000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d9ee4000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d9ce1000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d9adb000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d98c3000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d96be000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d94ba000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d92b4000) => /usr/lib/x86_64-linux-gnu/ (0x00007fe7d90ab000) => /lib/x86_64-linux-gnu/ (0x00007fe7d8ea6000)

    So, the only libraries that aren't found are those that i can't get (didn't find them with apt-cache search),
    but the main problem is supposed to be with, and it is referenced correctly.

    If anyone could bring me a light on something else i should try, thanks in advance!

  • Lifetime Qt Champion


    Ubuntu 12_04 is a pretty old system so your X11 libraries are too old in regards to the version used to build the Qt version used to build Qt Creator.

    So if you want to use the latest and greatest, you'll have to build Qt and Qt Creator by hand.

  • @SGaist Alright, i tried a few more things, but there were many issues still when building it myself, i guess i'll have to upgrade my vm to 14_04.
    Thank you very much for the answer anyway, i wanted to make sure that i wasn't missing something!
    Have a nice day

Log in to reply

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