Qt-linux-opensource-5.2.0-android-x86_64-offline Android problem
I installed that version and added the android sdk and snk to Qtcreator and create AVD .
but when i want to build with Android GCC(arm-4.8) and add the kit manualy I get this error :
The compiler 'Android GCC(arm-4.8)'(arm-linux-android-elf-32bit) cannot produce code for Qt version 'Qt 5.2.0 GCC 64bit' (x86-linux-generic-elf-64bit)
and if build the project :
09:01:49: Running steps for project qt_android...
09:01:49: Starting: "/opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake" /home/mohsen/qt_projects/qt_android/qt_android.pro -r -spec android-g++
09:01:52: The process "/opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake" exited normally.
09:01:52: Starting: "/usr/bin/make"
/opt/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -pipe -std=gnu++0x -O2 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt5.2.0/5.2.0/gcc_64/mkspecs/android-g++ -I../qt_android -I/opt/Qt5.2.0/5.2.0/gcc_64/include -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtGui -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtCore -I. -I/opt/android/android-ndk-r9b/platforms//arch-arm//usr/include -I. -I/opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include -I/opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/libs//include -I/opt/android/android-ndk-r9b/platforms//arch-arm//usr/include -I. -o main.o ../qt_android/main.cpp
In file included from /opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include/algorithm:60:0,
/opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include/utility:68:28: fatal error: bits/c++config.h: No such file or directory
make: *** [main.o] Error 1
09:01:52: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qt_android (kit: Android)
When executing step 'Make'
09:01:52: Elapsed time: ۰:۰۰:۰۴.
nobody faced this type of error?
I didn't but from the looks of it you seem to be using the arm compiler with the 64bit x86 version of Qt. Are you sure your Kit/Qt versions are correctly configured ?
I downloaded the Qt version that metioned and fully installed it.
But in the Kits tab i only have this Qt 5.2.0 GCC 64bit kit and if i add a kit manually and choose arm compiler(from ndk i think) i get this error .
do i missed some thing
You should add a kit that uses the Qt version built for Android so if you don't have any Android Qt version shown in Qt Creator, first add one then use it in your new kit
where is that kit you mentioned ?
where is the address and how to add it ?
i fully installed sdk and only can find one qmake that is Qt 5.2.0 GCC 64bit kit
where are others anyway?
Look at Options->Build & Run-> Qt Versions
and Options->Build & Run-> Kits
in the Qt versions :
only Qt 5.2.0 GCC 64bit
and so on for the kits
but in the compiler i can see all 6 ndk compilers added to default compiler ?
i dont get whats wrong.
i installed qt on /opt
Then the most straightforward is to call
@find /opt/Qt5.2.0 -name qmake@
It should return all the available qmake (both desktop and android), add the androids to the Qt Versions
I installed it on my homme diretory and this is the command out put it seems there is no android version.
Are you sure you installed the Android package ?
i downloaded this file:
run the installer and choosed full install .
no question aseked and after finishing i can see android in options menu.
but no qt/android version or android kit.
in the devices panel i can choose desktop /android device .
Then it seems that you didn't get everything installed