나중에 다시 컴파일할 때 참고하려고 만들음
부정확한 내용이 있을 수 있음.
sudo apt install libgtk2.0-dev pkg-config cmake -y
libopencv_world.so
혹은 opencv_world.dll
파일로 여러 라이브러리 파일들을 묶어줌.OPENCV_EXTRA_MODULES_PATH
설정해줄 필요가 생김cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_ENABLE_NONFREE=ON \
-D BUILD_opencv_world=ON \
-D BUILD_JPEG=ON \
-D BUILD_PNG=ON \
-D BUILD_TIFF=ON \
-D WITH_CUDA=OFF \
-D WITH_IPP=OFF \
-D WITH_QT=OFF \
-D WITH_OPENMP=ON \
-D WITH_TBB=OFF \
-D WITH_IPP=OFF \
-D WITH_1394=OFF \
-D BUILD_WITH_DEBUG_INFO=OFF \
-D BUILD_DOCS=OFF \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D WITH_GTK=ON \
-D WITH_OPENGL=ON \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.10/modules \
-D WITH_V4L=ON \
-D WITH_FFMPEG=ON \
-D WITH_XINE=ON \
-D BUILD_NEW_PYTHON_SUPPORT=ON \
-D OPENCV_GENERATE_PKGCONFIG=ON ../
-D WITH_CUDA=ON \
-D ENABLE_FAST_MATH=1 \
-D CUDA_FAST_MATH=1 \
-D WITH_CUBLAS=1 \
을 추가.
https://answers.opencv.org/question/65178/install-multiple-versions-of-opencv-on-ubuntu/
여전히 멀티코어링이 잘 안됐음. Jetson 자체를 업데이트 해야했을듯?
cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-4.2.0/modules \
-D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_CUDA=ON -D CUDA_ARCH_BIN="6.2" -D CUDA_ARCH_PTX="" \
-D WITH_CUBLAS=ON -D ENABLE_FAST_MATH=ON -D CUDA_FAST_MATH=ON \
-D ENABLE_NEON=ON -D WITH_LIBV4L=ON -D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF \
-D WITH_QT=OFF -D WITH_OPENGL=ON -D WITH_GTK=ON \
-D WITH_OPENMP=ON -D WITH_PROTOBUF=OFF \
-D WITH_TBB=ON -D BUILD_TBB=ON \
..
DERS 할 때 씀
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_ENABLE_NON_FREE=ON \
-D BUILD_JPEG=ON \
-D BUILD_PNG=ON \
-D BUILD_TIFF=ON \
-D WITH_CUDA=OFF \
-D WITH_IPP=OFF \
-D WITH_QT=OFF \
-D WITH_OPENMP=ON \
-D WITH_TBB=OFF \
-D WITH_IPP=OFF \
-D WITH_1394=OFF \
-D BUILD_WITH_DEBUG_INFO=OFF \
-D BUILD_DOCS=OFF \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D WITH_GTK=ON \
-D WITH_OPENGL=ON \
-D WITH_V4L=OFF \
-D WITH_FFMPEG=ON \
-D WITH_XINE=ON \
-D WITH_JAVA=OFF \
-D BUILD_JAVA=OFF \
-D WITH_VTK=ON \
-D BUILD_opencv_viz=ON \
-D OPENCV_GENERATE_PKGCONFIG=ON ../