【问题标题】:Compiling Qt for Android: 'mingw32-make' is not recognized as an internal or external command为 Android 编译 Qt:'mingw32-make' 未被识别为内部或外部命令
【发布时间】:2015-10-18 17:50:03
【问题描述】:

我正在尝试按照http://wiki.qt.io/Android 中概述的步骤在 Windows 上编译 Qt for Android。

当我尝试配置它时:

配置 -xplatform android-g++ -nomake 测试 -nomake 示例 -android-ndk c:\android-ndk-r10d -android-sdk c:\adt\sdk -android-ndk-host windows-x64 -android-toolchain -version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors

我收到此错误:

'mingw32-make' 不是内部或外部命令、可运行程序或批处理文件。

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

c:\android-ndk-r10d\prebuilt\windows\bin\make.exe

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

【问题讨论】:

    标签: android c++ windows qt build


    【解决方案1】:

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

    设置 PATH=%PATH%;c:\Qt\Tools\mingw491_32\bin
    配置 configure -xplatform android-g++ -nomake 测试 -nomake 示例 -android-ndk c:\android-ndk-r10d -android-sdk c:\adt\sdk -android-ndk-host windows-x64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors

    【讨论】:

      猜你喜欢
      • 2012-10-20
      • 1970-01-01
      • 1970-01-01
      • 2012-07-06
      • 2015-04-15
      • 1970-01-01
      • 1970-01-01
      • 2014-04-29
      • 1970-01-01
      相关资源
      最近更新 更多