[英]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.