在尝试Complie Yolo时,我发现包找不到错误

时间:2017-10-05 09:29:35

标签: python c++ opencv

我尝试使用yolo进行对象检测,但是当我尝试编译它时,我收到此错误:

Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found

我的意思是它有一个很长的错误,但我想这是它的本质 - 我试过将环境变量设置为opencv路径, 这是具体细节

locate opencv.pc
/home/decentmakeover2/anaconda3/lib/pkgconfig/opencv.pc    
/home/decentmakeover2/anaconda3/pkgs/opencv-3.1.0-
np111py35_1/lib/pkgconfig/opencv.pc

echo $PKG_CONFIG_PATH 
:/home/decentmakeover2/anaconda3/lib/pkgconfig/opencv.pc

我不确定如何继续。

1 个答案:

答案 0 :(得分:0)

添加包含opencv.pc的目录。所以/ home / decentmakeover2 / anaconda3 / lib / pkgconfig