-
Notifications
You must be signed in to change notification settings - Fork 10
/
run_cmake.sh
executable file
·35 lines (35 loc) · 1.12 KB
/
run_cmake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake \
-D CMAKE_C_COMPILER=/usr/bin/gcc \
-D CMAKE_CXX_COMPILER=/usr/bin/g++ \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local/opencv-3.1.0 \
-D BUILD_opencv_world=OFF \
-D OPENCV_EXTRA_MODULES_PATH=./opencv_contrib/modules \
-D opencv_dnn_BUILD_TORCH_IMPORTER=OFF \
-D BUILD_opencv_text=ON \
-D BUILD_opencv_sfm=OFF \
-D PYTHON3_EXECUTABLE=/usr/bin/python3 \
-D PYTHON3_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.5m.so \
-D PYTHON3_NUMPY_INCLUDE_DIRS=/usr/local/lib/python3.5/dist-packages/numpy/core/include \
-D WITH_FFMPEG=OFF \
-D WITH_WEBP=ON \
-D WITH_GPHOTO2=OFF \
-D WITH_EIGEN=ON \
-D EIGEN_INCLUDE_PATH=/usr/include/eigen3 \
-D WITH_TBB=ON \
-D TBB_INCLUDE_DIRS=/usr/include/tbb \
-D ENABLE_AVX=ON \
-D WITH_OPENMP=ON \
-D WITH_QT=OFF \
-D WITH_GTK=OFF \
-D CUDA_ARCH_BIN=3.0 \
-D CUDA_ARCH_PTX=3.0 \
-D WITH_CUBLAS=ON \
-D BUILD_EXAMPLES=ON \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D INSTALL_TESTS=OFF \
-D INSTALL_C_EXAMPLES=ON \
-D CMAKE_C_FLAGS="-march=native" \
-D CMAKE_CXX_FLAGS="-march=native" \
-D INSTALL_PYTHON_EXAMPLES=ON ..