cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.39k stars 911 forks source link

Add openMVS to Homebrew (macOS package manager) #924

Open verhovsky opened 1 year ago

verhovsky commented 1 year ago

I tried adding openMVS to Homebrew

https://github.com/verhovsky/homebrew-core/commit/9e469ca2288a6ea5791cd890750ae943d0c95ce9

but I couldn't figure out the last step, how to get it to run xcodebuild, I get this error after running brew install --build-from-source --debug --verbose openmvs with the changes in that commit:

==> xcodebuild -configuration Release SYMROOT=build -arch arm64
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release SYMROOT=build -arch arm64

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = arm64
    SYMROOT = build

Computing target dependency graph and provisioning inputs
2023-01-09 17:04:40.086 xcodebuild[30517:13608537] Error: stepSQLStatement:toCompletionWithRetry - stepping returned unhandled result=8, DB=/Users/space/Library/Caches/com.apple.dt.xcodebuild/Cache.db

Create build description
Build description signature: 07cbcbe72768976931b28e0d29214069
Build description path: /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/XCBuildData/07cbcbe72768976931b28e0d29214069-desc.xcbuild

warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
CreateBuildDirectory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.xcodeproj
    builtin-create-build-directory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build

CreateBuildDirectory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/Release
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.xcodeproj
    builtin-create-build-directory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/Release

CreateBuildDirectory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/EagerLinkingTBDs
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.xcodeproj
    builtin-create-build-directory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/EagerLinkingTBDs

CreateBuildDirectory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/bin/Release
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.xcodeproj
    builtin-create-build-directory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/bin/Release

CreateBuildDirectory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/lib/Release
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.xcodeproj
    builtin-create-build-directory /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/lib/Release

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 'OpenMVS')
WriteAuxiliaryFile /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.build/Release/ZERO_CHECK.build/Script-0981A7F106D73762FB3F8ADC.sh (in target 'ZERO_CHECK' from project 'OpenMVS')
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0
    write-file /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.build/Release/ZERO_CHECK.build/Script-0981A7F106D73762FB3F8ADC.sh

PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.build/Release/ZERO_CHECK.build/Script-0981A7F106D73762FB3F8ADC.sh (in target 'ZERO_CHECK' from project 'OpenMVS')
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0
    /bin/sh -c /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/OpenMVS.build/Release/ZERO_CHECK.build/Script-0981A7F106D73762FB3F8ADC.sh
