简体   繁体   English

无法在Android的QT上编译

[英]Unable to compile on QT for Android

I am new to QT programming and am trying to build a simple program on Android. 我是QT编程的新手,正在尝试在Android上构建一个简单的程序。 I have installed QT 5.8, latest Android SDK, NDK and apache ant, but it gives the same error. 我已经安装了QT 5.8,最新的Android SDK,NDK和apache ant,但它给出了相同的错误。 I searched about this issue and tried using older versions of QT(5.5.1 and 5.7.0) , Android SDK as well as NDK, but its not helping. 我搜索了此问题,并尝试使用旧版本的QT(5.5.1和5.7.0),Android SDK以及NDK,但没有帮助。 I tried giving the build path a shorter name, removed all the folders which had spaces in the title and reinstalled everything. 我尝试给构建路径起一个较短的名称,删除标题中带有空格的所有文件夹,然后重新安装所有内容。 Please help. 请帮忙。

Error 1 错误1

11:40:56: The process "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
11:40:56: Starting: "C:\Qt\Qt5.7.0\5.7\android_armv7\bin\androiddeployqt.exe" --input C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-libcalqlatr.so-deployment-settings.json --output C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_131" --ant E:/Android/apache-ant-1.9.6/bin/ant.bat
Generating Android Package
  Input file: C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-libcalqlatr.so-deployment-settings.json
  Output directory: C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-build/
  Application binary: C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/libcalqlatr.so
  Android build platform: android-25
  Install to device: No
Application binary is not in output directory: C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-build//libs/armeabi-v7a/libcalqlatr.so. Please run 'mingw32-make install INSTALL_ROOT=C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-build/' first.
11:41:09: The process "C:\Qt\Qt5.7.0\5.7\android_armv7\bin\androiddeployqt.exe" exited with code 7.
Error while building/deploying project calqlatr (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
When executing step "Build Android APK"
11:41:09: Elapsed time: 01:15.

Check for build.xml in your output path 在输出路径中检查build.xml

C:/Qt/Qt5.7.0/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-build/

and also check 并检查

TEMPLATE = app

in your pro file if this is not there append this. 如果没有,请在您的专业文件中附加此内容。

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

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