Skip to content
Kathryn Baldauf edited this page Jan 23, 2018 · 2 revisions

OpenCV

This will work for either 2 or 3. Download the latest source release. If using the 3.x line, download the contrib source and update the modules path.

cd <opencv source path>
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D INSTALL_C_EXAMPLES=ON \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D WITH_TBB=ON \
  -D WITH_V4L=ON \
  -D WITH_QT=ON \
  -D WITH_OPENGL=ON \
  -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
  -D BUILD_EXAMPLES=ON ..
make -j8
Clone this wiki locally