cmake cross-compile for andrid meeting "Compiler doesn't support baseline optimization flags"

asked 2019-06-22 22:31:04 -0600

gavne gravatar image

1.I create cross compile by Androd NDK 2.referring to https://docs.opencv.org/master/d0/d76... first , I change CMAKE_C/XX_COMPILER using cross compile by Androd NDK, then cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../.. 3.I meet this error ,and don't know how to solve it.

-- Performing Test HAVE_CXX_MFPU_VFPV3 - Failed -- VFPV3 is not supported by C++ compiler -- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp) -- Performing Test HAVE_CPU_NEON_SUPPORT - Failed -- Performing Test HAVE_CXX_MFPU_NEON (check file: cmake/checks/cpu_neon.cpp) -- Performing Test HAVE_CXX_MFPU_NEON - Failed -- NEON is not supported by C++ compiler -- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp) -- Performing Test HAVE_CPU_FP16_SUPPORT - Failed -- Performing Test HAVE_CXX_MFPU_NEON_FP16 (check file: cmake/checks/cpu_fp16.cpp) -- Performing Test HAVE_CXX_MFPU_NEON_FP16 - Failed -- FP16 is not supported by C++ compiler -- Performing Test HAVE_CPU_BASELINE_FLAGS -- Performing Test HAVE_CPU_BASELINE_FLAGS - Failed CMake Error at cmake/OpenCVCompilerOptimizations.cmake:524 (message): Compiler doesn't support baseline optimization flags: Call Stack (most recent call first): cmake/OpenCVCompilerOptions.cmake:270 (ocv_compiler_optimization_options) CMakeLists.txt:689 (include)

-- Configuring incomplete, errors occurred!

so anyone can help?

edit retag flag offensive close merge delete

Comments

opencv version is 4.1.0 cmake version is 3.5.1

gavne gravatar imagegavne ( 2019-06-23 10:27:02 -0600 )edit