apt-get install apt-file
apt-file update
apt-file search libz.so.1
搜索 so 文件 在什么包中
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt# ./LinuxArmQtGuiApp
QML debugging is enabled. Only use this in a safe environment.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/opt/Qt5.12.4_ARM_Linux/plugins" This application failed to start because no Qt platform plugin could be initialized. Reinstalli
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb
Aborted (core dumped)
root@Ubuntu-mate:/opt# ^C
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt# export QT_DEBUG_PLUGINS=1
root@Ubuntu-mate:/opt# ./LinuxArmQtGuiApp
QML debugging is enabled. Only use this in a safe environment.
QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt5.12.4_ARM_Linux/plugins" ...
QFactoryLoader::QFactoryLoader() checking directory path "/opt" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/LinuxArmQtGuiApp"
"Failed to extract plugin meta data from '/opt/LinuxArmQtGuiApp'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/opt/qt-everywhere-src-5.12.4-compile-completed.tar"
QElfParser: '/opt/qt-everywhere-src-5.12.4-compile-completed.tar' is not an ELF object
"'/opt/qt-everywhere-src-5.12.4-compile-completed.tar' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/opt/QT_5.12.4_ARM_Linux_in_opt.tar"
QElfParser: '/opt/QT_5.12.4_ARM_Linux_in_opt.tar' is not an ELF object
"'/opt/QT_5.12.4_ARM_Linux_in_opt.tar' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt5.12.4_ARM_Linux/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqeglfs.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqminimal.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqminimalegl.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqoffscreen.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqvnc.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqwebgl.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqwebgl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"webgl"
]
},
"archreq": 0,
"className": "QWebGLIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("webgl")
QFactoryLoader::QFactoryLoader() looking at "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqxcb.so"
Found metadata in lib /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/platforms" ...
Cannot load library /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqxcb.so" : "Cannot load library /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/opt/Qt5.12.4_ARM_Linux/plugins" even though it was found.
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, webgl, xcb.
Aborted (core dumped)
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt# ldd /opt/Qt5.12.4_ARM_Linux/plugins/platforms/libqxcb.so
libQt5XcbQpa.so.5 => /opt/Qt5.12.4_ARM_Linux/lib/libQt5XcbQpa.so.5 (0x76e67000)
libQt5Gui.so.5 => /opt/Qt5.12.4_ARM_Linux/lib/libQt5Gui.so.5 (0x76a7e000)
libQt5Core.so.5 => /opt/Qt5.12.4_ARM_Linux/lib/libQt5Core.so.5 (0x7664f000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x76620000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76512000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76425000)
/lib/ld-linux-armhf.so.3 (0x76f8b000)
libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0x763e8000)
libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x76384000)
libQt5DBus.so.5 => /opt/Qt5.12.4_ARM_Linux/lib/libQt5DBus.so.5 (0x76325000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76301000)
libX11-xcb.so.1 => /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 (0x762ee000)
libXrender.so.1 => /usr/lib/arm-linux-gnueabihf/libXrender.so.1 (0x762d7000)
libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x761e9000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76171000)
libSM.so.6 => /usr/lib/arm-linux-gnueabihf/libSM.so.6 (0x7615b000)
libICE.so.6 => /usr/lib/arm-linux-gnueabihf/libICE.so.6 (0x76139000)
libxkbcommon-x11.so.0 => not found
libxkbcommon.so.0 => /usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0 (0x760fa000)
libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0x76024000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x75ffc000)
libGL.so.1 => /usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1 (0x75f7a000)
libicui18n.so.55 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.55 (0x75de1000)
libicuuc.so.55 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.55 (0x75cc4000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x75cb1000)
libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x75ca6000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x75c99000)
libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x75c71000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x75c4f000)
libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x75c27000)
libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3 (0x75be8000)
libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0x75bd3000)
libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x75b77000)
libglapi.so.0 => /usr/lib/arm-linux-gnueabihf/libglapi.so.0 (0x75b39000)
libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0x75b1e000)
libXdamage.so.1 => /usr/lib/arm-linux-gnueabihf/libXdamage.so.1 (0x75b0c000)
libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0x75af7000)
libxcb-glx.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-glx.so.0 (0x75ae1000)
libxcb-dri2.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri2.so.0 (0x75ad6000)
libxcb-dri3.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri3.so.0 (0x75acc000)
libxcb-present.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-present.so.0 (0x75ac2000)
libxcb-sync.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb-sync.so.1 (0x75ab5000)
libxshmfence.so.1 => /usr/lib/arm-linux-gnueabihf/libxshmfence.so.1 (0x75aa3000)
libXxf86vm.so.1 => /usr/lib/arm-linux-gnueabihf/libXxf86vm.so.1 (0x75a97000)
libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0x75a7e000)
libicudata.so.55 => /usr/lib/arm-linux-gnueabihf/libicudata.so.55 (0x741b7000)
libsystemd.so.0 => /lib/arm-linux-gnueabihf/libsystemd.so.0 (0x7418c000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x74176000)
liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0x74156000)
libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x740c7000)
libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x740ab000)
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
root@Ubuntu-mate:/opt#
apt-get install libxkbcommon-dev libxkbcommon-x11-dev
Got keys from plugin meta data ("xcb_glx")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/xcbglintegrations" ...
loaded library "/opt/Qt5.12.4_ARM_Linux/plugins/xcbglintegrations/libqxcb-glx-integration.so"
./LinuxArmQtGuiApp: symbol lookup error: /opt/Qt5.12.4_ARM_Linux/lib/libQt5XcbQpa.so.5: undefined symbol: FT_Get_Font_Format
root@Ubuntu-mate:/opt#
apt-get install libfreetype6
200字以内,仅用于支线交流,主线讨论请采用回复功能。