Ask Your Question

Revision history [back]

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

1.I create cross compile by Androd NDK 2.referring to https://docs.opencv.org/master/d0/d76/tutorial_arm_crosscompile_with_cmake.html 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?