查看完整版本: [-- qt android 时手机想要兼容x86 和arm一定要编译二个apk吗? --]

QTCN开发网 -> Qt移动平台开发 -> qt android 时手机想要兼容x86 和arm一定要编译二个apk吗? [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

15145093145 2017-08-16 12:27

qt android 时手机想要兼容x86 和arm一定要编译二个apk吗?

大家知道x86手机用的是android x86 操作系统, 人家java一个apk搞定, qt 要二个,这是致命缺陷!

15145093145 2017-08-16 12:27
求官方技术 电话,我要弄明白这事,如果一直这样,qt android 就是非常不成熟的技术~

sevencat 2017-08-16 13:30
http://doc.qt.io/qt-5/platform-notes-android.html
文档上说了。

open-src 2017-08-16 17:47
呵呵,Qt是API跨平台,编译两个APK很正常,但Qt的APK是原生的应用,不是基于Java虚拟机的。要速度快,就需要每个平台单独编译,这个没有问题,况且目前手机平台基本上就没有Intel的事,所以这不算是个问题,x86的手机估计以后是见不到的了……

kaon 2017-08-17 10:58
Qt for Android 哪怕的确是不成熟的技术,那也不是因为arm的apk不能跑在x86上。。
LZ简直就是在说C++是个很不成熟的技术

angelus 2017-08-17 17:33
建议楼主去学java吧,java开发桌面程序一塌糊涂,我感觉他不是一个成熟的技术!

realfan 2017-08-19 17:47
我用Qt编译的arm的apk,在andoid X86上,也能用.
一开始,我也是编译了两个版本,后来发现用Arm的,直接在X86上也能用。不知道是不是有普遍性

kaon 2017-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.

15145093145 2017-08-24 16:12
angelus:建议楼主去学java吧,java开发桌面程序一塌糊涂,我感觉他不是一个成熟的技术! (2017-08-17 17:33) 

java  web也会点,目前项目的app 后台,前台,全我一个人完成的

15145093145 2017-08-24 16:13
kaon:Qt for Android 哪怕的确是不成熟的技术,那也不是因为arm的apk不能跑在x86上。。
LZ简直就是在说C++是个很不成熟的技术 (2017-08-17 10:58) 

你的逻辑,我表示没懂

15145093145 2017-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%的手机,你如何取舍?

15145093145 2017-08-24 16:38
我在中关村在线, 与网上多方向了解 , intel核心的手机,大部分已经停产,或者有的手机不是 android 而是windows phone  meego的,但愿intel老实在pc里面呆着,别出来捣乱,即使出来捣乱qt的团队能给力些,apk打包大一点没关系,但一定一个apk解决问题才是最好的。


查看完整版本: [-- qt android 时手机想要兼容x86 和arm一定要编译二个apk吗? --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled