opencv  caffe编译错误的解决

1.opencv 编译如果显示有依赖anaconda 下的opecv的错误时  删除它

有 comput = 20 什么的则删除makefile.config 文件中的com——put 对应的字段

2.caffe 显示缺少atlas (不能换源,使用原有的apt源)

sudo apt-get install libatlas-dev          
sudo apt-get install libatlas-base-dev

3.安装qt,运行.run文件

添加library路径在.bashrc

export LD_LIBRARY_PATH=/home/lucky/Qt5.9.0/5.9/gcc_64/lib:$LD_LIBRARY_PATH

source .bashrc

之后要重启IDE加载库

4.libpng库

下载包 提取

进入文件夹

./configure

make

sudo make install(make install 必须sudo)

5.usr/bin/ld:warning:libcublas.so.8.0 need by with: 错误解决

cd face_works/face_everything_project/face_everything/sphereface-master/tools/caffe-sphereface/                        

mv build build.bak

mv distribute distribute.bak

vim Makefile.config

删除掉comput_**前几行

make all -j8

make clean

make all -j8

make distribute -j8

猜你喜欢

转载自blog.csdn.net/weixin_42309501/article/details/81457764