cmake编译报错
-- CMAKE_INSTALL_PREFIX = /root/mnn/MNN-master/install -- NCNN_VERSION_STRING = 1.0.20231123 -- The C compiler identification is GNU 7.4.1 -- The CXX compiler identification is GNU 7.4.1 -- Check for working C compiler: /root/t507/sdk_v2/V2.0/out/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -- Check for working C compiler: /root/t507/sdk_v2/V2.0/out/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /root/t507/sdk_v2/V2.0/out/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -- Check for working CXX compiler: /root/t507/sdk_v2/V2.0/out/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test NCNN_COMPILER_SUPPORT_GNU_INLINE_ASM -- Performing Test NCNN_COMPILER_SUPPORT_GNU_INLINE_ASM - Success -- Performing Test NCNN_COMPILER_SUPPORT_ARM_VFPV4 -- Performing Test NCNN_COMPILER_SUPPORT_ARM_VFPV4 - Success -- Performing Test NCNN_COMPILER_SUPPORT_ARM82_FP16 -- Performing Test NCNN_COMPILER_SUPPORT_ARM82_FP16 - Success -- Performing Test NCNN_COMPILER_SUPPORT_ARM82_DOTPROD -- Performing Test NCNN_COMPILER_SUPPORT_ARM82_DOTPROD - Success -- Performing Test NCNN_COMPILER_SUPPORT_ARM82_FP16FML -- Performing Test NCNN_COMPILER_SUPPORT_ARM82_FP16FML - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM84_BF16 -- Performing Test NCNN_COMPILER_SUPPORT_ARM84_BF16 - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM84_I8MM -- Performing Test NCNN_COMPILER_SUPPORT_ARM84_I8MM - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVE -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVE - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVE2 -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVE2 - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVEBF16 -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVEBF16 - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVEI8MM -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVEI8MM - Failed -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVEF32MM -- Performing Test NCNN_COMPILER_SUPPORT_ARM86_SVEF32MM - Failed CMake Warning at CMakeLists.txt:229 (message): The compiler does not support armv8.2 fp16fml. NCNN_ARM82FP16FML will be OFF.
CMake Warning at CMakeLists.txt:236 (message): The compiler does not support armv8.4 bf16. NCNN_ARM86BF16 will be OFF.
CMake Warning at CMakeLists.txt:243 (message): The compiler does not support armv8.4 i8mm. NCNN_ARM84I8MM will be OFF.
CMake Warning at CMakeLists.txt:278 (message): The compiler does not support armv8.6 sve. NCNN_ARM86SVE will be OFF.
-- Target arch: arm 64bit -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Check if compiler accepts -pthread CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately: THREADS_PTHREAD_ARG (advanced) For details see /root/ncnn_test/ncnn-20231027/build/TryRunResults.cmake -- Check if compiler accepts -pthread - no -- Found Threads: TRUE CMake Error at src/CMakeLists.txt:492 (if): if given arguments:
"ANDROID_NDK_MAJOR" "AND" "(" "ANDROID_NDK_MAJOR" "GREATER_EQUAL" "23" ")"
Unknown arguments specified
-- Configuring incomplete, errors occurred! See also "/root/ncnn_test/ncnn-20231027/build/CMakeFiles/CMakeOutput.log". See also "/root/ncnn_test/ncnn-20231027/build/CMakeFiles/CMakeError.log".
try invoking cmake again try upgrading cmake release