Skip to content

Instantly share code, notes, and snippets.

@KillerGoldFisch
Last active May 9, 2016 13:04
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 KillerGoldFisch/1ad1104bae2505aff73f1813a6431e2d to your computer and use it in GitHub Desktop.
Save KillerGoldFisch/1ad1104bae2505aff73f1813a6431e2d to your computer and use it in GitHub Desktop.
killergoldfisch/beaker-opencv
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