我正在尝试运行我的第一个Qt Android
应用程序,并按照本教程进行操作:
http://urfoex.blogspot.ro/2013/12/qt5-android-setting-up-qt-52-for-android.html
但是,在我运行它之后,我得到了这个错误:
i686-linux-android-g++: error: unrecognized command line option '-marm' make: ***
[main.o] Error 1 21:33:42: The process "make" exited with code 2.
Error while building/deploying project avd_tests (kit: Android for x86 (GCC 4.8, Qt 5.2.1)) When executing step 'Make'
我也尝试过使用armeabi
,但我得到了:
In file included from ../.android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include/algorithm:60:0,
from ../.Qt5.2.1/5.2.1/android_armv7/include/QtCore/qglobal.h:82,
from ../.Qt5.2.1/5.2.1/android_armv7/include/QtCore/qcoreapplication.h:45,
from ../.Qt5.2.1/5.2.1/android_armv7/include/QtWidgets/qapplication.h:45,
from ../.Qt5.2.1/5.2.1/android_armv7/include/QtWidgets/QApplication:1,
from ../avd_tests/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h:13,
from ../avd_tests/main.cpp:1: ../.android-ndk/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 21:44:14: The process "make" exited with code 2. Error while building/deploying project avd_tests (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.2.1)) When executing step 'Make'
我正在构建的应用程序是默认Qt Quick
应用程序。我正在使用Qt 5.2.1
和QtCreator 3.0.1
。
任何人都知道它可能是什么,或者有人知道如何进行工作的好Qt
指南Android
吗GNU/Linux
?