码迷,mamicode.com
首页 > 其他好文 > 详细

cmake_error_on_xcode

时间:2017-07-25 14:18:28      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:command   images   log   err   c++   xcode   logs   --   技术   

1,

CMake Error at CMakeLists.txt:44 (project):
  No CMAKE_C_COMPILER could be found.

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


B000000045613:liuhanwork liuhan01$ xcrun -find c++
/Library/Developer/CommandLineTools/usr/bin/c++
B000000045613:liuhanwork liuhan01$ xcrun -find cc
/Library/Developer/CommandLineTools/usr/bin/cc

技术分享



2,自己重装了xcode,修改原来默认路径

xcode-select: error: tool ‘xcodebuild‘ requires Xcode, but active developer
  directory ‘/Library/Developer/CommandLineTools‘ is a command line tools
  instance

B000000045613:Developer liuhan01$ ls
Applications    Makefiles    Toolchains    usr
Library        Platforms    Tools
B000000045613:Developer liuhan01$ pwd
/Applications/Xcode.app/Contents/Developer
B000000045613:bin liuhan01$ xcode
-select -p /Library/Developer/CommandLineTools B000000045613:Applications liuhan01$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer Password: B000000045613:Applications liuhan01$ B000000045613:Applications liuhan01$ xcode-select -p /Applications/Xcode.app/Contents/Developer

 



cmake_error_on_xcode

标签:command   images   log   err   c++   xcode   logs   --   技术   

原文地址:http://www.cnblogs.com/liuhan333/p/7233653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!