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
posted @ 2019-01-19 11:53  youngliu91  阅读(1684)  评论(0编辑  收藏  举报