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 https://www.qt.io/download-open-source/) ,
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 "qtcreator.sh" 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 libqxcb.so (Qt/Tools/Qtcreator/lib/Qt/plugins/platforms) i get the following return:linux-vdso.so.1 => (0x00007fff7654d000) libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fe7e2306000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fe7e2069000) libQt5DBus.so.5 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libQt5DBus.so.5 (0x00007fe7e1de9000) libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fe7e1be7000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe7e19df000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fe7e16e9000) libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fe7e14df000) libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fe7e12ce000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fe7e0f98000) libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007fe7e0d67000) libQt5XcbQpa.so.5 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libQt5XcbQpa.so.5 (0x00007fe7e0a0f000) libQt5Gui.so.5 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libQt5Gui.so.5 (0x00007fe7e0217000) libQt5Core.so.5 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libQt5Core.so.5 (0x00007fe7dfb05000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007fe7df8a5000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe7df687000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe7df387000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe7df08b000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe7dee74000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe7deab4000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fe7de88a000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe7de672000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fe7de42e000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fe7de1f0000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fe7ddfd2000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe7dddce000) libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fe7ddbcc000) libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fe7dd9c6000) libxcb-dri3.so.0 => not found libxcb-present.so.0 => not found libxcb-randr.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007fe7dd7ba000) libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007fe7dd5b3000) libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007fe7dd3a9000) libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007fe7dd1a4000) libxcb-sync.so.1 => not found libxshmfence.so.1 => not found libgbm.so.1 => /usr/lib/libgbm.so.1 (0x00007fe7dcf95000) libwayland-client.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007fe7dcd8c000) libwayland-server.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-server.so.0 (0x00007fe7dcb7f000) libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fe7dc973000) libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007fe7dc763000) libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007fe7dc55a000) libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007fe7dc340000) libicui18n.so.56 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libicui18n.so.56 (0x00007fe7dbea5000) libicuuc.so.56 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libicuuc.so.56 (0x00007fe7dbaed000) libicudata.so.56 => /home/abellardc/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/./../../lib/libicudata.so.56 (0x00007fe7da10a000) /lib64/ld-linux-x86-64.so.2 (0x00007fe7e2758000) libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fe7d9ee4000) libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fe7d9ce1000) libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fe7d9adb000) libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fe7d98c3000) libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fe7d96be000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fe7d94ba000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fe7d92b4000) libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fe7d90ab000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (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 libX11-xcb.so, and it is referenced correctly.If anyone could bring me a light on something else i should try, thanks in advance!
-
Hi,
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