Skip to content

Instantly share code, notes, and snippets.

@ochaochaocha3
Last active December 27, 2017 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ochaochaocha3/779e5dfdb6ba6b7131a092fb41c1d463 to your computer and use it in GitHub Desktop.
Save ochaochaocha3/779e5dfdb6ba6b7131a092fb41c1d463 to your computer and use it in GitHub Desktop.
Ubuntu 17.10でOpenCV 2.4.13.5をインストールしたときの手順
#!/bin/bash
# ライブラリのインストール
# 参照: https://docs.opencv.org/2.4.13.5/doc/tutorials/introduction/linux_install/
sudo apt install build-essential
sudo apt install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
sudo apt install qtbase5-dev libvtk6-dev
# CMakeでMakefileを作る
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local/opencv-2.4.13.5 \
-D WITH_QT=ON \
-D WITH_VTK=ON \
-D WITH_TBB=ON \
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment