简体   繁体   English

Qt5 for Android:Project ERROR:QT中的未知模块:快速qml

[英]Qt5 for Android: Project ERROR: Unknown module(s) in QT: quick qml

I built Qt5 for Android with the step by step tutorial from this link: Building Qt 5 for Android . 我使用此链接的分步教程构建了Android版Qt5:为Android 构建Qt 5

Now, i'm able to build and deploy QWidget Applications to my nexus 7. But if i try to build a QtQuick Application with the given template of QtCreator 2.7.1, i get the following error: 现在,我能够构建和部署QWidget应用程序到我的nexus 7.但是如果我尝试用给定的QtCreator 2.7.1模板构建QtQuick应用程序,我会收到以下错误:

Project ERROR: Unknown module(s) in QT: quick qml

I did every build step exactly as described in the tutorial. 我完全按照教程中的描述完成了每个构建步骤。 Has anybody else faced this error? 还有其他人遇到过这个错误吗?

QtQuick works perfectly well with Qt5.2. QtQuick与Qt5.2完美配合。 My suggestion is that you built Qt5.2 from source, instead of simply installing it, ie you clone it from Gitorious . 我的建议是你从源代码构建了Qt5.2,而不是简单地安装它,即你从Gitorious克隆它。 After you check all the details, once you put it to build, go for a coffee as it will take a while to finish it. 检查完所有细节后,一旦你把它建成,就去喝咖啡,因为它需要一段时间才能完成。

Also, have you installed the Android SDK and NDK? 另外,你安装了Android SDK和NDK吗? If not, my suggestion is that you install the Studio Android . 如果没有,我的建议是你安装Studio Android

You will also have to be very careful in making all the environment setups for your cross-compiling tool-chain otherwise it will not work. 您还必须非常小心地为交叉编译工具链进行所有环境设置,否则它将无法工作。 Check in the sequence what I have for my development settings. 检查我的开发设置的顺序。

在此输入图像描述

Ant is also part of the installation, as you probably won't wish to miss that. Ant也是安装的一部分,因为您可能不希望错过它。

在此输入图像描述

In the end if you have done all the settings accordingly, without forgetting anything, then you just need to select Qt Quick Application. 最后,如果您相应地完成了所有设置,而不忘记任何事情,那么您只需选择Qt快速应用程序。

在此输入图像描述

And it will work, as qt quick is officially supported on Android Qt5.2. 它将起作用,因为Android Qt5.2正式支持qt quick。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM