Last active
December 27, 2017 14:13
-
-
Save ochaochaocha3/779e5dfdb6ba6b7131a092fb41c1d463 to your computer and use it in GitHub Desktop.
Ubuntu 17.10でOpenCV 2.4.13.5をインストールしたときの手順
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
#!/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