• 11807阅读
  • 5回复

[讨论]求助Qt Quick程序在arm上运行出错,如何解决? [复制链接]

上一主题 下一主题
离线downing
 

只看楼主 倒序阅读 楼主  发表于: 2014-07-02
下载了最新的qt-everywhere5.3.1版本的,交叉编译移植到板子上以后直接创建了一个Qt Quick程序放到板子上跑,提示了如下错误,网上找不到解决方法,求如何解决这个问题,感谢。
# ./qmlpng
QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
QQmlApplicationEngine failed to load component
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:2 module "QtQuick.Controls" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:2 module "QtQuick.Controls" is not installed
离线leonchiong

只看该作者 1楼 发表于: 2014-07-03
请问你用的什么板子

我用过友善的板子 不过好像目前只支持到Qt4
离线joeycheng

只看该作者 2楼 发表于: 2014-07-04
没有指明qml的路径,在环境里添加:export QML2_IMPORT_PATH=$QTDIR/qml就能解决qrc:///main.qml:1 module "QtQuick" is not installed这样类似的问题,$QTDIR/qml是你编译安装后会有个文件夹的。
不过我还是没能继续跑起来,我遇到以下问题:
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaB
离线joeycheng

只看该作者 3楼 发表于: 2014-07-04
或者试试export QML_IMPORT_PATH=$QTDIR/qml,不是很清楚具体是什么,可能是建立的工程不同而不同。。。
离线downing

只看该作者 4楼 发表于: 2014-08-22
回 joeycheng 的帖子
joeycheng:或者试试export QML_IMPORT_PATH=$QTDIR/qml,不是很清楚具体是什么,可能是建立的工程不同而不同。。。 (2014-07-04 17:12) 

谢谢你的回答,确实是加上export QML2_IMPORT_PATH=$QTDIR/qml这句话解决了可以运行了,这些
QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
只是警告而已,让运行起来的quick程序强制全屏且无法退出界面只能重启板子。
另外谢谢其他人的回复,就不一条条感谢了
离线wakorias

只看该作者 5楼 发表于: 2014-10-09
楼主,问你你交叉编译5.3.2的时候,./configure后的选项都有哪些?
快速回复
限100 字节
 
上一个 下一个