Hi,
I created two applications using Qt 5.1.0.
On my "main" computer (Linux Mint 64-bit) I have installed the Qt library using the installer from http://qt-project.org/downloads (I installed both, the 32-bit version and the 64-bit version).
Now I want to run my applications on an other computer (Debian 32-bit) so I compiled a 32-bit version of my applications and copied them to /usr/bin. I also copied the 32-bit version of all required Qt libraries to /usr/lib. I stored the platform plug-ins libqxcb.so, libqoffscreen.so, libqminimal.so and libqlinuxfb.so in the directory /usr/lib/qt5/plugins/platforms/ and set the environment variable QT_PLUGIN_PATH to /usr/lib/qt5/plugins by editing /etc/environment. Of course I set the permission to allow all users to execute the files.
Which directories are recommended to put the applications, the Qt library files and the plug-ins in?
When I'm trying to start one of my applications it seems to find all libraries (and plug-ins) but it is unable to load the xcb plugin. This is the error message I'm getting:
Failed to load platform plugin "xcb". Available platforms are:
linuxfb
minimal
offscreen
xcb
What could be the reason for that problem?
I have already checked if I've installed all required dependencies (at least the packages listed here: http://qt-project.org/doc/qt-5.1/qtd...ments-x11.html).
I noticed that some Qt 4 libraries have been already installed on the system (likely installed by some other Qt-based applications like VLC). But I found them not in /usr/lib but rather in the subdirectory i386-linux-gnu.
Why/in which case is that subdirectory used?
On my main computer where I installed Qt using the installer the libraries are stored at /home/username/Qt5.1.0/5.1.0/gcc/lib. How has the installer configured my system to let all Qt applications know to look for the the libraries in that specific location? There's no entry in /etc/environment, ~/.profile or /etc/profile. There is also no entry for the plug-in directory (which I had to create on the other computer).
Thanks for answering![]()
Bookmarks