Skip to content

Instantly share code, notes, and snippets.

@BloodAxe
Last active December 21, 2015 08:38
Embed
What would you like to do?
# Clone fresh copy of OpenCV
git clone https://github.com/Itseez/opencv.git opencv-node
# Prepare build and install dirs
mkdir opencv-node-build
mkdir opencv-node-bin
cd opencv-node-build
# Configure OpenCV
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_opencv_java=OFF \
-DBUILD_JASPER=ON \
-DBUILD_ZLIB=ON \
-DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_PNG=ON \
-DBUILD_TIFF=ON \
-DBUILD_JPEG=ON \
-DWITH_JASPER=ON \
-DWITH_OPENEXR=OFF \
-DWITH_PNG=ON \
-DWITH_TIFF=ON \
-DWITH_WEBP=OFF \
-DWITH_JPEG=ON \
../opencv-2.4.6.1/
# Build and install OpenCV libs
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment