Qt compile from source problem for xcb in ubuntu 18
-
Hi,
When I install Qt from the site offical installer all is fine for xcb plugin. But I need to compile from source for mysql plugin availability
( I assume , is there any way to use mysql from offical download? )When I compile same Qt version from the source Qt5.12.1 from https://download.qt.io/archive/qt/5.12/5.12.1/single/ I cant use the xcb and cant see app neither is working?
What should I do ? 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. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl. Aborted (core dumped)
-
Hi,
The xcb backend wasn't built, you are likely missing a dependency. You should check the tests log.
I'd say libxkb dev package is missing.
-
@RahibeMeryem I encountered the same problem recently with my developer build on a new Ubuntu 18.04 machine.
I checked the config summary, and now installed:
sudo apt install libxi-dev libxcomposite-dev libxcursor-dev libxtst-dev
configure
is happy now, let's see what happens when the build succeeds.Regards
-
Unfortunately it didn't help :(
@SGaist, any idea what I could be missing?
Running configuration tests... Checking for machine tuple... yes Checking for valid makespec... yes Checking for target architecture... x86_64 Checking for SSE2 instructions... yes Checking for AES new instructions... yes Checking for alloca() in alloca.h... yes Checking for SSE3 instructions... yes Checking for SSSE3 instructions... yes Checking for SSE4.1 instructions... yes Checking for SSE4.2 instructions... yes Checking for AVX instructions... yes Checking for AVX2 instructions... yes Checking for AVX512 F instructions... yes Checking for AVX512 BW instructions... yes Checking for AVX512 CD instructions... yes Checking for AVX512 DQ instructions... yes Checking for AVX512 ER instructions... yes Checking for AVX512 IFMA instructions... yes Checking for AVX512 PF instructions... yes Checking for AVX512 VBMI instructions... yes Checking for AVX512 VL instructions... yes Checking for C++14 support... yes Checking for C++1z support... yes Checking for C99 support... yes Checking for C11 support... yes Checking for pkg-config... yes Checking for D-Bus >= 1.2... yes Checking for gdb index support... no Checking for new dtags support... yes Checking for F16C instructions... yes Checking for D-Bus >= 1.2 (host)... yes Checking for udev... yes Checking for -Og support... yes Checking for POSIX fallocate()... yes Checking for precompiled header support... yes Checking for RDRAND instruction... yes Checking for symbol visibility support... yes Checking for -Bsymbolic-functions support... yes Checking for SHA new instructions... yes Checking for STL compatibility... yes Checking for zlib... yes Checking for Intrinsics without -mXXX argument... yes Checking for Zstandard... no Checking for clock_gettime()... yes Checking for POSIX monotonic clock... yes Checking for C++11 <future>... yes Checking for dlopen()... yes Checking for eventfd... yes Checking for futimens()... yes Checking for getauxval()... yes Checking for getentropy()... yes Checking for GLib... yes Checking for POSIX iconv... yes Checking for ICU... yes Checking for inotify... yes Checking for SysV IPC... yes Checking for linkat()... yes Checking for ppoll()... yes Checking for renameat2()... no Checking for slog2... no Checking for statx() in libc... no Checking for 64 bit atomics... yes Checking for DoubleConversion... no Checking for PCRE2... no Checking for O_CLOEXEC... yes Checking for C++11 <random>... yes Checking for working std::atomic for function pointers... yes Checking for OpenSSL Headers... yes Checking for DTLS support in OpenSSL... yes Checking for getifaddrs()... yes Checking for IPv6 ifname... yes Checking for Linux AF_NETLINK sockets... yes Checking for OpenSSL 1.1 support... yes Checking for OCSP stapling support in OpenSSL... yes Checking for xkbcommon >= 0.5.0... no Checking for Desktop OpenGL... yes Checking for KMS... yes Checking for DRM Atomic API... yes Checking for EGL... no Checking for evdev... yes Checking for FreeType... yes Checking for Fontconfig... yes Checking for GBM... no Checking for libinput... no Checking for LinuxFB... yes Checking for mtdev... no Checking for OpenVG... no Checking for default QPA platform... xcb Checking for HarfBuzz... yes Checking for libjpeg... yes Checking for libpng... yes Checking for tslib... no Checking for Vulkan... no Checking for XLib... yes Checking for XCB >= 1.9... yes Checking for XCB Xlib... yes Checking for GTK+ >= 3.6... no Checking for CUPS... yes Checking for DB2 (IBM)... no Checking for InterBase... no Checking for MySQL... no Checking for OCI (Oracle)... no Checking for ODBC... no Checking for PostgreSQL... no Checking for SQLite (version 2)... no Checking for TDS (Sybase)... no Checking for Socket CAN... yes Checking for Socket CAN FD... yes Checking for Direct3D 12... no Checking for SDL2... no Checking for Assimp... no Checking for Autodesk FBX... no Checking for Wayland client library... no Checking for Wayland EGL library... no Checking for wayland-server... no Checking for BlueZ... no Checking for sensorfw... no Checking for Gypsy... no Checking for WinRT Geolocation API... no Checking for ALSA... no Checking for GStreamer 1.0... no Checking for GStreamer 0.10... no Checking for Video for Linux... yes Checking for OpenAL... no Checking for PulseAudio >= 0.9.10... no Checking for libresourceqt5... no Checking for libclang... no Checking for alsa... no Checking for embedded... no Checking for bison... no Checking for GCC 6 or newer... yes Checking for flex... no Checking for gperf... no Checking for host pkg-config... /usr/bin/pkg-config Checking for poppler-cpp... no Checking for pulseaudio >= 0.9.10... no Checking for python2... /usr/bin/python2 Checking for d-bus... yes Checking for fontconfig... yes Checking for freetype >= 2.4.2... yes Checking for glib-2.0 >= 2.32.0... yes Checking for glibc > 2.16... yes Checking for harfbuzz >= 2.0.0... no Checking for compatible jpeglib... yes Checking for jsoncpp... no Checking for khr... no Checking for lcms2... yes Checking for libdrm... yes Checking for libevent... no Checking for libvpx... no Checking for libwebp, libwebpmux and libwebpdemux... no Checking for libxml2 and libxslt... no Checking for minizip... no Checking for system ninja... no Checking for nss >= 3.26... no Checking for opus... no Checking for libpng >= 1.6.0... yes Checking for protobuf... no Checking for re2... no Checking for snappy... no Checking for x11... yes Checking for xcomposite... yes Checking for xcursor... yes Checking for xi... yes Checking for xtst... yes Checking for zlib... yes Done running configuration tests. Configure summary: Build type: linux-g++ (x86_64, CPU features: mmx sse sse2) Compiler: gcc 7.3.0 Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples enable_new_dtags f16c headersclean largefile optimize_debug precompile_header rdrnd shani warnings_are_errors x86SimdAlways private_tests shared rpath debug c++11 c++14 c++1z concurrent dbus reduce_exports reduce_relocations release_tools stl Build options: Mode ................................... debug; optimized tools Optimize debug build ................... yes Building shared libraries .............. yes Using C standard ....................... C11 Using C++ standard ..................... C++1z Using ccache ........................... no Using new DTAGS ........................ yes Generating GDB index ................... 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 ............................... yes Qt D-Bus directly linked to libdbus .... yes 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 ................................... yes Using system zlib ...................... yes Zstandard support ...................... no Qt Core: DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... yes iconv .................................. no ICU .................................... yes Tracing backend ........................ <none> Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no Using system PCRE2 ..................... no Qt Network: getifaddrs() ........................... yes IPv6 ifname ............................ yes libproxy ............................... no Linux AF_NETLINK ....................... yes OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ yes HarfBuzz ............................... yes Using system HarfBuzz ................ yes Fontconfig ............................. yes Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... yes PNG .................................. yes Using system libpng ................ yes EGL .................................... no OpenVG ................................. no OpenGL: Desktop OpenGL ....................... yes 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 .................................. yes libinput ............................... no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. no X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... no QPA backends: DirectFB ............................... no EGLFS .................................. no LinuxFB ................................ yes VNC .................................... yes Mir client ............................. no 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 Qt SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes SerialPort Support ..................... yes Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML tracing JIT support ................ no QML sequence object .................... yes QML list model ......................... yes QML XML http request ................... yes QML Locale ............................. yes QML delegate model ..................... yes Qt Quick: Direct3D 12 ............................ no AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Gamepad: SDL2 ................................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Output Qt3D Job traces ................. no Output Qt3D GL traces .................. no Use SSE2 instructions .................. yes Use AVX2 instructions .................. no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D Renderers: OpenGL Renderer ........................ yes Qt 3D GeometryLoaders: Autodesk FBX ........................... no Qt Wayland Client ........................ no Qt Wayland Compositor .................... no Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API (desktop & UWP) .... no WinRT advanced bluetooth low energy API (desktop & UWP) . no Qt Sensors: sensorfw ............................... no Qt Quick Controls 2: Styles ................................. Default Fusion Imagine Material Universal Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Qt Positioning: Gypsy GPS Daemon ....................... no WinRT Geolocation API .................. no Qt Location: Qt.labs.location experimental QML plugin . yes Geoservice plugins: OpenStreetMap ........................ yes HERE ................................. yes Esri ................................. yes Mapbox ............................... yes MapboxGL ............................. yes Itemsoverlay ......................... yes QtXmlPatterns: XML schema support ..................... yes Qt Multimedia: ALSA ................................... no GStreamer 1.0 .......................... no GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. no PulseAudio ............................. no Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no Qt Tools: QDoc ................................... no Qt WebEngineCore: Qt WebEngine Widgets ................... yes Qt WebEngine Qml ....................... yes Embedded build ......................... no Pepper Plugins ......................... yes Printing and PDF ....................... yes Proprietary Codecs ..................... no Spellchecker ........................... yes Native Spellchecker .................... no WebRTC ................................. yes Use System Ninja ....................... no Geolocation ............................ yes WebChannel support ..................... yes Use v8 snapshot ........................ yes Kerberos Authentication ................ no Extensions ............................. yes Use ALSA ............................... no Use PulseAudio ......................... no Optional system libraries used: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no glib ................................. yes zlib ................................. yes minizip .............................. no libevent ............................. no jsoncpp .............................. no protobuf ............................. no libxml2 and libxslt .................. no lcms2 ................................ yes png .................................. yes JPEG ................................. yes harfbuzz ............................. no freetype ............................. yes x11 .................................. yes Required system libraries: fontconfig ........................... yes dbus ................................. yes nss .................................. no khr .................................. no glibc ................................ yes Required system libraries for qpa-xcb: libdrm ............................... yes xcomposite ........................... yes xcursor .............................. yes xi ................................... yes xtst ................................. yes Qt WebEngineQml: UI Delegates ........................... yes Test Support ........................... yes Note: Also available for Linux: linux-clang linux-icc Note: No wayland-egl support detected. Cross-toolkit compatibility disabled. 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. WARNING: gperf is required to build QtWebEngine. WARNING: bison is required to build QtWebEngine. WARNING: flex is required to build QtWebEngine. Qt is now configured for building. Just run 'make'. Once everything is built, Qt is installed. You should NOT run 'make install'. Note that this build cannot be deployed to other machines or devices. Prior to reconfiguration, make sure you remove any leftovers from the previous build.
Ah, indeed it says
xkb
is missing...So
sudo apt install libxkbcommon-dev libxkbcommon-x11-dev
-
It has been removed for the qtbase source tree as all the distributions supported have it.
-
Well... It's in the change log :-)