Libqxcb.so not found.
-
wrote on 26 Nov 2014, 16:48 last edited by
I compiled qt myself on a remote Linux server from source. everything went fine but after I tried to run my compiled software I got following error.
bq. This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: linuxfb, minimal, offscreen.
Reinstalling the application may fix this problem.
Aborted (core dumped)There is no libqxcb.so in plaftorm direcotory.
bq. root@:~/........./platforms# ll
total 8608
drwxr-xr-x 2 root root 4096 Nov 13 02:35 ./
drwxr-xr-x 17 root root 4096 Nov 13 03:46 ../
-rwxr-xr-x 1 root root 4729677 Nov 13 02:35 libqlinuxfb.so*
-rwxr-xr-x 1 root root 808791 Nov 13 02:34 libqminimal.so*
-rwxr-xr-x 1 root root 3262399 Nov 13 02:35 libqoffscreen.so* -
wrote on 26 Nov 2014, 16:54 last edited by
Did you follow this "doc":http://qt-project.org/doc/qt-5/linux-deployment.html when you deployed your app?
-
wrote on 26 Nov 2014, 17:00 last edited by
No, Should I? because I built my software on the same machine I compiled qt from source. I thought libqxcb.so file should be created on compilation. I'm I wrong? do I always have to install from SDK?
-
wrote on 26 Nov 2014, 17:06 last edited by
libqxcb.so is a part of Qt and you need to put it into right place.
Qt uses some predefined locations or you can modify that using "qt.conf":http://qt-project.org/doc/qt-5/qt-conf.html[EDIT] If you use the app on the same machine then just create qt.conf with paths pointing to Qt installation.
-
wrote on 26 Nov 2014, 17:13 last edited by
I built qt myself, So I don't have a installation. I didn't install Libxcb on my machine prior to the build it from source. That might be the issue. I'll try to install it from SDK. Thank you!
-
wrote on 26 Nov 2014, 17:21 last edited by
libxcb is a system library that is used by Qt through libqxcb.
If you build Qt with xcb support then libqxcb should be in <install path>/plugins/platforms/libqxcb.so
If you did not run make install and use the <build dir>/plugins/platforms/libqxcb.so
-
wrote on 16 Mar 2016, 12:24 last edited by
how to cross compile Qt for ARM using -qt-xcb? is there any solution?
-
wrote on 14 Aug 2020, 10:34 last edited by
Hi,dasun:
I have encountered the same problem. Have you resolved it? Could you teach me how to do ? Thank you very much! -
wrote on 10 Feb 2021, 18:56 last edited by
Same here, did a full installation from sources, and libqxcb.so is just not built.
Any idea ?
-
Hi and welcome to devnet,
Did you check that you have all required dependencies available ?
Take a look at the configure test logs to exactly what failed.