编译 Android 版 Qt:"mingw32-make"不被识别为内部或外部命令

Compiling Qt for Android: 'mingw32-make' is not recognized as an internal or external command

本文关键字:识别 内部 命令 外部 Android Qt mingw32-make 编译      更新时间:2023-10-16

我正试图在Windows上为Android编译Qt,以下步骤见http://wiki.qt.io/Android。

当我尝试配置它时:

configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk c:android-ndk-r10d -android-sdk c:adtsdk -android-ndk-host windows-x64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings- re-errors

我得到这个错误:

'mingw32-make'不能被识别为内部或外部命令、可操作程序或批处理文件。

我在NDK文件夹中搜索make,我只找到了这个工具:

c: android-ndk-r10d 预构建 windows bin make.exe

然而,它被命名为make,而不是mingw-make。教程说只需要SDK和NDK,它们不包含mingw-make。我需要安装其他东西吗?

我发现我有mingw32-make在我的Qt Creator安装,所以我只是把它添加到PATH,它似乎工作:

<>之前设置路径= % %路径;c: Qt mingw491_32 bin的工具配置Configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk c:android-ndk-r10d -android-sdk c:adtsdk -android-ndk-host windows-x64 -android-toolchain-version 4.8 -跳过qttranslations -跳过qtwebkit-跳过qtserialport -跳过qtwebkit-examples -no-warnings- areerrors