Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.15.2
-
None
-
openSUSE Leap 15.2
Linux 5.3.18-lp152.54-default #1 SMP Tue Dec 1 12:55:30 UTC 2020 (233d92e) x86_64 x86_64 x86_64 GNU/Linux
Description
I dowloaded, extracted, configured and compiled the Qt sources:
tar -xvf qt-everywhere-src-5.15.2.tar.xz cd qt-everywhere-src-5.15.2 ./configure -v -prefix /usr/local/Qt-5.15.2-static -release -opensource -confirm-license -c++std c++11 -static -accessibility -fontconfig -no-libudev -no-vulkan -skip qtdeclarative -skip qtconnectivity -skip qtmultimedia -qt-zlib -no-mtdev -no-journald -qt-libpng -qt-libjpeg -system-freetype -qt-harfbuzz -no-openssl -no-libproxy -no-glib -nomake examples -nomake tests -no-compile-examples -cups -no-evdev -no-dbus -no-egl -no-eglfs -qreal double -no-opengl -skip qtlocation -skip qtsensors -skip qtwayland -skip qtgamepad -skip qtserialbus -skip qt3d -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtspeech -skip qtwebengine make -j24 sudo make install
Configure output:
Configure summary:Build type: linux-g++ (x86_64, CPU features: mmx sse sse2) Compiler: gcc 7.5.0 Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl enable_new_dtags f16c largefile precompile_header rdrnd shani x86SimdAlways release c++11 concurrent reduce_exports reduce_relocations static stl Build options: Mode ................................... release Optimize release build for size ........ no Building shared libraries .............. no Using C standard ....................... C11 Using C++ standard ..................... C++11 Using ccache ........................... no Using new DTAGS ........................ yes Relocatable ............................ no Using precompiled headers .............. yes Using LTCG ............................. no Target compiler supports: SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX .................................. AVX AVX2 AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI Other x86 ............................ AES F16C RDRAND SHA Intrinsics without -mXXX option ...... yes Build parts ............................ libs tools Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... no Qt D-Bus directly linked to libdbus .... no Qt Gui ................................. yes Qt Network ............................. yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes udev ................................... no Using system zlib ...................... no Zstandard support ...................... no Qt Core: DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... no iconv .................................. yes ICU .................................... no Built-in copy of the MIME database ..... yes Tracing backend ........................ <none> Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Network: getifaddrs() ........................... yes IPv6 ifname ............................ yes libproxy ............................... no Linux AF_NETLINK ....................... yes OpenSSL ................................ no Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no DTLS ................................... no OCSP-stapling .......................... no SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ yes HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. yes Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ no Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... no OpenVG ................................. no OpenGL: Desktop OpenGL ....................... no OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. no libinput ............................... no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... no xkbcommon-x11 ........................ yes QPA backends: DirectFB ............................... no EGLFS .................................. no LinuxFB ................................ yes VNC .................................... yes Qt Sql: SQL item models ........................ yes Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows Qt PrintSupport: CUPS ................................... yes Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite2 ................................ no SQLite ................................. yes Using system provided SQLite ......... no TDS (Sybase) ........................... no Qt Testlib: Tester for item models ................. yes Serial Port: ntddmodm ............................... no Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no QtXmlPatterns: XML schema support ..................... yes Qt Tools: Qt Assistant ........................... yes Qt Designer ............................ yes Qt Distance Field Generator ............ yes kmap2qmap .............................. yes Qt Linguist ............................ yes Mac Deployment Tool .................... no makeqpf ................................ yes pixeltool .............................. yes qdbus .................................. yes qev .................................... yes Qt Attributions Scanner ................ yes qtdiag ................................. yes qtpaths ................................ yes qtplugininfo ........................... yes Windows deployment tool ................ no WinRT Runner Tool ...................... no Qt Tools: QDoc ................................... noNote: Also available for Linux: linux-clang linux-iccNote: Using static linking will disable the use of dynamically loaded plugins. Make sure to import all needed static plugins, or compile needed modules into the library.WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. On macOS, you can use Homebrew's llvm package. On Windows, you must set LLVM_INSTALL_DIR to the installation path.Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into '/usr/local/Qt-5.15.2-static'.Prior to reconfiguration, make sure you remove any leftovers from the previous build.
Compiling and installing succeeded without errors.
Compiling my programs succeeds without error.
When I run my program, or when I run /usr/local/Qt-5.15.2-static/bin/qtdiag
I get the error:
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. Aborted (core dumped)
If I repeat the exact same procedure with the same configure options with Qt 5.12.10 everything works as expected.
I noticed the following diferences in the plugin directories between 5.12.10 and 5.15.2:
ls -l /usr/local/Qt-5.12.10-static/plugins/platforms/ total 508 -rw-r--r-- 1 root root 153504 Nov 10 13:03 libqlinuxfb.a -rw-r--r-- 1 root root 1486 Nov 10 13:05 libqlinuxfb.prl -rw-r--r-- 1 root root 48290 Nov 10 13:03 libqminimal.a -rw-r--r-- 1 root root 1366 Nov 10 13:05 libqminimal.prl -rw-r--r-- 1 root root 100536 Nov 10 13:03 libqoffscreen.a -rw-r--r-- 1 root root 1346 Nov 10 13:05 libqoffscreen.prl -rw-r--r-- 1 root root 173808 Nov 10 13:03 libqvnc.a -rw-r--r-- 1 root root 1486 Nov 10 13:05 libqvnc.prl -rw-r--r-- 1 root root 12890 Nov 10 13:03 libqxcb.a -rw-r--r-- 1 root root 1711 Nov 10 13:05 libqxcb.prl ls -l /usr/local/Qt-5.15.2-static/plugins/platforms/ total 484 -rw-r--r-- 1 root root 152904 Dec 6 19:12 libqlinuxfb.a -rw-r--r-- 1 root root 2070 Dec 6 19:15 libqlinuxfb.prl -rw-r--r-- 1 root root 48412 Dec 6 19:12 libqminimal.a -rw-r--r-- 1 root root 1655 Dec 6 19:15 libqminimal.prl -rw-r--r-- 1 root root 98492 Dec 6 19:12 libqoffscreen.a -rw-r--r-- 1 root root 1640 Dec 6 19:15 libqoffscreen.prl -rw-r--r-- 1 root root 171884 Dec 6 19:12 libqvnc.a -rw-r--r-- 1 root root 2122 Dec 6 19:15 libqvnc.prl
It seems libqxcb.a is missing.
Attachments
Issue Links
- relates to
-
PYSIDE-2283 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
- Closed