Build problem on Mac mini M4 under macOS 15.2

Hi, I am trying to build the current development version of SC on a Mac mini M4 under macOS 15.2. Following the README_MACOS.md I did:

Install Xcode 16.2 from AppStore
Run the following shell commands
% brew install git cmake libsndfile readline qt5
% git clone --recursive https://github.com/SuperCollider/SuperCollider.git
% cd SuperCollider                                                                                                     
% mkdir -p build
% cd build
% cmake -G Xcode -DCMAKE_PREFIX_PATH=`brew --prefix qt@5`  ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:11 (project):
  No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:11 (project):
  No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!

What do I need to do to chose the right compilers?

Running this command fixed the problem:

 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
1 Like