make: `/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/CMakeFiles/cmake.check_cache' is up to date.

ProcessPCH++ /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/12818551680565275431/cmake_pch.hxx.gch /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/libs/Common/CMakeFiles/Common.dir/Release/cmake_pch.hxx normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Common' from project 'OpenMVS')
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0

    Precompile of '/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/libs/Common/CMakeFiles/Common.dir/Release/cmake_pch.hxx' required by '/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/libs/Common/Common.cpp'

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++-header -target arm64-apple-macos13.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -stdlib\=libc++ -Wno-trigraphs -fpascal-strings -O3 -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\=\"Release\" -D_LIB -D_USE_OPENMP -D_USE_OPENGL -D_USE_BOOST -D_USE_EIGEN -D_USE_NONFREE -D_USE_FAST_FLOAT2INT -D_USE_FAST_CBRT -D_USE_SSE -DBOOST_IOSTREAMS_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SERIALIZATION_NO_LIB -DBOOST_SERIALIZATION_DYN_LINK -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -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 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/lib/Release/include -I/opt/homebrew/include/eigen3 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build -isystem /opt/homebrew/Cellar/opencv/4.6.0_1/include/opencv4 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/DerivedSources-normal/arm64 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/DerivedSources/arm64 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/DerivedSources -F/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/lib/Release -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks -W -Werror\=address -Werror\=sequence-point -Wformat -Werror\=format-security -Winit-self -Wsign-promo -Wreorder -Wno-undef -Wno-switch -Wno-switch-enum -Wno-switch-default -Wno-implicit-fallthrough -Wno-comment -Wno-narrowing -Wno-attributes -Wno-ignored-attributes -Wno-enum-compare -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-result -Wno-unused-function -Wno-unused-parameter -Wno-delete-incomplete -Wno-unnamed-type-template-args -Wno-int-in-bool-context -fdiagnostics-show-option -ftemplate-backtrace-limit\=0 -pthread -fno-omit-frame-pointer -Xclang -fopenmp -DNDEBUG -DNDEBUG -std\=c++17 -c /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/libs/Common/CMakeFiles/Common.dir/Release/cmake_pch.hxx -MD -MT dependencies -MF /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/12818551680565275431/cmake_pch.hxx.d -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/lib/Release/include -I/opt/homebrew/include/eigen3 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build -isystem /opt/homebrew/Cellar/opencv/4.6.0_1/include/opencv4 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/DerivedSources-normal/arm64 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/DerivedSources/arm64 -I/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/DerivedSources -o /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/12818551680565275431/cmake_pch.hxx.gch --serialize-diagnostics /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/12818551680565275431/cmake_pch.hxx.dia
In file included from /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/libs/Common/CMakeFiles/Common.dir/Release/cmake_pch.hxx:4:
In file included from /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/libs/Common/Common.h:176:
/tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/libs/Common/Types.h:71:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.

WriteAuxiliaryFile /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/Objects-normal/arm64/Common.LinkFileList (in target 'Common' from project 'OpenMVS')
    cd /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0
    write-file /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/build/Common.build/Release/Objects-normal/arm64/Common.LinkFileList

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 'OpenMVS')
** BUILD FAILED **

The following build commands failed:
    ProcessPCH++ /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/12818551680565275431/cmake_pch.hxx.gch /tmp/openmvs-20230109-29558-105tjis/openMVS-2.1.0/build/libs/Common/CMakeFiles/Common.dir/Release/cmake_pch.hxx normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Common' from project 'OpenMVS')
(1 failure)
/opt/homebrew/Library/Homebrew/shims/shared/git --version
/opt/homebrew/Library/Homebrew/shims/shared/curl --version
/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'

I'm leaving a link here to my attempt in case someone wants to finish it. std_cmake_args can be found here.

verhovsky commented 1 year ago

I was able to build OpenMVS locally on my M1 Mac with these instructions: https://github.com/cdcseacave/openMVS/issues/921#issuecomment-1495914351

Trying to get it to work through homebrew is harder, I fixed the import errors with ChatGTP + GPT4's help

https://github.com/verhovsky/homebrew-core/commit/710a03f3f066683e56ec75ffd5a510f313ebcb03

https://github.com/verhovsky/homebrew-core/tree/openmvs

now I get this error:

WriteAuxiliaryFile /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/build/InterfaceCOLMAP.build/Release/Objects-normal/arm64/InterfaceCOLMAP.LinkFileList (in target 'InterfaceCOLMAP' from project 'OpenMVS')
    cd /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0
    write-file /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/build/InterfaceCOLMAP.build/Release/Objects-normal/arm64/InterfaceCOLMAP.LinkFileList

Ld /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/bin/Release/InterfaceCOLMAP normal (in target 'InterfaceCOLMAP' from project 'OpenMVS')
    cd /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-macos13.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -L/tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/EagerLinkingTBDs -L/tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/bin/Release -L/opt/homebrew/lib/Release -L/opt/homebrew/lib -F/tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/EagerLinkingTBDs -F/tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/bin/Release -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks -filelist /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/build/InterfaceCOLMAP.build/Release/Objects-normal/arm64/InterfaceCOLMAP.LinkFileList -Xlinker -rpath -Xlinker /opt/homebrew/lib -stdlib\=libc++ -stdlib\=libc++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/lib/Release/libMVS.a /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/lib/Release/libMath.a /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/lib/Release/libIO.a /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/lib/Release/libCommon.a /opt/homebrew/lib/libboost_iostreams-mt.dylib /opt/homebrew/lib/libboost_program_options-mt.dylib /opt/homebrew/lib/libboost_system-mt.dylib /opt/homebrew/lib/libboost_serialization-mt.dylib /opt/homebrew/lib/libopencv_gapi.4.7.0.dylib /opt/homebrew/lib/libopencv_stitching.4.7.0.dylib /opt/homebrew/lib/libopencv_alphamat.4.7.0.dylib /opt/homebrew/lib/libopencv_aruco.4.7.0.dylib /opt/homebrew/lib/libopencv_barcode.4.7.0.dylib /opt/homebrew/lib/libopencv_bgsegm.4.7.0.dylib /opt/homebrew/lib/libopencv_bioinspired.4.7.0.dylib /opt/homebrew/lib/libopencv_ccalib.4.7.0.dylib /opt/homebrew/lib/libopencv_dnn_objdetect.4.7.0.dylib /opt/homebrew/lib/libopencv_dnn_superres.4.7.0.dylib /opt/homebrew/lib/libopencv_dpm.4.7.0.dylib /opt/homebrew/lib/libopencv_face.4.7.0.dylib /opt/homebrew/lib/libopencv_freetype.4.7.0.dylib /opt/homebrew/lib/libopencv_fuzzy.4.7.0.dylib /opt/homebrew/lib/libopencv_hfs.4.7.0.dylib /opt/homebrew/lib/libopencv_img_hash.4.7.0.dylib /opt/homebrew/lib/libopencv_intensity_transform.4.7.0.dylib /opt/homebrew/lib/libopencv_line_descriptor.4.7.0.dylib /opt/homebrew/lib/libopencv_mcc.4.7.0.dylib /opt/homebrew/lib/libopencv_quality.4.7.0.dylib /opt/homebrew/lib/libopencv_rapid.4.7.0.dylib /opt/homebrew/lib/libopencv_reg.4.7.0.dylib /opt/homebrew/lib/libopencv_rgbd.4.7.0.dylib /opt/homebrew/lib/libopencv_saliency.4.7.0.dylib /opt/homebrew/lib/libopencv_sfm.4.7.0.dylib /opt/homebrew/lib/libopencv_stereo.4.7.0.dylib /opt/homebrew/lib/libopencv_structured_light.4.7.0.dylib /opt/homebrew/lib/libopencv_phase_unwrapping.4.7.0.dylib /opt/homebrew/lib/libopencv_superres.4.7.0.dylib /opt/homebrew/lib/libopencv_optflow.4.7.0.dylib /opt/homebrew/lib/libopencv_surface_matching.4.7.0.dylib /opt/homebrew/lib/libopencv_tracking.4.7.0.dylib /opt/homebrew/lib/libopencv_highgui.4.7.0.dylib /opt/homebrew/lib/libopencv_datasets.4.7.0.dylib /opt/homebrew/lib/libopencv_plot.4.7.0.dylib /opt/homebrew/lib/libopencv_text.4.7.0.dylib /opt/homebrew/lib/libopencv_videostab.4.7.0.dylib /opt/homebrew/lib/libopencv_videoio.4.7.0.dylib /opt/homebrew/lib/libopencv_viz.4.7.0.dylib /opt/homebrew/lib/libopencv_wechat_qrcode.4.7.0.dylib /opt/homebrew/lib/libopencv_xfeatures2d.4.7.0.dylib /opt/homebrew/lib/libopencv_ml.4.7.0.dylib /opt/homebrew/lib/libopencv_shape.4.7.0.dylib /opt/homebrew/lib/libopencv_ximgproc.4.7.0.dylib /opt/homebrew/lib/libopencv_video.4.7.0.dylib /opt/homebrew/lib/libopencv_xobjdetect.4.7.0.dylib /opt/homebrew/lib/libopencv_imgcodecs.4.7.0.dylib /opt/homebrew/lib/libopencv_objdetect.4.7.0.dylib /opt/homebrew/lib/libopencv_calib3d.4.7.0.dylib /opt/homebrew/lib/libopencv_dnn.4.7.0.dylib /opt/homebrew/lib/libopencv_features2d.4.7.0.dylib /opt/homebrew/lib/libopencv_flann.4.7.0.dylib /opt/homebrew/lib/libopencv_xphoto.4.7.0.dylib /opt/homebrew/lib/libopencv_photo.4.7.0.dylib /opt/homebrew/lib/libopencv_imgproc.4.7.0.dylib /opt/homebrew/lib/libopencv_core.4.7.0.dylib /opt/homebrew/lib/libpng.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/usr/lib/libz.tbd /opt/homebrew/lib/libjpeg.dylib /opt/homebrew/lib/libtiff.dylib /opt/homebrew/lib/libgmpxx.dylib /opt/homebrew/lib/libmpfr.dylib /opt/homebrew/lib/libgmp.dylib -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/build/InterfaceCOLMAP.build/Release/Objects-normal/arm64/InterfaceCOLMAP_dependency_info.dat -o /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/bin/Release/InterfaceCOLMAP
ld: warning: directory not found for option '-L/opt/homebrew/lib/Release'
Undefined symbols for architecture arm64:
  "___kmpc_critical", referenced from:
      _.omp_outlined. in libMVS.a(Scene.o)
      _.omp_outlined. in libIO.a(OBJ.o)
  "___kmpc_dispatch_init_4", referenced from:
      _.omp_outlined..68 in libMVS.a(Scene.o)
      _.omp_outlined..534 in libMVS.a(Mesh.o)
  "___kmpc_dispatch_next_4", referenced from:
      _.omp_outlined..68 in libMVS.a(Scene.o)
      _.omp_outlined..534 in libMVS.a(Mesh.o)
  "___kmpc_end_critical", referenced from:
      _.omp_outlined. in libMVS.a(Scene.o)
      _.omp_outlined. in libIO.a(OBJ.o)
  "___kmpc_flush", referenced from:
      _.omp_outlined..68 in libMVS.a(Scene.o)
  "___kmpc_for_static_fini", referenced from:
      _.omp_outlined. in libMVS.a(Scene.o)
      _.omp_outlined. in libIO.a(OBJ.o)
  "___kmpc_for_static_init_4", referenced from:
      _.omp_outlined. in libIO.a(OBJ.o)
  "___kmpc_for_static_init_8", referenced from:
      _.omp_outlined. in libMVS.a(Scene.o)
  "___kmpc_fork_call", referenced from:
      MVS::Scene::SampleMeshWithVisibility(unsigned int) in libMVS.a(Scene.o)
      MVS::Scene::ExportMeshToDepthMaps(SEACAVE::String const&) in libMVS.a(Scene.o)
      void Eigen::internal::parallelize_gemm<true, Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> >, long>(Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> > const&, long, long, long, bool) in libMVS.a(Mesh.o)
      MVS::Mesh::TransferTexture(MVS::Mesh&, unsigned int) in libMVS.a(Mesh.o)
      SEACAVE::ObjModel::MaterialLib::Save(SEACAVE::String const&, bool) const in libIO.a(OBJ.o)
  "___kmpc_global_thread_num", referenced from:
      void Eigen::internal::parallelize_gemm<true, Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> >, long>(Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> > const&, long, long, long, bool) in libMVS.a(Mesh.o)
  "___kmpc_push_num_threads", referenced from:
      void Eigen::internal::parallelize_gemm<true, Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> >, long>(Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> > const&, long, long, long, bool) in libMVS.a(Mesh.o)
  "_omp_get_max_threads", referenced from:
      void Eigen::internal::parallelize_gemm<true, Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> >, long>(Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> > const&, long, long, long, bool) in libMVS.a(Mesh.o)
      void Eigen::internal::generic_product_impl<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, 3, -1, 1, 3, -1> const> const, Eigen::Matrix<double, 3, -1, 1, 3, -1> const>, Eigen::Transpose<Eigen::Matrix<double, 3, -1, 1, 3, -1> const>, Eigen::DenseShape, Eigen::DenseShape, 8>::scaleAndAddTo<Eigen::Matrix<double, 3, 3, 0, 3, 3> >(Eigen::Matrix<double, 3, 3, 0, 3, 3>&, Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, 3, -1, 1, 3, -1> const> const, Eigen::Matrix<double, 3, -1, 1, 3, -1> const> const&, Eigen::Transpose<Eigen::Matrix<double, 3, -1, 1, 3, -1> const> const&, double const&) in libMath.a(SimilarityTransform.o)
  "_omp_get_num_threads", referenced from:
      void Eigen::internal::parallelize_gemm<true, Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> >, long>(Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 1, 1>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Transpose<Eigen::Matrix<double, -1, -1, 0, -1, -1> const>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::internal::gemm_blocking_space<1, double, double, -1, -1, 3, 1, false> > const&, long, long, long, bool) in libMVS.a(Mesh.o)
      _.omp_outlined. in libMVS.a(Mesh.o)
      Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 0, 1>::run(long, long, long, double const*, long, double const*, long, double*, long, long, double, Eigen::internal::level3_blocking<double, double>&, Eigen::internal::GemmParallelInfo<long>*) in libMVS.a(Mesh.o)
      Eigen::internal::general_matrix_matrix_product<long, double, 1, false, double, 0, false, 0, 1>::run(long, long, long, double const*, long, double const*, long, double*, long, long, double, Eigen::internal::level3_blocking<double, double>&, Eigen::internal::GemmParallelInfo<long>*) in libMath.a(SimilarityTransform.o)
  "_omp_get_thread_num", referenced from:
      _.omp_outlined. in libMVS.a(Mesh.o)
      Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 1, false, 0, 1>::run(long, long, long, double const*, long, double const*, long, double*, long, long, double, Eigen::internal::level3_blocking<double, double>&, Eigen::internal::GemmParallelInfo<long>*) in libMVS.a(Mesh.o)
      Eigen::internal::general_matrix_matrix_product<long, double, 1, false, double, 0, false, 0, 1>::run(long, long, long, double const*, long, double const*, long, double*, long, long, double, Eigen::internal::level3_blocking<double, double>&, Eigen::internal::GemmParallelInfo<long>*) in libMath.a(SimilarityTransform.o)
  "_omp_set_num_threads", referenced from:
      _main in InterfaceCOLMAP.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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 'OpenMVS')
** BUILD FAILED **

The following build commands failed:
    Ld /tmp/openmvs-20230404-8079-j3zhl3/openMVS-2.1.0/build/bin/Release/InterfaceCOLMAP normal (in target 'InterfaceCOLMAP' from project 'OpenMVS')
(1 failure)
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/git --version
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --version
/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
BuildError: Failed executing: xcodebuild -configuration Release SYMROOT=build -arch arm64