ERROR 삽질
No CMAKE_CXX_COMPILER could be found
capaca
2023. 4. 17. 18:28
** build tool 이 없다는 소리 입니다
$ sudo apt install build-essential
-- The CXX compiler identification is unknown
-- The C compiler identification is GNU 9.4.0
CMake Error at CMakeLists.txt:113 (enable_language):
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.
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_a85a7/fast && /usr/bin/make -f CMakeFiles/cmTC_a85a7.dir/build.make CMakeFiles/cmTC_a85a7.dir/build
make[1]: Entering directory ''
Building C object CMakeFiles/cmTC_a85a7.dir/testCCompiler.c.o
/usr/bin/cc -fPIE -o CMakeFiles/cmTC_a85a7.dir/testCCompiler.c.o -c /home/dev/install_thirdparty/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_a85a7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a85a7.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a85a7.dir/testCCompiler.c.o -o cmTC_a85a7
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_a85a7.dir/build.make:87: cmTC_a85a7] Error 1
make[1]: Leaving directory '
make: *** [Makefile:121: cmTC_a85a7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:113 (enable_language)
-- Configuring incomplete, errors occurred!