标题: yolo c++版本编译时出现 c compiler isn't able to compile a simple test [打印本页] 作者: lvey77 时间: 2022-4-1 19:30 标题: yolo c++版本编译时出现 c compiler isn't able to compile a simple test 1、板子是toybrick的板子。 2、yolo demo 是论坛上的下载的,想编译C-yolov3 3、报错 The C compiler "/bin/cc" is not able to compile a simple test program. 4、使用cmake .. -DCMAKE_C_COMPILER=$(which cc)指定编译器,但还是无法解决。指定为gcc也不行。 5、详细log如下:
toybrick@debian10:~/yolov3_demo/C-yolov3/build$ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /bin/cc
CMake Error: Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_289ef/fast"
-- Check for working C compiler: /bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
Run Build Command:"/bin/gmake" "cmTC_289ef/fast"
No such file or directory
Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_289ef/fast"
CMake will not be able to correctly generate this project.