The same code compiled 3 years ago,But now it fails
opencv compilation code: python3 build_framework.py ios –without calib3d –without cudaarithm –without cudabgsegm –without cudacodec –without cudafeatures2d –without cudafilters –without cudaimgproc –without cudalegacy –without cudaobjdetect –without cudaoptflow –without cudastereo –without cudawarping –without cudev –without features2d –without dnn –without flann –without java –without js –without ml –without objdetect –without photo –without python –without shape –without stitching –without superres –without ts –without videoio –without videostab –without viz –without world
At present
mac os: 14.2.1
Xcode: 15.3
cmake: 3.25.0
python: 3.9.6
In file included from /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/local/include/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/memory:884:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/new:399:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/exception:94:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/type_traits:456:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__type_traits/is_compound.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__type_traits/is_fundamental.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error:
use of undeclared identifier 'nullptr_t'
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^
In file included from /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/local/include/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/memory:884:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/new:399:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/exception:94:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/type_traits:508:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/cstdint:149:5: error:
<cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. This usually means that your header search paths are not configured
properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler
flags that make that not be the case.
# error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.
^
In file included from /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/local/include/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/memory:898:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__functional/hash.h:28:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/cstring:66:5: error:
<cstring> tried including <string.h> but didn't find libc++'s <string.h> header. This usually means that your header search paths are not configured
properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler
flags that make that not be the case.
# error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header.
^
In file included from /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/local/include/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/memory:898:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:191:32: error:
member 'nullptr_t' declared as a template
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:191:42: error:
expected ';' at end of declaration list
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:268:81: error:
unknown type name 'nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:389:32: error:
member 'nullptr_t' declared as a template
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:389:42: error:
expected ';' at end of declaration list
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:465:81: error:
unknown type name 'nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:503:70: error:
unknown type name 'nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 void reset(nullptr_t = nullptr) _NOEXCEPT {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:503:80: error:
cannot initialize a parameter of type 'int' with an rvalue of type 'std::nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 void reset(nullptr_t = nullptr) _NOEXCEPT {
^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:503:80: note:
passing argument to parameter here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:576:45: error:
unknown type name 'nullptr_t'
operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:584:12: error:
unknown type name 'nullptr_t'
operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
CompileC /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.o /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libprotobuf' from project 'OpenCV')
cd /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /var/folders/85/s9n7p_6n3w72p1_l2tdf0jch0000gq/C/com.apple.DeveloperTools/15.3-15E204a/Xcode/SDKStatCaches.noindex/iphoneos17.4-21E210-99a79c02cfa501706f5b564e46d84afe.sdkstatcache -fmessage-length=159 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -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 -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -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 -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-deprecated-enum-enum-conversion -Wno-deprecated-anon-enum-enum-conversion -fdiagnostics-show-option -Wno-semicolon-before-method-body -Wno-deprecated -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef -Wno-tautological-undefined-compare -Wno-ignored-qualifiers -Wno-extra -Wno-unused-function -Wno-unused-const-variable -Wno-shorten-64-to-32 -Wno-invalid-offsetof -Wno-enum-compare-switch -Wno-suggest-override -Wno-inconsistent-missing-override -Wno-implicit-fallthrough -Wno-array-bounds @/Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -MMD -MT dependencies -MF /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.d --serialize-diagnostics /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.dia -c /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc -o /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.o
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'OpenCV')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'OpenCV')
** BUILD FAILED **
The following build commands failed:
CompileC /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/wire_format_lite.o /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/wire_format_lite.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libprotobuf' from project 'OpenCV')
CompileC /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/unknown_field_set.o /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/unknown_field_set.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libprotobuf' from project 'OpenCV')
CompileC /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/zero_copy_stream_impl_lite.o /Users/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libprotobuf' from project 'OpenCV')
(3 failures)
============================================================
ERROR: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=12.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '8', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65.
============================================================
cmake version dropped from 3.28.2 to 3.25.0
Setting up c++11
Set ln-s /usr/local/bin/python3/usr/local/bin/python