Giter VIP home page Giter VIP logo

Comments (2)

wzj5133329 avatar wzj5133329 commented on May 10, 2024

您好。我按照你的要求修改了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.

WallZFE avatar WallZFE commented on May 10, 2024

嗯嗯,上面错误是因为相应的lib库路径没有找到导致的,我把lib库按照你的方法添加到bash.bashrc里后,make就成功了。谢谢你了

from retinaface_caffe.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.