Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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