[英]Build android app with Qt5 failed (missing headers)
Trying to build android app from windows 7 64bit 尝试从Windows 7 64bit构建android应用
I don't want to compile the Qt source again, so I just downloaded the binary distribution: 我不想再次编译Qt源,所以我只是下载了二进制发行版:
Qt 5.1.0 for Android (Windows 32-bit, 716 MB) 适用于Android的Qt 5.1.0(Windows 32位,716 MB)
After configured Qt Creator with the Android SDK path and Android NDK path 用Android SDK路径和Android NDK路径配置Qt Creator之后
I opened an example and tried to build 我打开一个例子,试图建立
Then I got the following errors: 然后我得到以下错误:
D:\Qt5.1.0\5.1.0\android_armv7\include\QtCore\qglobal.h:80: error:
algorithm: No such file or directory
I searched thru the algorithm header a bit in the Qt directory, it could be found at: 我在Qt目录中搜索了算法头,可以在以下位置找到它:
D:\Qt5.1.0\Tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++
I don't what I did wrong? 我不是我做错了吗? Am I not supposed to use the 32bit binary distribution on 64bit win7? 我不应该在64位win7上使用32位二进制发行版吗?
Okay, I figured out the problem is that I was using android-ndk-r8, which is pretty old 好的,我发现问题是我在使用android-ndk-r8,它已经很老了
After I downloaded and used android-ndk-r8e, the build problem is gone. 下载并使用android-ndk-r8e之后,构建问题就消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.