From 00e9bb5c745595cbe44011b33c22f4d36e406bc5 Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Tue, 18 Nov 2014 16:23:54 +0100 Subject: [PATCH] readme --- opencv/README.md | 6 ++++++ opencv/install.sh | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/opencv/README.md b/opencv/README.md index efdb174..424f146 100644 --- a/opencv/README.md +++ b/opencv/README.md @@ -7,3 +7,9 @@ Lightweight ready-to use OpenCV image ```sh $ docker run --rm -it -v $(pwd):/source schickling/opencv ``` + +### Compile + +```sh +$ gcc $(pkg-config --cflags --libs opencv) -lstdc++ my-file.cpp +``` diff --git a/opencv/install.sh b/opencv/install.sh index 92fa459..f0787de 100644 --- a/opencv/install.sh +++ b/opencv/install.sh @@ -1,11 +1,11 @@ #! /bin/bash opencv_version=2.4.10.1 -opencv_deps=(libopencv-dev yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils ffmpeg) -install_deps=(curl build-essential checkinstall cmake pkg-config) +opencv_deps=(libopencv-dev yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils ffmpeg pkg-config) +install_deps=(curl build-essential checkinstall cmake) # install dependencies -apt-get update && apt-get install -y ${install_deps[@]} +apt-get update && apt-get install -y ${install_deps[@]} ${opencv_deps[@]} # download opencv curl -sL https://github.com/Itseez/opencv/archive/$opencv_version.tar.gz | tar xvz -C /tmp