OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 513|回复: 0

基于RK3568Ubuntu-base移植后的系统,通过移植Qt在开发板上运行Qt可执行文件失败

[复制链接]

30

主题

71

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
254
金钱
254
注册时间
2020-10-19
在线时间
54 小时
发表于 2024-6-7 14:04:34 | 显示全部楼层 |阅读模式
  1. hopes@localhost:~$ export QT_QPA_PLATFORM=linuxfb
  2. hopes@localhost:~$ export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt5/plugins
  3. hopes@localhost:~$ export QT_QPA_FONTDIR=/usr/share/fonts/truetype/dejavu
  4. hopes@localhost:~$ ./Qt_RK3568_demo
  5. QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins" ...
  6. QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes" ...
  7. QFactoryLoader::QFactoryLoader() looking at "/home/hopes/main_RK3568"
  8. "Failed to extract plugin meta data from '/home/hopes/main_RK3568'"
  9.          not a plugin
  10. QFactoryLoader::QFactoryLoader() looking at "/home/hopes/Qt_RK3568_demo"
  11. "Failed to extract plugin meta data from '/home/hopes/Qt_RK3568_demo'"
  12.          not a plugin
  13. QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/platforms" ...
  14. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqlinuxfb.so"
  15. Found metadata in lib /usr/lib/qt5/plugins/platforms/libqlinuxfb.so, metadata=
  16. {
  17.     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
  18.     "MetaData": {
  19.         "Keys": [
  20.             "linuxfb"
  21.         ]
  22.     },
  23.     "archreq": 0,
  24.     "className": "QLinuxFbIntegrationPlugin",
  25.     "debug": false,
  26.     "version": 331520
  27. }


  28. Got keys from plugin meta data ("linuxfb")
  29. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqminimal.so"
  30. Found metadata in lib /usr/lib/qt5/plugins/platforms/libqminimal.so, metadata=
  31. {
  32.     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
  33.     "MetaData": {
  34.         "Keys": [
  35.             "minimal"
  36.         ]
  37.     },
  38.     "archreq": 0,
  39.     "className": "QMinimalIntegrationPlugin",
  40.     "debug": false,
  41.     "version": 331520
  42. }


  43. Got keys from plugin meta data ("minimal")
  44. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqoffscreen.so"
  45. Found metadata in lib /usr/lib/qt5/plugins/platforms/libqoffscreen.so, metadata=
  46. {
  47.     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
  48.     "MetaData": {
  49.         "Keys": [
  50.             "offscreen"
  51.         ]
  52.     },
  53.     "archreq": 0,
  54.     "className": "QOffscreenIntegrationPlugin",
  55.     "debug": false,
  56.     "version": 331520
  57. }


  58. Got keys from plugin meta data ("offscreen")
  59. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqvnc.so"
  60. Found metadata in lib /usr/lib/qt5/plugins/platforms/libqvnc.so, metadata=
  61. {
  62.     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
  63.     "MetaData": {
  64.         "Keys": [
  65.             "vnc"
  66.         ]
  67.     },
  68.     "archreq": 0,
  69.     "className": "QVncIntegrationPlugin",
  70.     "debug": false,
  71.     "version": 331520
  72. }


  73. Got keys from plugin meta data ("vnc")
  74. QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/platforms" ...
  75. loaded library "/usr/lib/qt5/plugins/platforms/libqlinuxfb.so"
  76. Failed to mmap framebuffer (Invalid argument)
  77. linuxfb: Failed to initialize screen
  78. qt.qpa.input: evdevkeyboard: Using device discovery
  79. qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Keyboard)
  80. qt.qpa.input: doing static device discovery for  "/dev/input/event0"
  81. qt.qpa.input: doing static device discovery for  "/dev/input/event1"
  82. qt.qpa.input: doing static device discovery for  "/dev/input/event2"
  83. qt.qpa.input: doing static device discovery for  "/dev/input/event3"
  84. qt.qpa.input: doing static device discovery for  "/dev/input/event4"
  85. qt.qpa.input: doing static device discovery for  "/dev/input/event5"
  86. qt.qpa.input: doing static device discovery for  "/dev/input/event6"
  87. qt.qpa.input: doing static device discovery for  "/dev/input/event7"
  88. qt.qpa.input: doing static device discovery for  "/dev/input/event8"
  89. qt.qpa.input: Found matching devices ()
  90. qt.qpa.input: evdevmouse: Using device discovery
  91. qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Mouse|Device_Touchpad)
  92. qt.qpa.input: doing static device discovery for  "/dev/input/event0"
  93. qt.qpa.input: doing static device discovery for  "/dev/input/event1"
  94. qt.qpa.input: doing static device discovery for  "/dev/input/event2"
  95. qt.qpa.input: doing static device discovery for  "/dev/input/event3"
  96. qt.qpa.input: doing static device discovery for  "/dev/input/event4"
  97. qt.qpa.input: doing static device discovery for  "/dev/input/event5"
  98. qt.qpa.input: doing static device discovery for  "/dev/input/event6"
  99. qt.qpa.input: doing static device discovery for  "/dev/input/event7"
  100. qt.qpa.input: doing static device discovery for  "/dev/input/event8"
  101. qt.qpa.input: Found matching devices ()
  102. qt.qpa.input: evdevtouch: Using device discovery
  103. qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Touchpad|Device_Touchscreen)
  104. qt.qpa.input: doing static device discovery for  "/dev/input/event0"
  105. qt.qpa.input: doing static device discovery for  "/dev/input/event1"
  106. qt.qpa.input: doing static device discovery for  "/dev/input/event2"
  107. qt.qpa.input: Found touchscreen at "/dev/input/event2"
  108. qt.qpa.input: doing static device discovery for  "/dev/input/event3"
  109. qt.qpa.input: doing static device discovery for  "/dev/input/event4"
  110. qt.qpa.input: doing static device discovery for  "/dev/input/event5"
  111. qt.qpa.input: doing static device discovery for  "/dev/input/event6"
  112. qt.qpa.input: doing static device discovery for  "/dev/input/event7"
  113. qt.qpa.input: doing static device discovery for  "/dev/input/event8"
  114. qt.qpa.input: Found matching devices ("/dev/input/event2")
  115. qt.qpa.input: evdevtouch: Adding device at /dev/input/event2
  116. qt.qpa.input: evdevtouch: Using device /dev/input/event2
  117. qt.qpa.input: evdevtouch: /dev/input/event2: Protocol type B  (multi), filtered=no
  118. qt.qpa.input: evdevtouch: /dev/input/event2: min X: 0 max X: 800
  119. qt.qpa.input: evdevtouch: /dev/input/event2: min Y: 0 max Y: 1280
  120. qt.qpa.input: evdevtouch: /dev/input/event2: min pressure: 0 max pressure: 0
  121. no screens available, assuming 24-bit color
  122. qt.qpa.input: evdevtouch: /dev/input/event2: device name: dsi1_ts_gt9xx
  123. QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/styles" ...
  124. QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/styles" ...
  125. QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/iconengines" ...
  126. QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/iconengines" ...
  127. QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/imageformats" ...
  128. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqgif.so"
  129. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqgif.so, metadata=
  130. {
  131.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  132.     "MetaData": {
  133.         "Keys": [
  134.             "gif"
  135.         ],
  136.         "MimeTypes": [
  137.             "image/gif"
  138.         ]
  139.     },
  140.     "archreq": 0,
  141.     "className": "QGifPlugin",
  142.     "debug": false,
  143.     "version": 331520
  144. }


  145. Got keys from plugin meta data ("gif")
  146. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqicns.so"
  147. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqicns.so, metadata=
  148. {
  149.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  150.     "MetaData": {
  151.         "Keys": [
  152.             "icns"
  153.         ],
  154.         "MimeTypes": [
  155.             "image/x-icns"
  156.         ]
  157.     },
  158.     "archreq": 0,
  159.     "className": "QICNSPlugin",
  160.     "debug": false,
  161.     "version": 331520
  162. }


  163. Got keys from plugin meta data ("icns")
  164. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqico.so"
  165. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqico.so, metadata=
  166. {
  167.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  168.     "MetaData": {
  169.         "Keys": [
  170.             "ico",
  171.             "cur"
  172.         ],
  173.         "MimeTypes": [
  174.             "image/vnd.microsoft.icon",
  175.             "image/vnd.microsoft.icon"
  176.         ]
  177.     },
  178.     "archreq": 0,
  179.     "className": "QICOPlugin",
  180.     "debug": false,
  181.     "version": 331520
  182. }


  183. Got keys from plugin meta data ("ico", "cur")
  184. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
  185. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqjpeg.so, metadata=
  186. {
  187.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  188.     "MetaData": {
  189.         "Keys": [
  190.             "jpg",
  191.             "jpeg"
  192.         ],
  193.         "MimeTypes": [
  194.             "image/jpeg",
  195.             "image/jpeg"
  196.         ]
  197.     },
  198.     "archreq": 0,
  199.     "className": "QJpegPlugin",
  200.     "debug": false,
  201.     "version": 331520
  202. }


  203. Got keys from plugin meta data ("jpg", "jpeg")
  204. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtga.so"
  205. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtga.so, metadata=
  206. {
  207.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  208.     "MetaData": {
  209.         "Keys": [
  210.             "tga"
  211.         ],
  212.         "MimeTypes": [
  213.             "image/x-tga"
  214.         ]
  215.     },
  216.     "archreq": 0,
  217.     "className": "QTgaPlugin",
  218.     "debug": false,
  219.     "version": 331520
  220. }


  221. Got keys from plugin meta data ("tga")
  222. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
  223. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtiff.so, metadata=
  224. {
  225.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  226.     "MetaData": {
  227.         "Keys": [
  228.             "tiff",
  229.             "tif"
  230.         ],
  231.         "MimeTypes": [
  232.             "image/tiff",
  233.             "image/tiff"
  234.         ]
  235.     },
  236.     "archreq": 0,
  237.     "className": "QTiffPlugin",
  238.     "debug": false,
  239.     "version": 331520
  240. }


  241. Got keys from plugin meta data ("tiff", "tif")
  242. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
  243. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwbmp.so, metadata=
  244. {
  245.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  246.     "MetaData": {
  247.         "Keys": [
  248.             "wbmp"
  249.         ],
  250.         "MimeTypes": [
  251.             "image/vnd.wap.wbmp"
  252.         ]
  253.     },
  254.     "archreq": 0,
  255.     "className": "QWbmpPlugin",
  256.     "debug": false,
  257.     "version": 331520
  258. }


  259. Got keys from plugin meta data ("wbmp")
  260. QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
  261. Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwebp.so, metadata=
  262. {
  263.     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
  264.     "MetaData": {
  265.         "Keys": [
  266.             "webp"
  267.         ],
  268.         "MimeTypes": [
  269.             "image/webp"
  270.         ]
  271.     },
  272.     "archreq": 0,
  273.     "className": "QWebpPlugin",
  274.     "debug": false,
  275.     "version": 331520
  276. }


  277. Got keys from plugin meta data ("webp")
  278. QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/imageformats" ...
  279. loaded library "/usr/lib/qt5/plugins/imageformats/libqgif.so"
  280. loaded library "/usr/lib/qt5/plugins/imageformats/libqicns.so"
  281. loaded library "/usr/lib/qt5/plugins/imageformats/libqico.so"
  282. loaded library "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
  283. loaded library "/usr/lib/qt5/plugins/imageformats/libqtga.so"
  284. loaded library "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
  285. loaded library "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
  286. loaded library "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
  287. QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/accessiblebridge" ...
  288. QFactoryLoader::QFactoryLoader() checking directory path "/home/hopes/accessiblebridge" ...
  289. Cannot create window: no screens available
  290. Aborted (core dumped)
复制代码
这是我尝试运行Qt时出现的日志。我基本能确定的是:1、GNOME桌面是正常运行的
2、Qt可执行程序的依赖、权限、架构aarch64适配是没问题的;Qt库移植也没啥问题【开发思路上在Zynq已经验证过】

3、通过chatgpt给的原因是:尝试使用Linux Framebuffer时mmap framebuffer失败,出现了初始化屏幕失败的问题,导致无法创建窗口,从而导致程序终止。
4、我更换过不同的显示平台插件,但当前只有Linuxfb检测到。
求助一下路过的大佬。这个该怎么解决呢?
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 08:56

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表