12345678910111213141516171819202122232425262728 |
- root_path="/paddle/PaddleOCR/deploy/cpp_infer/opencv-3.4.7"
- install_path=${root_path}/opencv3
- build_dir=${root_path}/build
- rm -rf ${build_dir}
- mkdir ${build_dir}
- cd ${build_dir}
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=${install_path} \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_SHARED_LIBS=OFF \
- -DWITH_IPP=OFF \
- -DBUILD_IPP_IW=OFF \
- -DWITH_LAPACK=OFF \
- -DWITH_EIGEN=OFF \
- -DCMAKE_INSTALL_LIBDIR=lib64 \
- -DWITH_ZLIB=ON \
- -DBUILD_ZLIB=ON \
- -DWITH_JPEG=ON \
- -DBUILD_JPEG=ON \
- -DWITH_PNG=ON \
- -DBUILD_PNG=ON \
- -DWITH_TIFF=ON \
- -DBUILD_TIFF=ON
- make -j
- make install
|