Last active
February 17, 2018 18:59
-
-
Save Leandros/46e8cedaa0fabc5eb305475df6f61e09 to your computer and use it in GitHub Desktop.
OpenCV
This file contains hidden or 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
#!/bin/bash | |
export PATH=$PATH:$HOME/x86_64-linux-musl/bin | |
export CC=x86_64-linux-musl-gcc | |
export CXX=x86_64-linux-musl-g++ | |
# wget -nc https://zlib.net/zlib-1.2.11.tar.gz | |
# wget -nc ftp://ftp-osl.osuosl.org/pub/libpng/src/libpng16/libpng-1.6.34.tar.xz | |
# wget -nc -O libjpeg.tar.gz http://sourceforge.net/project/showfiles.php?group_id=159521 | |
wget -nc https://github.com/opencv/opencv/archive/3.3.0.zip | |
rm -rf opencv-3.3.0 | |
unzip 3.3.0.zip | |
cd opencv-3.3.0 | |
mkdir -p build | |
cd build | |
cmake .. -G"Ninja" \ | |
-DCMAKE_BUILD_TYPE:STRING=Release \ | |
-DCMAKE_INSTALL_PREFIX="output" \ | |
-DBUILD_SHARED_LIBS:BOOL=OFF \ | |
\ | |
-DBUILD_DOCS:BOOL=OFF \ | |
-DBUILD_PERF_TESTS:BOOL=OFF \ | |
-DBUILD_PROTOBUF:BOOL=OFF \ | |
-DBUILD_TESTS:BOOL=OFF \ | |
-DBUILD_WITH_DEBUG_INFO:BOOL=OFF \ | |
-DBUILD_opencv_apps:BOOL=OFF \ | |
-DBUILD_opencv_calib3d:BOOL=OFF \ | |
-DBUILD_opencv_dnn:BOOL=OFF \ | |
-DBUILD_opencv_features2d:BOOL=OFF \ | |
-DBUILD_opencv_flann:BOOL=OFF \ | |
-DBUILD_opencv_objdetect:BOOL=OFF \ | |
-DBUILD_opencv_shape:BOOL=OFF \ | |
-DBUILD_opencv_stitching:BOOL=OFF \ | |
-DBUILD_opencv_superres:BOOL=OFF \ | |
-DBUILD_opencv_ts:BOOL=OFF \ | |
-DBUILD_opencv_video:BOOL=OFF \ | |
-DBUILD_opencv_videoio:BOOL=OFF \ | |
-DBUILD_opencv_videostab:BOOL=OFF \ | |
\ | |
-DBUILD_ZLIB:BOOL=ON \ | |
-DBUILD_JPEG:BOOL=ON \ | |
-DBUILD_PNG:BOOL=ON | |
ninja | |
ninja install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment