日期:2014-05-16 浏览次数:20768 次
wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz tar xvf cmake-2.8.10.2.tar.gz sh bootstrap && make && make install
yum install numpy.x86_64 numpy-f2py.x86_64 yum install libtiff.x86_64 libjpeg.x86_64 libpng.x86_64 jasper-libs.x86_64 yum install libtiff-devel.x86_64 libjpeg-devel.x86_64 jasper-devel.x86_64 libpng-devel.x86_64 yum install ant
cd opencv 用到cmake的选项: BUILD_SHARED_LIBS:共享 BUILD_EXAMPLES:编译demo BUILD_FAT_JAVA_LIB:java支持 (如果java调用opencv,必须打开这个选项) INSTALL_PYTHON_EXAMPLES:安装python的demo cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_FAT_JAVA_LIB=ON ../opencv-2.4.4
//Include opencv_java module into the OpenCV build BUILD_opencv_java:BOOL=ON
make && make install