- If you get an error generating Xcode build tool-chain
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build % cmake -G Xcode ..
CMake Error:
Xcode 1.5 not supported.
CMake Error: Could not create named generator Xcode
Generators
* Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
Ninja Multi-Config = Generates build-<Config>.ninja files.
Watcom WMake = Generates Watcom WMake makefiles.
Xcode = Generate Xcode project files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
CodeLite - Ninja = Generates CodeLite project files.
CodeLite - Unix Makefiles = Generates CodeLite project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
Kate - Ninja = Generates Kate project files.
Kate - Unix Makefiles = Generates Kate project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build %
- The solution may be to run the xcode-select script with --switch argument to point out where Xcode actually is?
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build %sudo /usr/bin/xcode-select --switch /Applications/Xcode-beta.app
Password:
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build % cmake .. -G Xcode
CMake Error: Error: generator : Xcode
Does not match the generator used previously: Unix Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build % ls
CMakeCache.txt CMakeFiles Makefile README.md cmake_install.cmake lib
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build % rm CMakeCache.txt
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build % cmake .. -G Xcode
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libavcodec'
-- Found libavcodec, version 58.134.100
-- Checking for module 'libavformat'
-- Found libavformat, version 58.76.100
-- Checking for module 'libavfilter'
-- Found libavfilter, version 7.110.100
-- Checking for module 'libavdevice'
-- Found libavdevice, version 58.13.100
-- Checking for module 'libavutil'
-- Found libavutil, version 56.70.100
-- Checking for module 'libswresample'
-- Found libswresample, version 3.9.100
-- Checking for module 'libswscale'
-- Found libswscale, version 5.9.100
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kjell-olovhogdal/Documents/Github/ShotTaker/build
kjell-olovhogdal@Kjell-Olovs-Mac-Pro build %