![](/img/trans.png)
[英]/usr/local/include/string.h:25:10: fatal error: 'plist/Node.h' file not found
[英]error /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope while building caffe
我正在嘗試按照本指南編譯caffe: https : //gist.github.com/wangruohui/679b05fcd1466bb0937f
然而,當我得到make all
我得到的錯誤
NVCC src/caffe/layers/hdf5_data_layer.cu
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
Makefile:585: recipe for target '.build_release/cuda/src/caffe/layers/hdf5_data_layer.o' failed
但是/usr/include/string.h甚至不在caffe代碼中,那么是什么給出了? 這是一個密切關注16.04的ubuntu變體
看作代碼的來源是一個眾所周知的回購,我認為問題可能在Makefile或Makefile.config中
經過很長一段時間瀏覽各種互聯網資源后,我通過轉到Makefile並更改了這一行解決了這個問題
NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
成
NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
對我來說,這是在406
線上
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.