Arm-linux-androideabi-gcc:在传递-mmacosx-version-min参数时获得无法识别的命

arm-linux-androideabi-gcc : get unrecognized command line option when passing -mmacosx-version-min argument

本文关键字:识别 参数 -mmacosx-version-min Arm-linux-androideabi-gcc      更新时间:2023-10-16

当我试图为Android构建Qt 5.5时,我得到了一个错误。"make"命令返回错误:

arm-linux-androideabi-gcc: error: unrecognized command line option '-mmacosx-version-min=10.7'

我正在构建mac osx 10.10,与ndk版本r10e ..

下面是我的configure命令行:
./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Users/John/Android/android-ndk-r10e -android-sdk /Users/John/Android/adt-bundle-mac-x86_64-20140321/sdk -android-ndk-host darwin-x86_64 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -opensource -confirm-license

我只是遵循这个指南:http://wiki.qt.io/Android

尝试用"10.8"或"10 "编码-mmacosx-version-min。直接x"