中级会员
- 积分
- 254
- 金钱
- 254
- 注册时间
- 2020-10-19
- 在线时间
- 54 小时
|
- hopes@localhost:~$ export QT_QPA_PLATFORM=linuxfb
- hopes@localhost:~$ export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt5/plugins
- hopes@localhost:~$ export QT_QPA_FONTDIR=/usr/share/fonts/truetype/dejavu
- hopes@localhost:~$ ./Qt_RK3568_demo
- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins" ...
- QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes" ...
- QFactoryLoader::QFactoryLoader() looking at "/home/hopes/main_RK3568"
- "Failed to extract plugin meta data from '/home/hopes/main_RK3568'"
- not a plugin
- QFactoryLoader::QFactoryLoader() looking at "/home/hopes/Qt_RK3568_demo"
- "Failed to extract plugin meta data from '/home/hopes/Qt_RK3568_demo'"
- not a plugin
- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/platforms" ...
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqlinuxfb.so"
- Found metadata in lib /usr/lib/qt5/plugins/platforms/libqlinuxfb.so, metadata=
- {
- "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
- "MetaData": {
- "Keys": [
- "linuxfb"
- ]
- },
- "archreq": 0,
- "className": "QLinuxFbIntegrationPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("linuxfb")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqminimal.so"
- Found metadata in lib /usr/lib/qt5/plugins/platforms/libqminimal.so, metadata=
- {
- "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
- "MetaData": {
- "Keys": [
- "minimal"
- ]
- },
- "archreq": 0,
- "className": "QMinimalIntegrationPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("minimal")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqoffscreen.so"
- Found metadata in lib /usr/lib/qt5/plugins/platforms/libqoffscreen.so, metadata=
- {
- "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
- "MetaData": {
- "Keys": [
- "offscreen"
- ]
- },
- "archreq": 0,
- "className": "QOffscreenIntegrationPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("offscreen")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqvnc.so"
- Found metadata in lib /usr/lib/qt5/plugins/platforms/libqvnc.so, metadata=
- {
- "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
- "MetaData": {
- "Keys": [
- "vnc"
- ]
- },
- "archreq": 0,
- "className": "QVncIntegrationPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("vnc")
- QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/platforms" ...
- loaded library "/usr/lib/qt5/plugins/platforms/libqlinuxfb.so"
- Failed to mmap framebuffer (Invalid argument)
- linuxfb: Failed to initialize screen
- qt.qpa.input: evdevkeyboard: Using device discovery
- qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Keyboard)
- qt.qpa.input: doing static device discovery for "/dev/input/event0"
- qt.qpa.input: doing static device discovery for "/dev/input/event1"
- qt.qpa.input: doing static device discovery for "/dev/input/event2"
- qt.qpa.input: doing static device discovery for "/dev/input/event3"
- qt.qpa.input: doing static device discovery for "/dev/input/event4"
- qt.qpa.input: doing static device discovery for "/dev/input/event5"
- qt.qpa.input: doing static device discovery for "/dev/input/event6"
- qt.qpa.input: doing static device discovery for "/dev/input/event7"
- qt.qpa.input: doing static device discovery for "/dev/input/event8"
- qt.qpa.input: Found matching devices ()
- qt.qpa.input: evdevmouse: Using device discovery
- qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Mouse|Device_Touchpad)
- qt.qpa.input: doing static device discovery for "/dev/input/event0"
- qt.qpa.input: doing static device discovery for "/dev/input/event1"
- qt.qpa.input: doing static device discovery for "/dev/input/event2"
- qt.qpa.input: doing static device discovery for "/dev/input/event3"
- qt.qpa.input: doing static device discovery for "/dev/input/event4"
- qt.qpa.input: doing static device discovery for "/dev/input/event5"
- qt.qpa.input: doing static device discovery for "/dev/input/event6"
- qt.qpa.input: doing static device discovery for "/dev/input/event7"
- qt.qpa.input: doing static device discovery for "/dev/input/event8"
- qt.qpa.input: Found matching devices ()
- qt.qpa.input: evdevtouch: Using device discovery
- qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Touchpad|Device_Touchscreen)
- qt.qpa.input: doing static device discovery for "/dev/input/event0"
- qt.qpa.input: doing static device discovery for "/dev/input/event1"
- qt.qpa.input: doing static device discovery for "/dev/input/event2"
- qt.qpa.input: Found touchscreen at "/dev/input/event2"
- qt.qpa.input: doing static device discovery for "/dev/input/event3"
- qt.qpa.input: doing static device discovery for "/dev/input/event4"
- qt.qpa.input: doing static device discovery for "/dev/input/event5"
- qt.qpa.input: doing static device discovery for "/dev/input/event6"
- qt.qpa.input: doing static device discovery for "/dev/input/event7"
- qt.qpa.input: doing static device discovery for "/dev/input/event8"
- qt.qpa.input: Found matching devices ("/dev/input/event2")
- qt.qpa.input: evdevtouch: Adding device at /dev/input/event2
- qt.qpa.input: evdevtouch: Using device /dev/input/event2
- qt.qpa.input: evdevtouch: /dev/input/event2: Protocol type B (multi), filtered=no
- qt.qpa.input: evdevtouch: /dev/input/event2: min X: 0 max X: 800
- qt.qpa.input: evdevtouch: /dev/input/event2: min Y: 0 max Y: 1280
- qt.qpa.input: evdevtouch: /dev/input/event2: min pressure: 0 max pressure: 0
- no screens available, assuming 24-bit color
- qt.qpa.input: evdevtouch: /dev/input/event2: device name: dsi1_ts_gt9xx
- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/styles" ...
- QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/styles" ...
- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/iconengines" ...
- QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/iconengines" ...
- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/imageformats" ...
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqgif.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqgif.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "gif"
- ],
- "MimeTypes": [
- "image/gif"
- ]
- },
- "archreq": 0,
- "className": "QGifPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("gif")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqicns.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqicns.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "icns"
- ],
- "MimeTypes": [
- "image/x-icns"
- ]
- },
- "archreq": 0,
- "className": "QICNSPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("icns")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqico.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqico.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "ico",
- "cur"
- ],
- "MimeTypes": [
- "image/vnd.microsoft.icon",
- "image/vnd.microsoft.icon"
- ]
- },
- "archreq": 0,
- "className": "QICOPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("ico", "cur")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqjpeg.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "jpg",
- "jpeg"
- ],
- "MimeTypes": [
- "image/jpeg",
- "image/jpeg"
- ]
- },
- "archreq": 0,
- "className": "QJpegPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("jpg", "jpeg")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtga.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtga.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "tga"
- ],
- "MimeTypes": [
- "image/x-tga"
- ]
- },
- "archreq": 0,
- "className": "QTgaPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("tga")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtiff.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "tiff",
- "tif"
- ],
- "MimeTypes": [
- "image/tiff",
- "image/tiff"
- ]
- },
- "archreq": 0,
- "className": "QTiffPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("tiff", "tif")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwbmp.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "wbmp"
- ],
- "MimeTypes": [
- "image/vnd.wap.wbmp"
- ]
- },
- "archreq": 0,
- "className": "QWbmpPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("wbmp")
- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
- Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwebp.so, metadata=
- {
- "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
- "MetaData": {
- "Keys": [
- "webp"
- ],
- "MimeTypes": [
- "image/webp"
- ]
- },
- "archreq": 0,
- "className": "QWebpPlugin",
- "debug": false,
- "version": 331520
- }
- Got keys from plugin meta data ("webp")
- QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/imageformats" ...
- loaded library "/usr/lib/qt5/plugins/imageformats/libqgif.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqicns.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqico.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqtga.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
- loaded library "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/accessiblebridge" ...
- QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/accessiblebridge" ...
- Cannot create window: no screens available
- Aborted (core dumped)
复制代码 这是我尝试运行Qt时出现的日志。我基本能确定的是:1、GNOME桌面是正常运行的
2、Qt可执行程序的依赖、权限、架构aarch64适配是没问题的;Qt库移植也没啥问题【开发思路上在Zynq已经验证过】
3、通过chatgpt给的原因是:尝试使用Linux Framebuffer时mmap framebuffer失败,出现了初始化屏幕失败的问题,导致无法创建窗口,从而导致程序终止。
4、我更换过不同的显示平台插件,但当前只有Linuxfb检测到。
求助一下路过的大佬。这个该怎么解决呢?
|
|