其他分享
首页 > 其他分享> > QT5.12.0安卓平台搭建(完美运行)

QT5.12.0安卓平台搭建(完美运行)

作者:互联网

一直用QT5.5.1,周末无事,升级到5.14,发现各版本的NDK都无法完美运行,有换成5.9,还是各种出错

最后发现,QT版本与NDK版本有兼容问题,具体原因未知,只能按网上大神的推荐去摸索安装使用

完美运行并编译出APK文件的版本如下:

1.NDK下载:android-ndk-r19c-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip

测试后发现,r18和R19能完美匹配QT5.12.0

https://dl.google.com/android/repository/android-ndk-r18b-windows-x86_64.zip

 

NDK各版本下载地址如下

历史版本:

https://dl.google.com/android/repository/android-ndk-r20b-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r20b-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r20b-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r19c-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r19c-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r18b-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r18b-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r18b-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r17c-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r16b-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r16b-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r14b-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r14b-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r14b-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r13b-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r12b-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r11c-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r11c-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r10e-windows-x86.zip

https://dl.google.com/android/repository/android-ndk-r10e-windows-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip

https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip

2.SDK下载   android-sdk_r24.1-windows

http://tools.android-studio.org/index.php/sdk

3.JDK

下载JDK1.8(SDK只支持JDK1.8):亲测JDK-8u191、JDK-8u201、JDK-8u241可以无错运行
https://www.oracle.com/java/technologies/javase-jdk8-downloads.html

4.QT5.12.0

https://iso.mirrors.ustc.edu.cn/qtproject/archive/qt/5.12/5.12.0/qt-opensource-windows-x86-5.12.0.exe

具体配置就不说了。以上版本完美运行,编译不出错。

 

标签:ndk,x86,zip,安卓,https,android,搭建,com,QT5.12
来源: https://www.cnblogs.com/sankye/p/14291061.html