Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.1.0 Beta 1
-
-
5807e1ae8168a5702ad0f6890d2b35223cfebdee (qt/qtbase/dev) c5859822eb44a81562f0276b3c8af050ac180c78 (qt/qtbase/6.1)
Description
How to reproduce
The way RTA reported
Do a top-level build with qttools.
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DBUILD_EXAMPLES=OFF -DOPENSSL_ROOT_DIR=/home/qt/openssl-1.1.1g -DCMAKE_BUILD_TYPE=Release -DFEATURE_system_jpeg=OFF -DFEATURE_system_png=OFF -DFEATURE_system_pcre2=OFF -DFEATURE_system_harfbuzz=OFF -DFEATURE_system_doubleconversion=OFF -DFEATURE_libudev=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF /home/qt/RTA/src-6.1.0 -DCMAKE_INSTALL_PREFIX:PATH=/home/qt/RTA/src-6.1.0/qtbase
Gui applications like designer then cannot run. Error message is
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
This does not happen with per-repo builds.
Reproduce with qtbase only
This is apparently not a top-level build only issue as the following way to reproduce proves. Configure and build like this:
configure -static -nomake tests -- -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF && ninja gui_analogclock && ./examples/gui/analogclock/gui_analogclock