cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/sophon/SDK/Release_230701-public/sophon-sail_20230802_085400/sophon-sail/build/CMakeFiles/CMakeOutput.log".
See also "/home/sophon/SDK/Release_230701-public/sophon-sail_20230802_085400/sophon-sail/build/CMakeFiles/CMakeError.log".
这个报错是因为没有安装g++编译器
解决办法:
sudo yum install -y gcc-c++