繁体   English   中英

在Android安装上使用Qt

[英]Using Qt on Android installation

我正在尝试为Android安装Qt 5.1,我使用的是此处介绍的步骤: http : //qt-project.org/wiki/Qt5ForAndroidBuilding

我安装了所有先决条件(JDK,Android SDK,NDK等)。 我的问题与第4步有关,我无法从git repo( git://gitorious.org/qt/qt5.git )下载Qt 5。

有人遇到过同样的问题吗?

我直接从http://qt-project.org/downloads下载了另一个适用于Android的Qt 5,但无法构建。 当我使用步骤4.4( configure -.... )时The system cannot find the file specified: arch.cpp and arch.obj错误。

如果您有链接或其他可以帮助我安装Qt并将应用程序部署到Android的内容,请共享。

您已经下载到qt-project上的Qt Android版本已经构建。 您不需要为Android构建Qt,而需要为Android构建Qt。 您只需要配置Qt Creator即可定义SDK和NDK目录。 请遵循以下文档: http : //qt-project.org/doc/qtcreator-2.8/creator-developing-android.html (主页: http : //qt-project.org/doc/qt-5.1/qtdoc/android -support.html

这应该工作:

git clone git://gitorious.org/qt/qt5.git qt5
cd qt5
perl init-repository --no-webkit

configure.bat \
    -developer-build \
    -xplatform android-g++ \
    -nomake tests \
    -nomake examples \
    -openssl
    -android-ndk D:/GitRepo/Resources/X2Go_Android/android-ndk-r8e \
    -android-sdk D:/GitRepo/Resources/X2Go_Android/AndroidSDK/sdk \
    -skip qttools \
    -skip qttranslations \
    -skip qtwebkit \
    -skip qtwebkit-examples-and-demos
make

暂无
暂无

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

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