pkg-config 切换opencv版本

查看当前版本

pkg-config --modversion opencv    

~/.bashrc最后添加如下内容:

CMAKE_INSTALL_PREFIX=/usr/local/opencv3
export PKG_CONFIG_PATH=/usr/local/opencv3/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/opencv3/lib

然后执行:

source ~/.bashrc

转载于:https://www.cnblogs.com/chay/p/10291263.html

你可能感兴趣的:(人工智能)