sudo yum install opencv opencv-devel opencv-python
pkg-config --modversion opencv
sudo yum install epel-release git gcc gcc-c++ cmake3 qt5-qtbase-devel \ python python-devel python-pip cmake python-devel python34-numpy \ gtk2-devel libpng-devel jasper-devel openexr-devel libwebp-devel \ libjpeg-turbo-devel libtiff-devel libdc1394-devel tbb-devel numpy \ eigen3-devel gstreamer-plugins-base-devel freeglut-devel mesa-libGL \ mesa-libGL-devel boost boost-thread boost-devel libv4l-devel
mkdir ~/opencv_build && cd ~/opencv_build git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git
cd ~/opencv_build/opencv && mkdir build && cd build
cmake3 -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_GENERATE_PKGCONFIG=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON ..
결과확인
-- Configuring done
-- Generating done
-- Build files have been written to: /home/linuxize/opencv_build/opencv/build
코어갯수확인
nproc
make -j8
코어갯수에 맞게 숫자 변경
sudo make install
https://jjeongil.tistory.com/1486
'VAS > Centos 7 개발환경 구축' 카테고리의 다른 글
Centos 7 폴더/하위폴더 관리자 권한으로 변경하기(chown) (0) | 2021.08.23 |
---|---|
[Solved] FileZilla 파일질라 permission error 해결법 (0) | 2021.08.20 |
Centos 7 VScode 설치방법 (0) | 2021.08.17 |
Centos 7 CUDA 11.2설치 + Cudnn 8.1.0 설치 [Solved] (0) | 2021.08.17 |
Centos 7 Anaconda 3 설치 (0) | 2021.08.11 |
댓글