简体   繁体   English

尝试在Mac上的Darknet YOLO库上运行“ make”命令时出错

[英]Error while trying to run 'make' command on darknet YOLO library on a Mac

gcc -Iinclude/ -Isrc/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/utils.c -o obj/utils.o

./src/utils.c:29:5: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
    clock_gettime(CLOCK_REALTIME, &now);
    ^

./src/utils.c:29:19: fatal error: use of undeclared identifier 'CLOCK_REALTIME'
clock_gettime(CLOCK_REALTIME, &now);
              ^

1 warning and 1 error generated. 生成1个警告和1个错误。 make: *** [obj/utils.o] Error 1 make:*** [obj / utils.o]错误1

The clock_gettime function is not available on MacOS. clock_gettime函数在MacOS上不可用。 So you'll have to rewrite the code to use a different method. 因此,您必须重写代码以使用其他方法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试在 mac OS 中运行此命令“pipenv install requests”时出错 - Getting error while trying to run this command “ pipenv install requests ” in mac OS 错误:命令“ android”失败。 尝试为Mac安装phonegap时 - Error: The command “android” failed. while trying to install phonegap for mac 尝试从 IDLE 中运行 imagemagick 时找不到命令错误 - Command not found error while trying to run imagemagick from within IDLE 在 macbook air 上“制作”darknet/YOLO_V3 时架构 x86_64 的未定义符号 - Undefined symbols for architecture x86_64 when 'make' darknet/YOLO_V3 on macbook air 尝试在 Mac OS Catlina 上运行 opensmile-2.3.0 时出现“错误:全局命名空间中没有名为‘signbit’的成员”? - 'Error: no member named 'signbit' in the global namespace' while trying to run opensmile-2.3.0 on Mac OS Catlina? 无法运行程序“ START”:错误= 2,尝试在MAC中终止Chrome进程时没有此类文件或目录 - Cannot run program “START”: error=2, No such file or directory while trying to kill Chrome process in MAC 尝试在 Mac 上安装 matplotlib 时出错 - Error while trying to install matplotlib on Mac 如何在Mac上启动时使Apple脚本运行终端命令 - How to make an apple script run terminal command on startup on a mac 尝试通过 crontab 运行脚本时不允许操作 - Mac - Operation not permitted while trying to run script through crontab - Mac 尝试在Mac上运行python脚本时出现持续错误 - Continual errors while trying to run python scripts on Mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM