没有指明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