Open IgorehaV opened 1 year ago
I had a similar problem when trying to build for Unity using the build.sh file under AirSim/Unity.
I managed to fix this today by using which clang
and which clang++
to get the path where the compilers are installed, then I changed my build.sh file (under AirSim/Unity). Mine were both under /usr/bin/
, this is the section in the build.sh file I changed:
if [ "$(uname)" == "Darwin" ]; then
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
else
export CC="clang-8"
export CXX="clang++-8"
fi
I also had to do sudo xcode-select --install
to get the script to work (remember to restart your terminal after using this command)
Same problem 😒
Hi guys. I've an issue with ./build.sh and really can't understand where the problem. Here is the log from terminal: `-- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- Check for working C compiler: /usr/local/opt/llvm/bin/clang - broken CMake Error at /usr/local/Cellar/cmake/3.24.3/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message): The C compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!`
My Mac is on Ventura OS. The latest Xcode version and seems to be the latest Xcode Command tools base on xcode-select install command. -- The C compiler identification is Clang 15.0.3 -- The CXX compiler identification is Clang 15.0.3
I tried to changes llvm to llvm@15 in the setup.sh but it doesn't help me. The same error still appears.
Best regards