日期:2014-05-16  浏览次数:20839 次

OpenCV在Linux(Fedora 10)下的安装

前面就不多说了,按照《OpenCV教程基础篇》的步骤make,makeinstall...

编译程序时提示:Package opencv was not found in the pkg-config search path

输入

$export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

运行程序时提示:error while loading shared libraries: libcxcore.so.2: cannot open shared object file: No such file or directory

指定动态链接库

$echo $LD_LIBRARY_PATH

$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

接着运行就没问题了...