Skip to content

Instantly share code, notes, and snippets.

@nico-lab
Last active April 15, 2019 11:10
Show Gist options
  • Save nico-lab/db0533e6889a1b3972dc to your computer and use it in GitHub Desktop.
Save nico-lab/db0533e6889a1b3972dc to your computer and use it in GitHub Desktop.
ffmpeg で使う opencv をコンパイルする
$ git clone https://github.com/opencv/opencv
$ cd opencv
$ mkdir build
$ cd build
$ cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/mingw/i686-w64-mingw32 -DCMAKE_BUILD_TYPE="Release" \
-DWITH_IPP=OFF -DWITH_TBB=ON -DBUILD_opencv_flann=OFF -DBUILD_opencv_photo=OFF -DBUILD_opencv_highgui=OFF\
-DBUILD_opencv_ml=OFF -DBUILD_opencv_objdetect=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_imgcodecs=OFF
$ make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment