6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacでThe CXX compiler identification is unknown や CMAKE_CXX_COMPILER could be foundが出たときの対応

Posted at

Karabiner-Elementsのmake中にエラーが出てしまった。

% cd ~/Downloads/Karabiner-Elements-version_12.1.0
% make

make -C ../lib/KarabinerKit
make -C ../../../lib/libkrbn
mkdir -p build_xcode \
		&& cd build_xcode \
		&& cmake -G Xcode .. \
		&& xcodebuild -configuration Release SYMROOT="/Users/cd0054/Downloads/Karabiner-Elements/src/lib/libkrbn/build_xcode/build"
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!

Xcode Commandline Toolsのパス解決がおかしかったようで、下記コマンドを実行後、makeが通るようになった。

sudo xcode-select --reset
6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?