darknet 安装时pkg-config 路径问题

pkg-config 路径问题
例如:
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
 

设置环境变量PKG_CONFIG_PATH方法举例如下:
 
找到 opencv.pc所在文件夹 比如 /test/
 
设置为环境变量
 
export PKG_CONFIG_PATH=/test/:$PKG_CONFIG_PATH

[root@scdp darknet]# find / -name  opencv.pc
/home/lwc/opencv3.2/opencv-3.2.0/build/unix-install/opencv.pc
/usr/local/lib/pkgconfig/opencv.pc
[root@scdp darknet]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH
 

 

 

你可能感兴趣的:(项目问题解决)