我正在为arm开发一个QML应用程序,但是当我在cl- more imx7中编译应用程序时遇到了一个问题,性能非常慢,当我用一个文本框编译一个应用程序时也会发生这种情况这是用C++编写的QML,性能很好,有人知道我该怎么做才能给我的应用程序更多的资源或者更好的性能
发布于 2018-01-12 13:11:41
将Qt5添加到您的映像并启用pxp支持。
要获得Qt5支持,请在local.conf中添加以下行
IMAGE_INSTALL_append = " qtconnectivity bluez5 qtbase qtbase-fonts qtbase-plugins imx-lib imx-test imx-gst1.0-plugin gstreamer1.0-plugins-imx gstreamer1.0-meta-base gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-libav"
CORE_IMAGE_EXTRA_INSTALL += "gstreamer1.0-plugins-ugly gstreamer1.0-plugins-ugly-meta packagegroup-fsl-gstreamer1.0-commercial "
PACKAGECONFIG_append_pn-qtmultimedia = " alsa gstreamer"要获得PXP支持,请遵循以下说明
vi meta-qt5/recipes-qt/qt5/qtbase_%.bbappend .添加以下行
PACKAGECONFIG_GL_imxpxp = "gles2"
QT_CONFIG_FLAGS_APPEND_imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-no-eglfs', '-eglfs', d)}"发布于 2017-12-21 19:22:56
您需要完整的openGL加速和自定义的Qt版本才能运行Qt应用程序。
你在用yocto吗?
https://stackoverflow.com/questions/47841472
复制相似问题