336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

내 블로그에 내가 알아보기 쉽게 정리하기!!!


Mac 환경에서 CMake를 공부해 보자


$ cmake -G "Xcode" ..



Xcode 프로젝트를 생성하려고 했으나.. 이런 에러가 뜬다


-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:4 (project):

  No CMAKE_C_COMPILER could be found.




CMake Error at CMakeLists.txt:4 (project):

  No CMAKE_CXX_COMPILER could be found.




-- Configuring incomplete, errors occurred!

See also "/Users/hongkun/dev/cmake_tutorial/chapter1_2/xcode/CMakeFiles/CMakeOutput.log".

See also "/Users/hongkun/dev/cmake_tutorial/chapter1_2/xcode/CMakeFiles/CMakeError.log".

Hongui-MacBook-Pro:xcode hongkun$ sudo xcode-select --reset

Password:

Hongui-MacBook-Pro:xcode hongkun$ cmake -G "Xcode" ..


해결 방법 >>

$ sudo xcode-select --reset


$ cmake -G "Xcode" ..

-- The C compiler identification is AppleClang 9.1.0.9020039

-- The CXX compiler identification is AppleClang 9.1.0.9020039

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++

-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/hongkun/dev/cmake_tutorial/chapter1_2/xcode


잘 돌아간다




'ⓟrogramming > Build Tool' 카테고리의 다른 글

[Make] makefile 메크로  (0) 2018.10.18
블로그 이미지

뚱땡이 우주인

,