我设法交叉编译了qt 5.11.3,从ubuntu到https://wiki.qt.io/RaspberryPi2EGLFS之后的raspbian Stretch lite都没有问题,但是当我想运行示例时,我得到了以下信息:
let regexp = new RegExp(
'\\b(?:' +
words.map(regExpEscape).join('|') +
')\\b(?=(?:[^"]*"[^"]*")*[^"]*$)', 'g')
如果我使用linuxfb平台,则示例正在运行(当然不显示opengl动画)。
我尝试了很多事情,但似乎无济于事。关于如何使它起作用的任何想法吗?
我的构建配置是否有帮助:
$export QT_LOGGING_RULES=qt.qpa.*=true && ./qopenglwidget -platform eglfs
qt.qpa.plugin: Could not load the Qt platform plugin "eglfs" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted
谢谢。