我已使用以下教程交叉编译Qt 5.11.1并将其部署到Raspberry PI 3:https://wiki.qt.io/RaspberryPi2EGLFS
到目前为止,一切正常,直到我陷入第15点:
[在RPi上]运行示例,它是我们之前构建的。在这一点上,它应该 只需以60 FPS和鼠标,键盘等全屏模式工作 触摸支持。
我的问题如下:
pi@raspberrypi:~ $ ./qopenglwidget
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Reinstalling the application may fix this problem.
Przerwane
似乎Rpi没有正确的XCB目录。另一方面,它列出了可用的插件,因此路径应该很好吗?
ldd返回以下内容:
pi@raspberrypi:~ $ ldd qopenglwidget
linux-vdso.so.1 (0x7ec7f000)
/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f58000)
libQt5Widgets.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5 (0x769f2000)
libQt5Gui.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5 (0x765cc000)
libQt5Core.so.5 => /usr/local/qt5pi/lib/libQt5Core.so.5 (0x7608e000)
libbrcmGLESv2.so => /opt/vc/lib/libbrcmGLESv2.so (0x76069000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76040000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x75ef8000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x75e79000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x75e4c000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x75d0d000)
/lib/ld-linux-armhf.so.3 (0x76f6e000)
libharfbuzz.so.0 => /usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0 (0x75c76000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x75c4f000)
libpng16.so.16 => /usr/lib/arm-linux-gnueabihf/libpng16.so.16 (0x75c15000)
libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-conversion.so.1 (0x75bf3000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x75be0000)
libbrcmEGL.so => /opt/vc/lib/libbrcmEGL.so (0x75ba7000)
libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x75b80000)
libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x75b6a000)
libvcos.so => /opt/vc/lib/libvcos.so (0x75b50000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x75b39000)
libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0x75a31000)
libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x75996000)
libgraphite2.so.3 => /usr/lib/arm-linux-gnueabihf/libgraphite2.so.3 (0x75963000)
libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x758ea000)
我觉得还好。我也尝试了此尝试,但没有成功:(Qt 5.4.1) This application failed to start because it could not find or load the Qt platform plugin "xcb"