Toybrick

yolo c++版本编译时出现 c compiler isn't able to compile a simple test

lvey77

注册会员

积分
73
楼主
发表于 2022-4-1 19:30:53    查看: 2053|回复: 1 | [复制链接]    打印 | 只看该作者
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

注册会员

积分
73
沙发
 楼主| 发表于 2022-4-2 17:58:18 | 只看该作者
记录一下
这个问题是因为目前已经取消了GUNmake了,换为make了
whereis make找到make的位置,将cmakefile中的/bin/gmake改为/usr/bin/make
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表