RetHat安装opencv
mkdirOpenCV
cdOpenCV
wget -O opencv-2.4.7.tar.gzhttp://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.7/opencv-2.4.7.tar.gz/download
如果找不到直接网站下载: https://sourceforge.net/projects/opencvlibrary/files/opencv-unix/
tar -zxf opencv-2.4.7.tar.gz
cd opencv-2.4.7
sed -i'/string(MD5/d' cmake/cl2cpp.cmake
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=bulid -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..
make -j4
sudo make install
sudo sh -c'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig