Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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
pakiln
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした