[SOLVED]Unable to configure Qt Creator for Android
-
wrote on 31 Mar 2014, 16:42 last edited by
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)!
-
wrote on 31 Mar 2014, 16:45 last edited by
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)!
-
wrote on 3 Apr 2014, 16:30 last edited by
I faced this issue under Windows 7 too!!!
May you please help me here guys?
P.S. The error message similar to Linux one
-
wrote on 3 Apr 2014, 22:03 last edited by
Same problem here under ArchLinux
the ndk ins installed in /opt/android-ndk
I have put this path (along with the sdk) in the android settings in qtcreator.
And I did: export ANDROID_NDK_ROOT=/opt/android-ndkbut that chaged nothing
-
wrote on 6 Apr 2014, 08:13 last edited by
Try installing Qt in windows or basic Linux. If it works then it will be your current OS issues.
-
wrote on 8 Apr 2014, 21:04 last edited by
[quote]
Try installing Qt in windows or basic Linux. If it works then it will be your current OS issues.
[/quote]I tried on fresh Linux AND Windows too... same result!!!
-
wrote on 8 Apr 2014, 21:06 last edited by
I wonder; What I'm missing?!
Does anyone use Qt Creator for Android?!
-
wrote on 10 Apr 2014, 02:30 last edited by
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/ -
wrote on 10 Apr 2014, 09:03 last edited by
[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!!!
-
wrote on 11 Apr 2014, 03:42 last edited by
Yes i know that. But Android configuration is same for both Qt4 and Qt5. Just see the difference.
-
wrote on 13 Apr 2014, 21:24 last edited by
[quote author="ansifpi" date="1397187733"]Yes i know that. But Android configuration is same for both Qt4 and Qt5. Just see the difference.[/quote]
I think you missed the point. I use Qt5 which is uable to build using the shipped Qt4 qmake.
-
wrote on 28 Apr 2014, 15:37 last edited by
This issue has been solved in Qt Creator 3.1.0 as shown in this ticket:
https://bugreports.qt-project.org/browse/QTCREATORBUG-12021 -
wrote on 28 Apr 2014, 21:39 last edited by
[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.