您尚未登录。

楼主 #1 2021-01-15 20:11:12

Eden
会员
注册时间: 2020-05-22
已发帖子: 31
积分: 27.5

求助,QT移植出现linuxfb can not find 错误

移植Qt5.9.6,已经在虚拟机里面生成了可执行文件,也有将安装目录下面的libs/plgins 复制到板子上
按照网上的资料配置了以下的路径
export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/lib/plugins
export LD_LIBRARY_PATH=/opt/lib:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=800x600:mmSize=800x600:offset=0x0:tty=/dev/tty1
可还是依然出现这个问题
This application failed to start because it could not find or load the Qt platform plugin "linuxfb"
in "/opt/lib/plugins/".

Available platform plugins are: linuxfb, minimal, offscreen, vnc.

Reinstalling the application may fix this problem.




在/opt/lib/plugins/platforms里面可以找到  libqlinuxfb.so
请问是哪里出错了

离线

#2 2021-01-15 21:27:49

黄粱梦
会员
注册时间: 2020-03-17
已发帖子: 45
积分: 39

Re: 求助,QT移植出现linuxfb can not find 错误

$ arm-linux-gnueabihf-objdump -x ./output/target/usr/lib/qt/plugins/platforms/libqlinuxfb.so |grep NEED
  NEEDED               libgthread-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libfontconfig.so.1
  NEEDED               libfreetype.so.6
  NEEDED               libz.so.1
  NEEDED               libQt5Gui.so.5
  NEEDED               libatomic.so.1
  NEEDED               libudev.so.1
  NEEDED               librt.so.1
  NEEDED               libdl.so.2
  NEEDED               libQt5Core.so.5
  NEEDED               libpthread.so.0
  NEEDED               libts.so.0
  NEEDED               libstdc++.so.6
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
  VERNEED              0x0000bb68
  VERNEEDNUM           0x00000008

是不是依赖的文件不在?

离线

楼主 #3 2021-01-16 11:39:07

Eden
会员
注册时间: 2020-05-22
已发帖子: 31
积分: 27.5

Re: 求助,QT移植出现linuxfb can not find 错误

黄粱梦 说:
$ arm-linux-gnueabihf-objdump -x ./output/target/usr/lib/qt/plugins/platforms/libqlinuxfb.so |grep NEED
  NEEDED               libgthread-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libfontconfig.so.1
  NEEDED               libfreetype.so.6
  NEEDED               libz.so.1
  NEEDED               libQt5Gui.so.5
  NEEDED               libatomic.so.1
  NEEDED               libudev.so.1
  NEEDED               librt.so.1
  NEEDED               libdl.so.2
  NEEDED               libQt5Core.so.5
  NEEDED               libpthread.so.0
  NEEDED               libts.so.0
  NEEDED               libstdc++.so.6
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
  VERNEED              0x0000bb68
  VERNEEDNUM           0x00000008

是不是依赖的文件不在?

你好,我按照您说的方法将这些库都移到 /opt/lib目录下,并且用LD_LIBRARY_PATH指定了可运行之后还是上面那个错误

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn