The C: Qt Qt5.1.1 5.1.1 msvc2012_64_opengl plugins platforms qwindows.dll was the one that I had to spend time on it. My system is Windows 8 64 bit, and I wanted Qt developed there using Qt Creator 2.8.1 to be ported my another Windows 7 64 bit laptop. Load the Qt platform plugin “windlows” in “” 2. Could not find or load the Qt platform plugin “windows” — cx_freeze(.exe) [Python 3.6] 1. Deploying a Qt application on Mac: This application failed to start because it could not find or load the Qt platform plugin “cocoa” in “”.
- Qt Platform Plugin Windows Install
- Download Qt Platform Plugin Windows
- Download Qt Platform Plugin Windows 7
- Qt Platform Plugin Windows 10
Explore this ArticleQt 4.8 SDK Installation Instructions:Edit the Windows Vista/Windows 7 PATH:Edit the Windows 8 PATH:Qt 5.0 SDK Installation Instructions:Edit the Windows Vista/Windows 7 PATH:Edit the Windows 8 PATH:Show 3 more...Show less...Ask a QuestionRelated Articles
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 10 people, some anonymous, worked to edit and improve it over time.
The wikiHow Tech Team also followed the article's instructions, and validated that they work. Learn more...
The wikiHow Tech Team also followed the article's instructions, and validated that they work. Learn more...
The Qt Software Development Kit (SDK) is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI). It is a portable cross platform application user interface framework which works on the Windows, Linux and Mac OS X operating systems. Qt SDK helps you create graphical user interfaces (GUI's) for your applications that will run on Windows, Linux and Mac OS X. Some popular cross-platform applications that were created using the Qt SDK are KDE, Google Earth, Skype, Linux Multimedia Studio and the VLC multimedia player. Essentially cross-platform means that Qt applications that you create on Microsoft Windows via the source code are usually transferable to Linux and the Mac OS X operating systems and vice versa.Notes: Upgraded Qt SDK 4.8 instructions and added instructions for Qt SDK 5.0
Active6 months ago
I wrote application for linux which uses Qt5.
But when I am trying to launch it on the linux without Qt SDK installed, the output in console is:
How can I fix this? Maybe I need to copy some plugin file? When I use Ubuntu with Qt5 installed, but I rename Qt directory, the same problem occurs. So, it uses some file from qt directory...
I have found file
Zannalibqxcb.so
in the Qt SDK directory, but placing it in /usr/lib
does not help.53k1414 gold badges149149 silver badges250250 bronze badges
locomotionlocomotion
11 Answers
The correct solution is running the following comand onto a terminal:
sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/
It creates the symbolic link it's missed.
FrancescoFrancesco
To any future readers who come across this - before you start (dangerously) messing around with symlinks to shared libraries, I strongly suggest that you run
export QT_DEBUG_PLUGINS=1
and then run your failing executable again in the Terminal. Read the actual error message thrown by QT, since none of the above solutions addressed the cause of this error in my case.
My output after turning on
QT_DEBUG_PLUGINS
was:so I then googled the
version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16))
error and found the solution to that, which solved the problem.SlugFriscoSlugFrisco
Try to install
libqt5x11extras5
package with command:sudo apt-get install libqt5x11extras5
The name may be different. You can figure it out by searching:
sudo apt-cache search qt5 | grep 'X11 extras'
and u get the name of the package as result:
libqt5x11extras5 - Qt 5 X11 extras
Bonus_05Bonus_05
I had this error message when trying to run 'Stellarium'.
With strace I found that the missing file was
libxcb-xinerama.so.0
.I had to reinstall libxcb-xinerama0
to make it work:wmeyerwmeyer
Run ldd on your application executable to see how it resolves library dependencies.
Also this is a must read to understand what essential libraries are needed in simple case of gui application:
DorianDorian
Videonauth26.7k1212 gold badges8383 silver badges108108 bronze badges
李智坚李智坚
For those who are still stuck after trying every other option out there in the internet, you can look into exact path from which this notorious
libqxcb.so
is being searched in, for opening/loading by the Qt
App(VirtualBox-5.2.8
is the Qt
app in my case), using the strace tool. In my case, since I was building VirtualBox-5.2.8
from its source, it was searching for libqxcb.so
in the below location :'...VirtualBox-5.2.8/out/linux.amd64/release/bin/platforms/'
and not in the default
library paths, Qt
installation path, etc. So, none of the ldd
checks, and other solutions worked. And also setting QT_DEBUG_PLUGINS=1
didn't produce any extra logs either.Running strace on the the VirtualBox binary I built using Clang/LLVM on Ubuntu 17.10 x86_64:
That was my
hitting-the-nail-on-its-head
moment, and I created the symlink
from the installed Qt5.10.1
's platforms
directory mentioned below :'...Qt5.10.1/Tools/QtCreator/lib/Qt/plugins/platforms/'
onto the searched path which is '...VirtualBox-5.2.8/out/linux.amd64/release/bin/'
. Thus, VirtualBox-5.2.8
built from source on Linux(Ubuntu 17.10 x86_64
) using Clang/LLVM
, finally launched successfully! In fact, another interesting thing here is that, I have built
VirtualBox-5.2.8
entirely using Clang/Clang++/LLVM
on Ubuntu 17.10 x86_64
after substantial effort - for FreeBSD
, there's already a port for building VirtualBox
using clang
but for Linux, it's heavily dependent on GCC
as I saw and hence it took a lot of effort to get to this point to be able successfully build VirtualBox-5.2.8
from its source using Clang/Clang++/LLVM
on Ubuntu 17.10 x86_64
for target Linux/AMD64
(Ubuntu 17.10 x86_64
) and successfully launch it after resolving other issues along with this notorious libqxcb.so
one.Cheers.
user194850
N0rbert31.2k1010 gold badges7474 silver badges151151 bronze badges
Qt Platform Plugin Windows Install
FerranBFerranB
This is how solve few issues when I am running emulator on Ubuntu 18.04.
Add the following lines at the end of file. I install my Android SDK at
karel/opt/Android/Sdk
Download Qt Platform Plugin Windows
67.3k1414 gold badges150150 silver badges170170 bronze badges
MZengMZeng
It seems there can be various different things missing behind this.In my case (Debian 9.7), QT_DEBUG_PLUGINS=1 did help to trace back the missing libraries, and
$ sudo apt-get install libxcb-render-util0 libxcb-image0 libxcb-keysyms1 libxcb-icccm4
solved the problem.
AntosAntos
Copy
guntbertplugins/platforms/libqxcb.so
from your qt
install to platforms/libqxcb.so
in your application directory.Download Qt Platform Plugin Windows 7
9,8831313 gold badges3232 silver badges7474 bronze badges
Qt Platform Plugin Windows 10
AdamAdam