Solved Setting up for Android - HELP!!!
-
I'm just getting started with QT, so I'm sorry if my problem appears basic... I'm trying to build and run an application on Android but get an error every time during the build process.
I would appreciate any help or advice...
Here's what I have done so far:
- Re-installed the latest versions of:
- QT
- Android SDK
- Android NDK
- Java
- Gradle
- Set up environment variables:
- JAVA_HOME
- GRADLE_HOME
- Added Android SDK, Java and Gradle to the Path environment variable
- QT Android options:
- Specified JDK location
- SDK location
- NDK Location
- Ticked 'automatically create kits for Android tool chains'
- Ticked 'use gradle instead of ant
- Below is the last part of the compile log I get when I try to build the project:
Qt: Untested Windows version 10.0 detected!
Application binary is not in output directory: C:/Users/Darren/Documents/QT PROJECTS/TestNewBuild/build-TestNewBuild-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_2-Debug/android-build//libs/armeabi-v7a/libTestNewBuild.so. Please run 'mingw32-make install INSTALL_ROOT=C:/Users/Darren/Documents/QT PROJECTS/TestNewBuild/build-TestNewBuild-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_2-Debug/android-build/' first.
10:54:39: The process "E:\Qt\5.4\android_armv7\bin\androiddeployqt.exe" exited with code 7.
Error while building/deploying project TestNewBuild (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.4.2))
When executing step "Build Android APK" -
The Windows 10 warning may come from your not-the-latest Qt version. Hint: Always report versions of each tool...
The path problem is a result of having a space character in your project path (QT PROJECTS). Beware of that. Qt's tool chains don't like those at all.
-
@mvuori thank you for your help - I removed the space from my QT Projects folder and to my amazement and surprise, it then worked!
I now need to work out how to get the graphics to work on my phone and past the current errors, but your solution of removing the spaces in the path has at least allowed me to get the code working on the phone now.In terms of the Windows 10 & QT build issue - I am using QT 5.5.1 which I downloaded only last week, so I don't think that was the issue.
Thank you for your help :-)