opencv: CheckTypeSize failure on Mac os M1
This issue seems identical to #24180 (closed), however, the fix !7948 (merged) that was merged before version 3.25.1 doesn't seem to fix the error on Mac os M1.
System: Apple M1 Max, Mac os Ventura 13.1
Cmake Version 3.25.1 (tried both brew version and the standalone application just in case)
When trying to cross compile openCV for ios using openCV provided script "build_opencv_xcframework.sh", I get this error:
python opencv-4.5.5/platforms/apple/build_xcframework.py --without video --disable-bitcode --disable-swift --disable WEBP --iphonesimulator_archs arm64,x86_64 --iphoneos_archs arm64 --build_only_specified_archs --iphoneos_deployment_target 12.0 -o opencv-4.5.5-xcframework
The following args are not recognized by this script and will be passed through to the ios/osx build_framework.py scripts: ['--without', 'video', '--disable-bitcode', '--disable-swift', '--disable', 'WEBP', '--iphoneos_deployment_target', '13.0']
Using iPhoneOS ARCHS=arm64
Using iPhoneSimulator ARCHS=arm64,x86_64
Using MacOS ARCHS=None
Using Catalyst ARCHS=None
============================================================
Building iPhoneOS frameworks
============================================================
['python3', '/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py', 'opencv-4.5.5-xcframework/iphoneos', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', '--without', 'video', '--disable-bitcode', '--disable-swift', '--disable', 'WEBP', '--iphoneos_deployment_target', '12.0']
Executing: ['python3', '/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py', 'opencv-4.5.5-xcframework/iphoneos', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', '--without', 'video', '--disable-bitcode', '--disable-swift', '--disable', 'WEBP', '--iphoneos_deployment_target', '12.0'] in /Users/my_folder
Executing: python3 /Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py opencv-4.5.5-xcframework/iphoneos --iphoneos_archs arm64 --framework_name opencv2 --build_only_specified_archs --without video --disable-bitcode --disable-swift --disable WEBP --iphoneos_deployment_target 12.0
Using IPHONEOS_DEPLOYMENT_TARGET=12.0
Using iPhoneOS ARCHS=['arm64']
Using iPhoneSimulator ARCHS=None
=================================
CMake
=================================
Executing: ['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DOPENCV_INCLUDE_INSTALL_PATH=include', '-DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty', '-DFRAMEWORK_NAME=opencv2', '-DBUILD_opencv_video=OFF', '-DWITH_WEBP=OFF', '-DIOS_ARCH=arm64', '-DCMAKE_TOOLCHAIN_FILE=/Users/my_folder/opencv-4.5.5/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '/Users/my_folder/opencv-4.5.5'] in /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos
Executing: cmake -GXcode -DAPPLE_FRAMEWORK=ON -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release -DOPENCV_INCLUDE_INSTALL_PATH=include -DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty -DFRAMEWORK_NAME=opencv2 -DBUILD_opencv_video=OFF -DWITH_WEBP=OFF -DIOS_ARCH=arm64 -DCMAKE_TOOLCHAIN_FILE=/Users/my_folder/opencv-4.5.5/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake -DCPU_BASELINE=DETECT /Users/my_folder/opencv-4.5.5
-- Setting up iPhoneOS toolchain for IOS_ARCH='arm64'
-- iPhoneOS toolchain loaded
-- Setting up iPhoneOS toolchain for IOS_ARCH='arm64'
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- The C compiler identification is AppleClang 14.0.0.14000029
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected processor: arm64
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Success
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_CXX_WNO_SEMICOLON_BEFORE_METHOD_BODY
-- Performing Test HAVE_CXX_WNO_SEMICOLON_BEFORE_METHOD_BODY - Success
-- Performing Test HAVE_C_WNO_SEMICOLON_BEFORE_METHOD_BODY
-- Performing Test HAVE_C_WNO_SEMICOLON_BEFORE_METHOD_BODY - Success
-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CPU_NEON_SUPPORT - Success
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_LINK_AS_NEEDED
-- Performing Test HAVE_LINK_AS_NEEDED - Failed
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Success
-- Performing Test HAVE_C_WNO_ATTRIBUTES
-- Performing Test HAVE_C_WNO_ATTRIBUTES - Success
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE
-- Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE - Success
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- libjpeg-turbo: VERSION = 2.1.2, BUILD = opencv-4.5.5-libjpeg-turbo
-- Check size of size_t
CMake Error at /opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/CheckTypeSize.cmake:148 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CheckTypeSize/SIZEOF_SIZE_T.bin'
Recorded try_compile output location doesn't exist:
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-nNocVq/Release/cmTC_a044c.app/cmTC_a044c
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/CheckTypeSize.cmake:278 (__check_type_size_impl)
3rdparty/libjpeg-turbo/CMakeLists.txt:25 (check_type_size)
-- Check size of unsigned long
CMake Error at /opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/CheckTypeSize.cmake:148 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CheckTypeSize/SIZEOF_UNSIGNED_LONG.bin'
Recorded try_compile output location doesn't exist:
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-AD0Xlk/Release/cmTC_93baf.app/cmTC_93baf
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/CheckTypeSize.cmake:278 (__check_type_size_impl)
3rdparty/libjpeg-turbo/CMakeLists.txt:26 (check_type_size)
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Performing Test HAVE_C_WNO_CAST_ALIGN
-- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Success
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- ADE: Download: v0.1.1f.zip
-- Processing WORLD modules...
-- module opencv_core...
-- Allocator metrics storage type: 'int'
-- module opencv_flann...
-- module opencv_imgproc...
-- module opencv_ml...
-- module opencv_photo...
-- module opencv_dnn...
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /Users/my_folder/opencv-4.5.5/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out ocl4dnn source code
-- opencv_dnn: filter out cuda4dnn source code
-- module opencv_features2d...
-- module opencv_imgcodecs...
-- module opencv_videoio...
-- module opencv_calib3d...
-- module opencv_gapi...
-- module opencv_highgui...
-- highgui: using builtin backend: NONE
-- module opencv_objdetect...
-- module opencv_stitching...
-- Processing WORLD modules... DONE
-- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- Performing Test HAVE_CXX_FOBJC_EXCEPTIONS
-- Performing Test HAVE_CXX_FOBJC_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
--
-- General configuration for OpenCV 4.5.5 =====================================
-- Version control: e7d60fe-dirty
--
-- Platform:
-- Timestamp: 2022-12-19T13:58:59Z
-- Host: Darwin 22.2.0 arm64
-- Target: iOS 12.0 arm64
-- CMake: 3.25.1
-- CMake generator: Xcode
-- CMake build tool: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/xcodebuild_wrapper
-- Xcode: 14.2
-- Configuration: Debug Release
--
-- CPU/HW features:
-- Baseline: NEON FP16
-- requested: DETECT
--
-- C/C++:
-- Built as dynamic libs?: NO
-- C++ standard: 11
-- C++ Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ (ver 14.0.0.14000029)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO
-- Precompiled headers: NO
-- Extra dependencies: -framework UIKit -framework Accelerate -framework CoreGraphics -framework QuartzCore
-- 3rdparty dependencies: libprotobuf libjpeg-turbo libpng zlib ade quirc
--
-- OpenCV modules:
-- To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objc objdetect photo stitching videoio world
-- Disabled: video
-- Disabled by dependency: -
-- Unavailable: java python2 python3 ts
-- Applications: -
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI:
--
-- Media I/O:
-- ZLib: build (ver 1.2.11)
-- JPEG: build-libjpeg-turbo (ver 2.1.2-62)
-- PNG: build (ver 1.6.37)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
-- AVFoundation: YES
-- iOS capture: YES
--
-- Parallel framework: GCD
--
-- Trace: YES (built-in)
--
-- Other third-party libraries:
-- Custom HAL: NO
-- Protobuf: build (3.19.1)
--
-- Python (for build): NO
--
-- Objective-C wrappers: YES
--
-- Install to: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/install
-- -----------------------------------------------------------------
--
-- Configuring incomplete, errors occurred!
See also "/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeOutput.log".
See also "/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeError.log".
============================================================
ERROR: Command '['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DOPENCV_INCLUDE_INSTALL_PATH=include', '-DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty', '-DFRAMEWORK_NAME=opencv2', '-DBUILD_opencv_video=OFF', '-DWITH_WEBP=OFF', '-DIOS_ARCH=arm64', '-DCMAKE_TOOLCHAIN_FILE=/Users/my_folder/opencv-4.5.5/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '/Users/my_folder/opencv-4.5.5']' returned non-zero exit status 1.
============================================================
Traceback (most recent call last):
File "/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py", line 181, in build
self._build(outdir)
File "/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py", line 139, in _build
self.buildOne(target[0], target[1], main_build_dir, cmake_flags)
File "/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py", line 306, in buildOne
execute(cmakecmd, cwd = builddir)
File "/Users/my_folder/opencv-4.5.5/platforms/apple/cv_build_utils.py", line 13, in execute
retcode = check_call(cmd, cwd = cwd)
File "/Users/my_user/.pyenv/versions/3.10.9/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DOPENCV_INCLUDE_INSTALL_PATH=include', '-DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty', '-DFRAMEWORK_NAME=opencv2', '-DBUILD_opencv_video=OFF', '-DWITH_WEBP=OFF', '-DIOS_ARCH=arm64', '-DCMAKE_TOOLCHAIN_FILE=/Users/my_folder/opencv-4.5.5/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '/Users/my_folder/opencv-4.5.5']' returned non-zero exit status 1.
============================================================
ERROR: Command '['python3', '/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py', 'opencv-4.5.5-xcframework/iphoneos', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', '--without', 'video', '--disable-bitcode', '--disable-swift', '--disable', 'WEBP', '--iphoneos_deployment_target', '12.0']' returned non-zero exit status 1.
============================================================
Traceback (most recent call last):
File "/Users/my_folder/opencv-4.5.5/platforms/apple/build_xcframework.py", line 87, in <module>
execute(command, cwd=os.getcwd())
File "/Users/my_folder/opencv-4.5.5/platforms/apple/cv_build_utils.py", line 13, in execute
retcode = check_call(cmd, cwd = cwd)
File "/Users/my_user/.pyenv/versions/3.10.9/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python3', '/Users/my_folder/opencv-4.5.5/platforms/ios/build_framework.py', 'opencv-4.5.5-xcframework/iphoneos', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', '--without', 'video', '--disable-bitcode', '--disable-swift', '--disable', 'WEBP', '--iphoneos_deployment_target', '12.0']' returned non-zero exit status 1.
CMakeError.log :
Compilation failed:
source file: '/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/src.cxx'
check option: ''
===== BUILD LOG =====
Change Dir: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/xcodebuild_wrapper -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_6d4c5 -parallelizeTargets -configuration Release -hideShellScriptEnvironment && Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild IPHONEOS_DEPLOYMENT_TARGET=12.0 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO ARCHS=arm64 -sdk iphoneos -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_6d4c5 -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
IPHONEOS_DEPLOYMENT_TARGET = 12.0
SDKROOT = iphoneos16.2
note: Using codesigning identity override:
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: c09037c4ec36f4b1d3eb38ae458b425a
Build description path: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/XCBuildData/c09037c4ec36f4b1d3eb38ae458b425a-desc.xcbuild
note: Building targets in dependency order
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/EagerLinkingTBDs
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/EagerLinkingTBDs
MkDir /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app (in target 'cmTC_6d4c5' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp
/bin/mkdir -p /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app
ProcessInfoPlistFile /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app/Info.plist /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_6d4c5.dir/Info.plist (in target 'cmTC_6d4c5' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp
builtin-infoPlistUtility /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_6d4c5.dir/Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -requiredArchitecture arm64 -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app/Info.plist
WriteAuxiliaryFile /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/cmTC_6d4c5.LinkFileList (in target 'cmTC_6d4c5' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp
write-file /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/cmTC_6d4c5.LinkFileList
CompileC /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/src.o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/src.cxx normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_6d4c5' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target arm64-apple-ios12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/include -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/DerivedSources-normal/arm64 -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/DerivedSources/arm64 -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/DerivedSources -F/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug -fPIE -std\=c++11 -MMD -MT dependencies -MF /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/src.d --serialize-diagnostics /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/src.dia -c /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/src.cxx -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/src.o
Ld /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app/cmTC_6d4c5 normal (in target 'cmTC_6d4c5' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk -L/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/EagerLinkingTBDs -L/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug -F/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/EagerLinkingTBDs -F/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug -filelist /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/cmTC_6d4c5.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/cmTC_6d4c5_lto.o -Xlinker -no_deduplicate -Wl,--as-needed -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/build/cmTC_6d4c5.build/Debug-iphoneos/Objects-normal/arm64/cmTC_6d4c5_dependency_info.dat -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app/cmTC_6d4c5
ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeTmp/Debug/cmTC_6d4c5.app/cmTC_6d4c5 normal (in target 'cmTC_6d4c5' from project 'CMAKE_TRY_COMPILE')
(1 failure)
===== END =====
Determining if the include file malloc.h exists failed with the following output:
Change Dir: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi
Run Build Command(s):/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/xcodebuild_wrapper -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_c1dbd -parallelizeTargets -configuration Release -hideShellScriptEnvironment && Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild IPHONEOS_DEPLOYMENT_TARGET=12.0 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO ARCHS=arm64 -sdk iphoneos -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_c1dbd -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
IPHONEOS_DEPLOYMENT_TARGET = 12.0
SDKROOT = iphoneos16.2
note: Using codesigning identity override:
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: 61269b0a12d49ace43b58ea3df24a85c
Build description path: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/XCBuildData/61269b0a12d49ace43b58ea3df24a85c-desc.xcbuild
note: Building targets in dependency order
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/EagerLinkingTBDs
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/EagerLinkingTBDs
MkDir /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug/cmTC_c1dbd.app (in target 'cmTC_c1dbd' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi
/bin/mkdir -p /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug/cmTC_c1dbd.app
ProcessInfoPlistFile /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug/cmTC_c1dbd.app/Info.plist /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CMakeFiles/cmTC_c1dbd.dir/Info.plist (in target 'cmTC_c1dbd' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi
builtin-infoPlistUtility /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CMakeFiles/cmTC_c1dbd.dir/Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug/cmTC_c1dbd.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -requiredArchitecture arm64 -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug/cmTC_c1dbd.app/Info.plist
WriteAuxiliaryFile /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/cmTC_c1dbd.LinkFileList (in target 'cmTC_c1dbd' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi
write-file /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/cmTC_c1dbd.LinkFileList
CompileC /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/CheckIncludeFile.o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CheckIncludeFile.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_c1dbd' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target arm64-apple-ios12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug/include -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/DerivedSources-normal/arm64 -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/DerivedSources/arm64 -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/DerivedSources -F/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/Debug -fsigned-char -W -Wall -Werror\=return-type -Werror\=non-virtual-dtor -Werror\=address -Werror\=sequence-point -Wformat -Werror\=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility\=hidden -fvisibility-inlines-hidden -fPIE -MMD -MT dependencies -MF /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/CheckIncludeFile.d --serialize-diagnostics /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/CheckIncludeFile.dia -c /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CheckIncludeFile.c -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/CheckIncludeFile.o
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CheckIncludeFile.c:1:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/build/cmTC_c1dbd.build/Debug-iphoneos/Objects-normal/arm64/CheckIncludeFile.o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-sLAbPi/CheckIncludeFile.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_c1dbd' from project 'CMAKE_TRY_COMPILE')
(1 failure)
Determining size of off64_t failed with the following output:
Change Dir: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx
Run Build Command(s):/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/xcodebuild_wrapper -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_f1770 -parallelizeTargets -configuration Release -hideShellScriptEnvironment && Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild IPHONEOS_DEPLOYMENT_TARGET=12.0 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO ARCHS=arm64 -sdk iphoneos -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_f1770 -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
IPHONEOS_DEPLOYMENT_TARGET = 12.0
SDKROOT = iphoneos16.2
note: Using codesigning identity override:
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: 7d38c4263add7b0834c3e4edcd702ccb
Build description path: /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/XCBuildData/7d38c4263add7b0834c3e4edcd702ccb-desc.xcbuild
note: Building targets in dependency order
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug
CreateBuildDirectory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/EagerLinkingTBDs
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/CMAKE_TRY_COMPILE.xcodeproj
builtin-create-build-directory /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/EagerLinkingTBDs
MkDir /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug/cmTC_f1770.app (in target 'cmTC_f1770' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx
/bin/mkdir -p /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug/cmTC_f1770.app
ProcessInfoPlistFile /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug/cmTC_f1770.app/Info.plist /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/CMakeFiles/cmTC_f1770.dir/Info.plist (in target 'cmTC_f1770' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx
builtin-infoPlistUtility /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/CMakeFiles/cmTC_f1770.dir/Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug/cmTC_f1770.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -requiredArchitecture arm64 -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug/cmTC_f1770.app/Info.plist
CompileC /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/OFF64_T.o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_f1770' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target arm64-apple-ios12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug/include -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/DerivedSources-normal/arm64 -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/DerivedSources/arm64 -I/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/DerivedSources -F/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/Debug -fsigned-char -W -Wall -Werror\=return-type -Werror\=non-virtual-dtor -Werror\=address -Werror\=sequence-point -Wformat -Werror\=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility\=hidden -fvisibility-inlines-hidden -fPIE -MMD -MT dependencies -MF /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/OFF64_T.d --serialize-diagnostics /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/OFF64_T.dia -c /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c -o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/OFF64_T.o
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:29:12: error: use of undeclared identifier 'off64_t'
('0' + ((SIZE / 10000)%10)),
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:27:22: note: expanded from macro 'SIZE'
#define SIZE (sizeof(off64_t))
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:30:12: error: use of undeclared identifier 'off64_t'
('0' + ((SIZE / 1000)%10)),
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:27:22: note: expanded from macro 'SIZE'
#define SIZE (sizeof(off64_t))
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:31:12: error: use of undeclared identifier 'off64_t'
('0' + ((SIZE / 100)%10)),
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:27:22: note: expanded from macro 'SIZE'
#define SIZE (sizeof(off64_t))
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:32:12: error: use of undeclared identifier 'off64_t'
('0' + ((SIZE / 10)%10)),
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:27:22: note: expanded from macro 'SIZE'
#define SIZE (sizeof(off64_t))
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:33:12: error: use of undeclared identifier 'off64_t'
('0' + (SIZE % 10)),
^
/Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c:27:22: note: expanded from macro 'SIZE'
#define SIZE (sizeof(off64_t))
^
5 errors generated.
WriteAuxiliaryFile /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/cmTC_f1770.LinkFileList (in target 'cmTC_f1770' from project 'CMAKE_TRY_COMPILE')
cd /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx
write-file /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/cmTC_f1770.LinkFileList
** BUILD FAILED **
The following build commands failed:
CompileC /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/build/cmTC_f1770.build/Debug-iphoneos/Objects-normal/arm64/OFF64_T.o /Users/my_folder/opencv-4.5.5-xcframework/iphoneos/build/build-arm64-iphoneos/CMakeFiles/CMakeScratch/TryCompile-DfIigx/OFF64_T.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_f1770' from project 'CMAKE_TRY_COMPILE')
(1 failure)
OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__PPC64__)
# define KEY '_','_','P','P','C','6','4','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__PPC__)
# define KEY '_','_','P','P','C','_','_'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif
#define SIZE (sizeof(off64_t))
static char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Workaround: downgrade to cmake version 3.24.3