opencv-2.4.13.2 cmake 编译要点

时间:2024-05-31 16:56:26

cmake 2.8.4  Index of /files

/home/developer/third/cmake-2.8.4/install/bin/cmake .. -DCMAKE_INSTALL_PREFIX=/home/developer/third/opencv-2.4.13.2/build/3559 -DWITH_CUDA=OFF -DENABLE_PRECOMPILED_HEADERS=OFF  -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arch32-gnu.toolchain.cmake -DCUDA_GENERATION=Kepler  -DENABLE_PROFILING=OFF -DWITH_OPENCL=OFF   -DBUILD_TESTS=OFF  -DINSTALL_PYTHON_EXAMPLES=OFF -DBUILD_EXAMPLES=OFF -DWITH_FFMPEG=OFF  -DBUILD_opencv_js=OFF  -DENABLE_NEON=OFF -DENABLE_VFPV3=OFF -DCMKAE_BUILD_TYPE=Release 

arch32-gnu.toolchain.cmake

#set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version")
SET (CMAKE_C_COMPILER "/opt/hisi-linux/x86-arm/arm-himix100-linux/bin/arm-himix100-linux-gcc")
SET (CMAKE_CXX_COMPILER "/opt/hisi-linux/x86-arm/arm-himix100-linux/bin/arm-himix100-linux-g++")
set(GNU_MACHINE "arm-himix100-linux" CACHE STRING "GNU compiler triple")
set(CMAKE_AR  /opt/hisi-linux/x86-arm/arm-himix100-linux/bin/arm-himix100-linux-ar CACHE FILEPATH "Archiver")
include("${CMAKE_CURRENT_LIST_DIR}/arm.toolchain.cmake")