ldwardx / mpv-build-mac-iOS

build mpv for mac and iOS
18 stars 5 forks source link

clang: error: invalid argument '-mmacosx-version-min' not allowed with '-mios-version-min' #4

Open GavinZhang80 opened 1 year ago

GavinZhang80 commented 1 year ago

% ./build -p iOS 2023-02-08 11:52:21.813 xcodebuild[47892:115940076] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2023-02-08 11:52:21.814 xcodebuild[47892:115940076] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore [info] Build uchardet CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- The CXX compiler identification is AppleClang 13.1.6.13160021 -- The C compiler identification is AppleClang 13.1.6.13160021 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - broken CMake Error at /Applications/CMake.app/Contents/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message): The C++ compiler

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users//Downloads/mpv-build-ios/build-ios/scratch/armv7/uchardet/CMakeFiles/CMakeScratch/TryCompile-KPqd5Q

Run Build Command(s):/usr/bin/make -f Makefile cmTC_6fc58/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/cmTC_6fc58.dir/build.make CMakeFiles/cmTC_6fc58.dir/build
Building CXX object CMakeFiles/cmTC_6fc58.dir/testCXXCompiler.cxx.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -mios-version-min=8.0 -arch armv7  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=12.2 -MD -MT CMakeFiles/cmTC_6fc58.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_6fc58.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_6fc58.dir/testCXXCompiler.cxx.o -c /Users//Downloads/mpv-build-ios/build-ios/scratch/armv7/uchardet/CMakeFiles/CMakeScratch/TryCompile-KPqd5Q/testCXXCompiler.cxx
clang: error: invalid argument '-mmacosx-version-min=12.2' not allowed with '-mios-version-min=8.0'
make[1]: *** [CMakeFiles/cmTC_6fc58.dir/testCXXCompiler.cxx.o] Error 1
make: *** [cmTC_6fc58/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:4 (project)

-- Configuring incomplete, errors occurred! See also "/Users//Downloads/mpv-build-ios/build-ios/scratch/armv7/uchardet/CMakeFiles/CMakeOutput.log". See also "/Users//Downloads/mpv-build-ios/build-ios/scratch/armv7/uchardet/CMakeFiles/CMakeError.log".

cherishloveyou commented 1 year ago

same here, any solution?