Created
October 5, 2022 01:39
-
-
Save Kyungpyo-Kim/b4779e9670545ef64806fde11991c18a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install opencv3 | |
apt-get -qq update && apt-get install -y --no-install-recommends \ | |
unzip \ | |
doxygen \ | |
file \ | |
gfortran \ | |
gnupg \ | |
gstreamer1.0-plugins-good \ | |
imagemagick \ | |
libatk-adaptor \ | |
libatlas-base-dev \ | |
libboost-all-dev \ | |
libcanberra-gtk-module \ | |
libdc1394-22-dev \ | |
libeigen3-dev \ | |
libfaac-dev \ | |
libfreetype6-dev \ | |
libgflags-dev \ | |
libglew-dev \ | |
libglu1-mesa \ | |
libglu1-mesa-dev \ | |
libgoogle-glog-dev \ | |
libgphoto2-dev \ | |
libgstreamer1.0-dev \ | |
libgstreamer-plugins-bad1.0-0 \ | |
libgstreamer-plugins-base1.0-dev \ | |
libgtk2.0-dev \ | |
libgtk-3-dev \ | |
libhdf5-dev \ | |
libhdf5-serial-dev \ | |
libjpeg-dev \ | |
liblapack-dev \ | |
libmp3lame-dev \ | |
libopenblas-dev \ | |
libopencore-amrnb-dev \ | |
libopencore-amrwb-dev \ | |
libopenjp2-7 \ | |
libopenjp2-7-dev \ | |
libopenjp2-tools \ | |
libopenjpip-server \ | |
libpng-dev \ | |
libpostproc-dev \ | |
libprotobuf-dev \ | |
libtbb2 \ | |
libtbb-dev \ | |
libtheora-dev \ | |
libtiff5-dev \ | |
libv4l-dev \ | |
libvorbis-dev \ | |
libwebp-dev \ | |
libx264-dev \ | |
libx265-dev \ | |
libxi-dev \ | |
libxine2-dev \ | |
libxmu-dev \ | |
libxvidcore-dev \ | |
libzmq3-dev \ | |
v4l-utils \ | |
x11-apps \ | |
x264 \ | |
yasm \ | |
&& rm -rf /var/lib/apt/lists/* && \ | |
cd / && \ | |
wget https://github.com/opencv/opencv/archive/3.4.zip -O opencv3.zip && \ | |
unzip -q opencv3.zip && mv /opencv-3.4 /opencv && \ | |
wget https://github.com/opencv/opencv_contrib/archive/3.4.zip -O opencv_contrib3.zip && \ | |
unzip -q opencv_contrib3.zip && mv /opencv_contrib-3.4 /opencv_contrib && \ | |
mkdir /opencv/build && \ | |
cd /opencv/build && \ | |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D BUILD_PYTHON_SUPPORT=OFF \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D INSTALL_C_EXAMPLES=OFF \ | |
-D INSTALL_PYTHON_EXAMPLES=OFF \ | |
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules \ | |
-D BUILD_EXAMPLES=OFF \ | |
-D BUILD_NEW_PYTHON_SUPPORT=OFF \ | |
-D WITH_IPP=OFF \ | |
-D WITH_V4L=ON .. && \ | |
make -j$(nproc) && \ | |
make install && \ | |
ldconfig && \ | |
cd / && \ | |
rm -r /opencv* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment