Facebook
From andy, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 127
  1. -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - broken
  2. CMake Error at /Applications/CMake.app/Contents/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
  3.   The C compiler
  4.  
  5.     "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
  6.  
  7.   is not able to compile a simple test program.
  8.  
  9.   It fails with the following output:
  10.  
  11.     Change Dir: /Users/.../external/src/SDL2-build/CMakeFiles/CMakeTmp
  12.    
  13.     Run Build Command(s):/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_e7791 -configuration Debug -hideShellScriptEnvironment && Command line invocation:
  14.         /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_e7791 -configuration Debug -hideShellScriptEnvironment
  15.    
  16.     User defaults from command line:
  17.         HideShellScriptEnvironment = YES
  18.    
  19.     Build settings from command line:
  20.         TOOLCHAINS = com.apple.dt.toolchain.XcodeDefault
  21.    
  22.     Prepare build
  23.     note: Using legacy build system
  24.     === BUILD TARGET cmTC_e7791 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===
  25.    
  26.     Check dependencies
  27.     target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator' platform
  28.    
  29.     ** BUILD FAILED **
  30.    
  31.    
  32.     The following build commands failed:
  33.         Check dependencies
  34.     (1 failure)
  35.    
  36.    
  37.  
  38.  
  39.  
  40.   CMake will not be able to correctly generate this project.
  41. Call Stack (most recent call first):
  42.   CMakeLists.txt:6 (project)
  43.