Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

qt-linux-opensource-5.2.0-android-x86_64-offline Android problem

$
0
0
Hi 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 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,                  from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtCore/qglobal.h:82,                  from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtGui/qwindowdefs.h:45,                  from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/qwidget.h:45,                  from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/qmainwindow.h:45,                  from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/QMainWindow:1,                  from ../qt_android/mainwindow.h:4,                  from ../qt_android/main.cpp:1: /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  #include <bits/c++config.h>                             ^ compilation terminated. 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: ۰:۰۰:۰۴.

Viewing all articles
Browse latest Browse all 2113

Trending Articles