15

我使用此链接中的分步教程为 Android 构建了 Qt5: Building Qt 5 for Android

现在,我能够构建 QWidget 应用程序并将其部署到我的 nexus 7。但是如果我尝试使用给定的 QtCreator 2.7.1 模板构建 QtQuick 应用程序,我会收到以下错误:

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

我完全按照教程中的描述完成了每个构建步骤。有没有其他人遇到过这个错误?

4

1 回答 1

3

QtQuick works perfectly well with Qt5.2. My suggestion is that you built Qt5.2 from source, instead of simply installing it, i.e. you clone it from 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? If not, my suggestion is that you install the 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.

enter image description here

Ant is also part of the installation, as you probably won't wish to miss that.

enter image description here

In the end if you have done all the settings accordingly, without forgetting anything, then you just need to select Qt Quick Application.

enter image description here

And it will work, as qt quick is officially supported on Android Qt5.2.

于 2014-05-16T06:04:18.430 回答