Last active
May 9, 2016 13:04
-
-
Save KillerGoldFisch/1ad1104bae2505aff73f1813a6431e2d to your computer and use it in GitHub Desktop.
killergoldfisch/beaker-opencv
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
FROM killergoldfisch/beaker | |
MAINTAINER Kevin Gliewe <kevingliewe@gmail.com> | |
# Used for displaying STL-Files | |
RUN pip install numpy-stl enum34 | |
RUN apt-get update && \ | |
apt-get install -y cmake make build-essential git wget | |
# Install OpenCV | |
RUN cd ~ && \ | |
git clone https://github.com/Itseez/opencv.git && \ | |
git clone https://github.com/Itseez/opencv_contrib && \ | |
cd opencv && \ | |
mkdir build && \ | |
cd build && \ | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_PYTHON_SUPPORT=ON -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON \ | |
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D BUILD_opencv_reponame=OFF \ | |
-D WITH_XINE=ON -D WITH_V4L=ON D WITH_OPENGL=ON -D WITH_OPENCL=OFF -D CMAKE_INSTALL_PREFIX=/usr/local .. && \ | |
make && \ | |
make install | |
# Fix error "Failed to initialize libdc1394" | |
RUN ln /dev/null /dev/raw1394 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment