PDA

View Full Version : How to add Qt for Android if already having Qt for MSVC2010, 32 bit



asbt
18th September 2014, 13:18
I have Qt Creator 2.8.1 , Based on Qt 5.1.1 (MSVC 2010, 32bit) and want to add Android.
I've followed steps of installing Android SDK, Java SDK, NDK and Ant.
On Tools->Options->Android, I've added corresponding paths.
On Tools->Options->Build&Run->Compilers, three Android GCC are displayed

But Android corresponding Kits are not detected, neither compilers (if necessary, I'm not sure) displayed.

I want to keep the Qt I have and Qt for Android, how do I do that?
Thanks in advance

ChrisW67
21st September 2014, 05:55
Have you installed the Qt Android libraries (possibly using the Maintenance tool)?

asbt
23rd September 2014, 11:25
Thanks for your answer.
Finally worked, I had to reinstall Qt with MSVC2010 and Android, and then all the other requirements for Android (SDK, Java SDK, NDK, Ant), after including corresponding paths to Android Option Tools, Kits were automatically detected.
Tried a "hello world" on an emulator and worked!!!
Now, I want to include OpenCV libraries in it, and am not able to find any steps to follow. I downloaded OpenCV for Android. How am I able to use it in a C++ Qt program for Android? Or alternatively use the C++ OpenCV precompiled ones?

Thanks in advance