[英]QML Peformance on Raspberry Pi 3
I've installed Qt5.7 from repository in my rasp. 我已经从锉刀的仓库中安装了Qt5.7。 After compiling my qml program I'm getting following messages and my qml is too slow:
编译我的qml程序后,我收到以下消息,我的qml太慢了:
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"
I've also enabled the openGL driver and also added QMAKE_CXXFLAGS += -mthumb-interwork -mthumb -march=armv7
flags to the .pro, but didn't help... 我还启用了openGL驱动程序,还向
QMAKE_CXXFLAGS += -mthumb-interwork -mthumb -march=armv7
添加了QMAKE_CXXFLAGS += -mthumb-interwork -mthumb -march=armv7
标志,但没有帮助...
You could try to enable the Qt Quick Compiler . 您可以尝试启用Qt快速编译器 。
The Qt Quick Compiler is a development add-on for Qt Quick applications which allows you to compile QML source code into the final binary.
Qt Quick Compiler是Qt Quick应用程序的开发附加组件,它使您可以将QML源代码编译成最终的二进制文件。
You can try a recent version of Qt, according to the official docs: 根据官方文档,您可以尝试最新版本的Qt:
Since Qt version 5.11, the functionality of the Qt Quick Compiler has been integrated into the Qt Quick module itself.
从Qt版本5.11开始,Qt Quick编译器的功能已集成到Qt Quick模块本身中。 This separate add-on remains available in the earlier long term support releases of Qt.
在Qt的早期长期支持版本中,仍然可以使用此单独的附件。
If you still want to use the same version, just add to your qmake configuration file: 如果仍要使用相同版本,只需将其添加到qmake配置文件中:
CONFIG += qtquickcompiler
You also need to add the compiler flags, as mentioned on the wiki page: 您还需要添加编译器标志,如Wiki页面所述:
QMAKE_CXXFLAGS += -mthumb -mthumb-interwork
Finally, enable the proper driver by following these steps: 最后,请按照以下步骤启用适当的驱动程序:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.