Hi!
I have tried to create a QtCreator project for Android for some days now, using Qt 5.1 Alpha. I have tried to compile Qt with all kinds of parameters, but QtCreator keeps complaining that I have no valid kits available.
I have set up: – Tools->Options->Android with paths to the android SDK and NDK (64bit linux version). – Tools->Options->Build&Run->Qt Versions with the /opt/Qt5.1/qtbase/bin/qmake
I get a bunch of compilers “Android GCC (arm-4.7) (android-elf-32bit)” from the NDK.
I get some kits with red exclamation marks saying it cannot find some /opt/ndk/prebuilt/linux-x86/bin/arm… stuff. I don’t know why it is looking for x86 version when i downloaded the 64-bit version.
Has anyone been able to create an Android project in QtCreator 2.7 using Ubuntu 12.10 64-bit?
By the way..should Qt be build by root or by user?
- Atle
This is how I have tried to buid Qt 5.1 (script run with sudo):
#!/bin/sh
export ANDROID_SDK_ROOT=/usr/local/lib/android-sdk-linux
export ANDROID_NDK_ROOT=/usr/local/lib/android-ndk-r8e
export ANDROID_API_VERSION=android-17
apt-get -y install build-essential perl python git “^libxcb.*” libx11-xcb-dev libglu1-mesa-dev libxrender-dev libatspi2.0-dev libdbus-1-dev libicu-dev flex bison gperf libicu-dev libxslt-dev ruby
./configure -developer-build -opensource -xplatform android-g++ -android-ndk /usr/local/lib/android-ndk-r8e -android-sdk /usr/local/lib/android-sdk-linux -nomake tests -nomake examples -no-gtkstyle -confirm-license
make -j5
↧