Qt + Android (ANDROID_NDK_ROOT environment variable...)
-
@Garfield Hi, I documented this error some time ago while using Qt for Android and it looks like setting ANDROID_NDK_ROOT was enough.
I checked again my dev environment, and the only variables set are:
ANDROID_NDK_ROOT=C:\devtools\android-ndk-r9c
...
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_25
...
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Ja
va\jdk1.7.0_25\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Java\jdk1.7
.0_25\jre\bin\server;C:\Python27\Lib\site-packages\PyQt4;C:\Python27;C:\Python2
7\Scripts;C:\Perl\site\bin;C:\Perl\bin;C:\devtools\android-sdk-windows\platform-
tools;C:\Users\pablo\AppData\Roaming\Python\Scripts;C:\Ruby200\bin -
@Pablo-J.-Rogina Hello Thanks for your quick reply;
Actually, I added so many paths on bashrc to be sure to resolve the problem.
It didn't work even by just adding one.Do you have any others idea?
Greetings,
Damien -
Well, I'll start from scratch. I first install Android SDK, Android NDK, Ant and Java and set the required environment variables, as few as possible. Then I'll install Qt so Qt Creator will find (hopefully) everything automatically and you 'll have the kits set in Qt Creator with the proper values. Just my two cents.
-
@Pablo-J.-Rogina
So you think that installing SDK and NDK before Qt creator has an impact?
What should I do then? uninstall Qt and install it again? -
I guess that having the Android components in place before installing Qt may help you.
Yes, uninstall Qt and install it only after you have installed all required components (Android SDJ, NDK, Ant and Java) and setting the required environment variables. -
Ok I will do that exactly now. thanks in advance
-
So I uninstalled Qt and removed all the files in the folder.
Nevertheless, when I reinstall it, I still get the same results and Qt creator kept also the old config. i.e the manual kit I've created -
Hi and welcome to devnet,
IIRC, the Android SDK/NDK doesn't install the x86 compilers by default, you have to add them yourself using their management tool
-
Hi thanks for your reply,
I guess I have installed all the compilers availaible using SDK manager.
8 toolchains were found by Qt.
I reinstalled everything from scratch (ubuntu, sdk, ndk, qt etc...) and it did not solve the problem.I know that my problem must be a stupid thing but I just don"t get it and it frustrates me a lot.
do you have any other idea how to proceed?Thanks in advance,
damien -
By the way, I found that the Intel Core 2 Duo CPU T7500 is a 64 bits one.
I have installed Ubuntu 32 bits because there was no added value for me to install a 64 bits one.
for some compatibility reasons I kept also a 32 bits one when I started to use Ubuntu 4 years agoDo you think that it could potential be the source of the problem or it doesn't matter?