按照官网教程:
cmake … -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos
命令后报错:
– The C compiler identification is unknown
– The CXX compiler identification is unknown
System is unknown to cmake, create:
Platform/iOS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
CMake Error at CMakeLists.txt:30 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:30 (project):
No CMAKE_CXX_COMPILER could be found.
– Configuring incomplete, errors occurred!
看起来是编辑器找不到,有没有人知道在哪里设置的?
我已经尝试了重新指定xcode和在上方命令中加入-D CMAKE_C_COMPILER的操作,均无法解决。