Comments (2)
您好。我按照你的要求修改了Makefile文件,把我的caffe路径添加进去了,在make时出现了错误:
g++ -o retinaface detect.o anchor_generator.o config.o tools.o main.o -lboost_system -lcaffe -lglog -lprotobuf -lcudart -lgflags
pkg-config opencv
/usr/bin/ld: cannot find -lcaffe
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
Makefile:21: recipe for target 'retinaface' failed
make: *** [retinaface] Error 1`
请问您是怎么解决的,谢谢你了。
你可以将你的caffe路径添加到环境变量里面试试
操作如下
1.sudo gedit /etc/bash.bashrc
添加类似如下
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/home/asd/Project/MobileNet-YOLO-master2/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/asd/Project/MobileNet-YOLO-master2/build/lib
export LIBRARY_PATH=$LIBRARY_PATH:/home/asd/Project/MobileNet-YOLO-master2/build/lib
2.source /etc/bash.bashrc
3.sudo ldconfig
另外如果你没有cuda需要将-lcudart去掉
from retinaface_caffe.
嗯嗯,上面错误是因为相应的lib库路径没有找到导致的,我把lib库按照你的方法添加到bash.bashrc里后,make就成功了。谢谢你了
from retinaface_caffe.
Related Issues (10)
- 官方的shape与您的caffe模型不同? HOT 1
- error C2065: “anchor”: 未声明的标识符 HOT 1
- 4G显存还不够??? HOT 1
- CUDNN_STATUS_NOT_INITIALIZED error HOT 10
- question about resize HOT 1
- opencv版本问题 HOT 3
- ‘cv::Rect2f’ has not been declared HOT 1
- 请问为什么我跑通过了之后,基本上检测不出人脸 HOT 2
- Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERROR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retinaface_caffe.