fatal error: nsync_cv.h:No such file or directory(没有那个文件或目录)

在ubuntu系统上,运行Fast-RCNN出现了如下问题:

fatal error: nsync_cv.h:没有那个文件或目录

解决方法:

(1):下载nsync,nsync的链接:https://github.com/google/nsync/tree/master/public

(2):将 nsync的所有 .h文件复制到 /usr/include (注:cp 命令需要sudo赋予临时root权限,不然没法复制)

注:参考其他博客的方法:

将目录tensorflow/core/platform/default/mutex.h的mutex.h里面的

#include "nsync_cv.h"
#include "nsync_mu.h"

改为

#include "external/nsync/public/nsync_cv.h"
#include "external/nsync/public/nsync_mu.h"
实测效果:对我来说是没用,不知道你们可不可以

参考链接:https://github.com/tensorflow/tensorflow/issues/12482

猜你喜欢

转载自blog.csdn.net/qq_28632639/article/details/83149301