回复: qt android 时手机想要兼容x86 和arm一定要编译二个apk吗?
#6 [realfan 08-19 17:47]
我用Qt编译的arm的apk,在andoid X86上,也能用.
一开始,我也是编译了两个版本,后来发现用Arm的,直接在X86上也能用。不知道是不是有普遍性
#7 回 realfan 的帖子 [kaon 08-19 19:22]
realfan:我用Qt编译的arm的apk,在andoid X86上,也能用.
一开始,我也是编译了两个版本,后来发现用Arm的,直接在X86上也能用。不知道是不是有普遍性 (2017-08-19 17:47)
https://stackoverflow.com/questions/13005303/how-does-native-android-code-written-for-arm-run-on-x86
Yes, ARM native code runs on Intel x86 using an emulation feature named Houdini
What this library does is reads ARM instructions on the fly and converts them to equivalent x86 instructions. This is the reason why many apps may work as is on x86 without actually having to build an equivalent library.
#8 回 angelus 的帖子 [15145093145 08-24 16:12]
angelus:建议楼主去学java吧,java开发桌面程序一塌糊涂,我感觉他不是一个成熟的技术! (2017-08-17 17:33)
javaweb也会点,目前项目的app 后台,前台,全我一个人完成的
#9 回 kaon 的帖子 [15145093145 08-24 16:13]
kaon:Qt for Android 哪怕的确是不成熟的技术,那也不是因为arm的apk不能跑在x86上。。
LZ简直就是在说C++是个很不成熟的技术 (2017-08-17 10:58)
你的逻辑,我表示没懂
#10 [15145093145 08-24 16:17]
Supported Architectures
Qt for Android currently has binaries for ARMv7 and x86. Make sure you select the correct architecture for the device or emulator you are targeting, otherwise your application will crash. The MIPS archictecture is currently not supported by Qt.
If you want to support several different architectures in your application, the recommendation is to build separate APKs for each architecture, so that each APK only contains the binaries required for the targeted architecture. For more information about this, see the Android documentation about
所以qt for android 与java比起来是有致使问题的,如果开发一个面向大众的app, qt 不要使用!
但是 qt for android 能一套代码在多个平台上跑,还是吸引了大量的人,包括我
演变成了一个问题: qt for android 能兼容90%甚至更多的手机 与 java 兼容几乎100%的手机,你如何取舍?