简体   繁体   English

要下载哪个qt文件来构建android和ios应用?

[英]which qt file to download to build android and ios app?

I got crazy by so many qt download files. 我被如此多的qt下载文件迷住了。 Basically, I want to build an Android app and an IOS app from a simple widget project(the project contains only a browser widget) on Windows without needing to install MSVC. 基本上,我想从Windows上的简单窗口小部件项目(该项目仅包含浏览器窗口小部件)构建Android应用程序和IOS应用程序,而无需安装MSVC。

I found so many files on download.qt.io like: qt-opensource-windows-x86-pdb-files-uwp-5.10.0.zip qt-opensource-windows-x86-pdb-files-desktop-5.10.0.zip I do not know what "PDB" "UWP" stand for. 我在download.qt.io上发现了很多文件,例如:qt-opensource-windows-x86-pdb-files-uwp-5.10.0.zip qt-opensource-windows-x86-pdb-files-desktop-5.10.0。 zip我不知道“ PDB”,“ UWP”代表什么。 Finally I found this file: http://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-android-5.8.0.exe Because the name contains "android", I think it can be used to build android app. 最后,我找到了这个文件: http : //download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-android-5.8.0.exe因为名称包含“ android”,所以我认为它可以用于构建android应用。 But after I installed this qt, the latest Android Studio which downloaded the latest Android SDK(and I even downloaded a previous version (24) using the sdk manager in Android Studio because I read an article saying you should use SDK version 25.2 or earlier version if you use Qt 5.9 or earlier version.),the latest android ndk, and jdk 11.0.1, I still met problem when creating a project. 但是在安装此qt之后,最新的Android Studio下载了最新的Android SDK(我什至使用Android Studio中的sdk管理器下载了以前的版本(24),因为我读了一篇文章,说您应该使用SDK版本25.2或更早版本如果您使用的是Qt 5.9或更早版本。),最新的android ndk和jdk 11.0.1,在创建项目时仍然遇到问题。 In the "Kit Selection" step, it says "Android has not been configured. Create Android kits." 在“工具包选择”步骤中,显示“尚未配置Android。创建Android工具包”。 Then I specified the JDK location, Android SDK location, Android NDK location,and I chose "Use Gradle instead of Ant", but it says "Qt versions for 2 architectures are missing'. I went to Options/Build&Run/Qt Versions and found there are exclamation marks before the two auto-detected Qt versions: "Qt 5.8.0 for Android armv7" and "Qt 5.8.0 for Android x86". The other Qt version "Qt5.8.0 MinGW 32bit", however, looks good. 然后,我指定了JDK位置,Android SDK位置,Android NDK位置,并选择了“使用Gradle代替Ant”,但是它说“缺少2种架构的Qt版本”。我去了Options / Build&Run / Qt Versions在两个自动检测到的Qt版本之前有惊叹号:“用于Android armv7的Qt 5.8.0”和“用于Android x86的Qt 5.8.0”。另一个Qt版本“ Qt5.8.0 MinGW 32bit”看起来不错。

So, did I install the wrong Qt file? 那么,我安装了错误的Qt文件吗? There is no "android" in file names of the latest version(5.11) of the Qt download files. Qt下载文件的最新版本(5.11)的文件名中没有“ android”。 Does it mean the latest Qt does not support Android? 这是否意味着最新的Qt不支持Android? The previous Qt file http://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-android-5.8.0.exe has "android" in it, but since it does not include any android compiler in it, what does the "android" mean? 先前的Qt文件http://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-android-5.8.0.exe中包含“ android”,但是由于没有在其中包含任何android编译器,“ android”是什么意思?

Please tell me the exact files I need to download to build the Android app and the IOS app. 请告诉我确切的文件,我需要下载它们来构建Android应用程序和IOS应用程序。 Thanks! 谢谢!

Update: 更新:

According to @navylover 's suggestion, I upgrade Qt to the latest version 5.11.2. 根据@navylover的建议,我将Qt升级到最新版本5.11.2。 The Android settings are almost ok:java settings are ok, Android SDK tools installed, Platform tools installed, Build tools installed, Android NDK ok. Android设置几乎没问题:java设置没问题,已安装Android SDK工具,已安装平台工具,已安装Build工具,已安装Android NDK。 The only failure is Platform SDK not installed. 唯一的失败是未安装Platform SDK。 It says "missing android sdk packages. Android sdk installation is missing necessary packages. Do you want to install the missing packages?" 它说:“缺少android sdk软件包。Androidsdk安装缺少必需的软件包。是否要安装缺少的软件包?” If I click "Yes", nothing happens. 如果我单击“是”,则什么都不会发生。 I don't know how Qt checks if Platform SDK is installed or not. 我不知道Qt如何检查Platform SDK是否已安装。 I think Platform SDK has already been installed with other sdk tools when I installed Android Studio. 我认为在安装Android Studio时,平台SDK已与其他SDK工具一起安装。 Now the installed Android SDK is Android 9.0(Pie). 现在安装的Android SDK是Android 9.0(Pie)。 Is it not compatible with Qt 5.11.2? 它与Qt 5.11.2不兼容吗?

Firstly I suggest you update QT version to latest. 首先,我建议您将QT版本更新为最新版本。 After that, you could read official docs: 之后,您可以阅读官方文档:

Getting Started with Qt for Android and Connecting Android Devices . Qt Android入门连接Android设备

There are no resource useful than these refs. 没有比这些参考有用的资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM