UKUIStylePlugin......... QObject::connect: No such slot UKUIStylePlugin::tableModeChanged(bool) BlurHelper00000............. m_cfgPath... "/usr/share/qt5-ukui-platformtheme/themeconfig/default.json" 段错误
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" 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.
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 ............... yes PNG .................................. yes Using system libpng ................ yes Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes 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 ............................. no EGL on X11 ........................... no xkbcommon-x11 ........................ no QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... no EGLFS GBM ............................ no EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ no LinuxFB ................................ yes VNC .................................... yes
所以继续阅读 Qt for X11 requirements 文档, 安装文档中所有列出的依赖软件包后, 重新编译 Qt 5.15.16, 这次 qapitrace 运行正常,而且之前报出的缺少 Qt Platform plugin “xcb” in “” 也消失了
PAL
Qt Platform Abstraction (QPA) 是 Qt 中主要的平台抽象层 (Platform Abstraction Layer), PAL 这个概念在 AMD GPU 驱动中也有, 在 Android 里也有类似的 HAL (Hardware Abstraction Layer) 的概念,在系统软件设计中, PAL 的作用可谓是"承上启下", 设计一个接口稳定,易于扩展的 PAL API 是整个用户态系统软件实现效率的关键。通过这次安装 Qt, 又多了一个学习的例子。