移植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
请问是哪里出错了
离线
$ 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指定了可运行之后还是上面那个错误
离线