[SOLVED]Unable to configure Qt Creator for Android
-
Hi,
I was using Qt Creator frequently for developing Qt Apps for Android under Linux Mint 16 x64 but when I tried to use Qt Creator 3.0.1 (bundled with Qt 5.2.1) It became unable to see Android's SDK and NDK! So I created a fresh user then did exactly the mentioned steps in "Qt Creator guide":http://qt-project.org/doc/qtcreator-3.0/creator-developing-android.html
How can I configure Qt Creator for Android?
NOTE:
- I already updated android-sdk_r22.6.2-linux to recent version
- I use android-ndk-r9d-linux-x86_64
- Although I'm sure that I configured QC correctly as mentioned in the screenshot I got this error:
[code]/bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_armv5/mkspecs/android-g++/qmake.conf.
/bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_armv7/mkspecs/android-g++/qmake.conf.
/bin/sh: 1: /opt/android/ndk/toolchains/x86-4.8/prebuilt/linux-x86_64/bin/i686-linux-android-gcc: not found
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_x86/mkspecs/android-g++/qmake.conf.
/bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_armv7/mkspecs/android-g++/qmake.conf. [/code]
My configures:
!http://i.imgur.com/nvjbZhw.png(http://i.imgur.com/nvjbZhw.png)!!http://i.imgur.com/PWhHo18.png(http://i.imgur.com/PWhHo18.png)!
!http://i.imgur.com/Iwyvqqj.png(http://i.imgur.com/Iwyvqqj.png)!
-
A Qt project with armeabi_v7a support doesn't accept AVD from armeabi_v7a!!!
!http://i.imgur.com/GOmu1jE.png(http://i.imgur.com/GOmu1jE.png)!
!http://i.imgur.com/3s2rD1N.png(http://i.imgur.com/3s2rD1N.png)!
-
Try installing Qt in windows or basic Linux. If it works then it will be your current OS issues.
-
Sorry for the late reply. you seems to be an experienced Qt person.
I have used Qt Android version for a long time. Initially i also faced the runtime issues, but sometimes we need to do the trial and error method to run it properly. These kinds of issues occurs from our side/from the system.
How i solved my problem is,
I installed the Necessitas Qt version that is introduced by our honourable "BogDan Vatra", this version included sdk, ndk and other tools inside it. No need to download it from outside. When this runs successfully, install a new Qt version with Android, check what you are missing from this version (compare both versions).
I hope your problem will be solved.
Download Qt necessitas from here, http://necessitas.kde.org/ -
[quote author="ansifpi" date="1397097058"]Sorry for the late reply. you seems to be an experienced Qt person.
I have used Qt Android version for a long time. Initially i also faced the runtime issues, but sometimes we need to do the trial and error method to run it properly. These kinds of issues occurs from our side/from the system.
How i solved my problem is,
I installed the Necessitas Qt version that is introduced by our honourable "BogDan Vatra", this version included sdk, ndk and other tools inside it. No need to download it from outside. When this runs successfully, install a new Qt version with Android, check what you are missing from this version (compare both versions).
I hope your problem will be solved.
Download Qt necessitas from here, http://necessitas.kde.org/[/quote]Necessitas doesn't work for me because it uses Qt4 while I'm using Qt5!!!
-
Yes i know that. But Android configuration is same for both Qt4 and Qt5. Just see the difference.
-
This issue has been solved in Qt Creator 3.1.0 as shown in this ticket:
https://bugreports.qt-project.org/browse/QTCREATORBUG-12021 -
[quote author="mbnoimi" date="1398699433"]This issue has been solved in Qt Creator 3.1.0 as shown in this ticket:
https://bugreports.qt-project.org/browse/QTCREATORBUG-12021[/quote]Glad to hear that the problem is solved. Sorry for not helping you initially to solve this problem.