Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv-3.4.12 x86 aarch64 compile #6

Open
lix19937 opened this issue Jul 21, 2023 · 0 comments
Open

opencv-3.4.12 x86 aarch64 compile #6

lix19937 opened this issue Jul 21, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@lix19937
Copy link
Owner

lix19937 commented Jul 21, 2023

aarch64 cross

cmake \
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-3.4.12/modules \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=/home/igs/lix/workspace/cc-dev/cuda_ops/cmake/Toolchain-V5L-3.5.cmake \
-DCMAKE_INSTALL_PREFIX=./install \
-DVIBRANTE_PDK:STRING=/home/igs/lix/workspace/cc-dev/cuda_ops/third_party/nvidia_sdk/drive-t186ref-linux \
-DBUILD_PNG=ON \
-DBUILD_TIFF=ON \
-DBUILD_TBB=OFF \
-DBUILD_WEBP=OFF \
-DBUILD_JPEG=ON \
-DBUILD_JASPER=ON \
-DBUILD_ZLIB=ON \
-DBUILD_EXAMPLES=ON \
-DBUILD_FFMPEG=ON \
-DBUILD_opencv_java=OFF \
-DBUILD_opencv_python2=OFF \
-DBUILD_opencv_python3=OFF \
-DBUILD_opencv_videoio=ON \
-DBUILD_opencv_cudaimgproc=OFF \
-DBUILD_opencv_highgui=ON \
-DBUILD_opencv_dnn=ON \
-DBUILD_opencv_freetype=OFF \
-DBUILD_opencv_xfeatures2d=OFF \
-DBUILD_opencv_xphoto=OFF \
-DENABLE_NEON=ON \
-DWITH_PROTOBUF=OFF \
-DWITH_PTHREADS_PF=OFF \
-DWITH_OPENCL=OFF \
-DWITH_OPENMP=OFF \
-DWITH_FFMPEG=ON \
-DWITH_GSTREAMER=OFF \
-DWITH_GSTREAMER_0_10=OFF \
-DWITH_CUDA=OFF \
-DWITH_CUDNN=OFF \
-DWITH_GTK=OFF \
-DWITH_VTK=OFF \
-DWITH_TBB=OFF \
-DWITH_1394=OFF \
-DWITH_OPENEXR=OFF \
-DINSTALL_C_EXAMPLES=OFF \
-DINSTALL_TESTS=OFF \
-DVIBRANTE=TRUE \
-DOPENCV_CUDA_FORCE_BUILTIN_CMAKE_MODULE=FALSE ../opencv-3.4.12

x86

# https://github.com/Linfeng-Lee/OpenCV_boostdesc_vgg_file
# https://blog.csdn.net/u012321968/article/details/106654012/

#  cpu  

cmake -D CMAKE_BUILD_TYPE=RELEASE   \
      -D CMAKE_INSTALL_PREFIX=../install_x86 \
      -D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \
      -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib-3.4.12/modules/ \
      -D OPENCV_GENERATE_PKGCONFIG=YES \
      -D OPENCV_ENABLE_NONFREE=True \
      -D ENABLE_CXX11=1 \
      -D ENABLE_FAST_MATH=1 \
      -D WITH_TBB=ON \
      -D WITH_OPENGL=ON \
      -D WITH_OPENMP=ON \
      -D WITH_TIFF=ON  \
      -D BUILD_TIFF=ON \
      -D WITH_1394=OFF \
      -D WITH_GDAL=ON \
      -D WITH_CUDA=ON \
      -D WITH_GTK=ON -D WITH_GTK_2_X=ON \
      -D CUDA_NVCC_FLAGS="-D_FORCE_INLINES"\
      -D WITH_CUBLAS=ON -D WITH_CUFFT=ON \
      -D INSTALL_C_EXAMPLES=OFF \
      -D INSTALL_PYTHON_EXAMPLES=OFF \
      -D BUILD_EXAMPLES=OFF ../opencv-3.4.12

# gpu   
cmake -D CMAKE_BUILD_TYPE=RELEASE   \
      -D CMAKE_INSTALL_PREFIX=../install_x86 \
      -D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \
      -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib-3.4.12/modules/ \
      -D OPENCV_GENERATE_PKGCONFIG=YES \
      -D OPENCV_ENABLE_NONFREE=True \
      -D ENABLE_CXX11=1 \
      -D ENABLE_FAST_MATH=1 \
      -D WITH_TBB=ON \
      -D WITH_OPENGL=ON \
      -D WITH_OPENMP=ON \
      -D WITH_TIFF=ON  \
      -D BUILD_TIFF=ON \
      -D WITH_1394=OFF \
      -D WITH_GDAL=OFF \
      -D WITH_CUDA=OFF \
      -D WITH_GTK=ON -D WITH_GTK_2_X=ON \
      -D WITH_CUBLAS=OFF -D WITH_CUFFT=OFF \
      -D INSTALL_C_EXAMPLES=OFF \
      -D INSTALL_PYTHON_EXAMPLES=OFF \
      -D BUILD_EXAMPLES=OFF ../opencv-3.4.12

@lix19937 lix19937 added the documentation Improvements or additions to documentation label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant