Toybrick

标题: 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

    "/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/toybrick/yolov3_demo/C-yolov3/build/CMakeFiles/CMakeTmp

    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.

-- Configuring incomplete, errors occurred!


作者: lvey77    时间: 2022-4-2 17:58
记录一下
这个问题是因为目前已经取消了GUNmake了,换为make了
whereis make找到make的位置,将cmakefile中的/bin/gmake改为/usr/bin/make




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3