openMVG / openMVG

open Multiple View Geometry library. Basis for 3D computer vision and Structure from Motion.
Mozilla Public License 2.0
5.73k stars 1.68k forks source link

Build Error for Mac OS #1954

Closed yetiiil closed 2 years ago

yetiiil commented 3 years ago

Hello! I tried to compile openMVG on my macbook, however, i met a lot of troubles and i really have no idea what i should do, Could anyone give some suggestions?

-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- 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/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
clang detected: using std::unordered_map for Hash_Map
-- target changed from "" to "auto"
-- Detected CPU: generic
-- Performing Test check_c_compiler_flag__march_generic
-- Performing Test check_c_compiler_flag__march_generic - Failed
-- Performing Test check_cxx_compiler_flag__march_generic
-- Performing Test check_cxx_compiler_flag__march_generic - Failed
-- Performing Test check_c_compiler_flag__mno_sse2
-- Performing Test check_c_compiler_flag__mno_sse2 - Failed
-- Performing Test check_cxx_compiler_flag__mno_sse2
-- Performing Test check_cxx_compiler_flag__mno_sse2 - Failed
-- Performing Test check_c_compiler_flag__mno_sse3
-- Performing Test check_c_compiler_flag__mno_sse3 - Failed
-- Performing Test check_cxx_compiler_flag__mno_sse3
-- Performing Test check_cxx_compiler_flag__mno_sse3 - Failed
-- Performing Test check_c_compiler_flag__mno_ssse3
-- Performing Test check_c_compiler_flag__mno_ssse3 - Failed
-- Performing Test check_cxx_compiler_flag__mno_ssse3
-- Performing Test check_cxx_compiler_flag__mno_ssse3 - Failed
-- Performing Test check_c_compiler_flag__mno_sse4_1
-- Performing Test check_c_compiler_flag__mno_sse4_1 - Failed
-- Performing Test check_cxx_compiler_flag__mno_sse4_1
-- Performing Test check_cxx_compiler_flag__mno_sse4_1 - Failed
-- Performing Test check_c_compiler_flag__mno_sse4_2
-- Performing Test check_c_compiler_flag__mno_sse4_2 - Failed
-- Performing Test check_cxx_compiler_flag__mno_sse4_2
-- Performing Test check_cxx_compiler_flag__mno_sse4_2 - Failed
-- Performing Test check_c_compiler_flag__mno_sse4a
-- Performing Test check_c_compiler_flag__mno_sse4a - Failed
-- Performing Test check_cxx_compiler_flag__mno_sse4a
-- Performing Test check_cxx_compiler_flag__mno_sse4a - Failed
-- Performing Test check_c_compiler_flag__mno_avx
-- Performing Test check_c_compiler_flag__mno_avx - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx
-- Performing Test check_cxx_compiler_flag__mno_avx - Failed
-- Performing Test check_c_compiler_flag__mno_fma
-- Performing Test check_c_compiler_flag__mno_fma - Failed
-- Performing Test check_cxx_compiler_flag__mno_fma
-- Performing Test check_cxx_compiler_flag__mno_fma - Failed
-- Performing Test check_c_compiler_flag__mno_bmi2
-- Performing Test check_c_compiler_flag__mno_bmi2 - Failed
-- Performing Test check_cxx_compiler_flag__mno_bmi2
-- Performing Test check_cxx_compiler_flag__mno_bmi2 - Failed
-- Performing Test check_c_compiler_flag__mno_avx2
-- Performing Test check_c_compiler_flag__mno_avx2 - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx2
-- Performing Test check_cxx_compiler_flag__mno_avx2 - Failed
-- Performing Test check_c_compiler_flag__mno_xop
-- Performing Test check_c_compiler_flag__mno_xop - Failed
-- Performing Test check_cxx_compiler_flag__mno_xop
-- Performing Test check_cxx_compiler_flag__mno_xop - Failed
-- Performing Test check_c_compiler_flag__mno_fma4
-- Performing Test check_c_compiler_flag__mno_fma4 - Failed
-- Performing Test check_cxx_compiler_flag__mno_fma4
-- Performing Test check_cxx_compiler_flag__mno_fma4 - Failed
-- Performing Test check_c_compiler_flag__mno_avx512f
-- Performing Test check_c_compiler_flag__mno_avx512f - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512f
-- Performing Test check_cxx_compiler_flag__mno_avx512f - Failed
-- Performing Test check_c_compiler_flag__mno_avx512vl
-- Performing Test check_c_compiler_flag__mno_avx512vl - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512vl
-- Performing Test check_cxx_compiler_flag__mno_avx512vl - Failed
-- Performing Test check_c_compiler_flag__mno_avx512pf
-- Performing Test check_c_compiler_flag__mno_avx512pf - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512pf
-- Performing Test check_cxx_compiler_flag__mno_avx512pf - Failed
-- Performing Test check_c_compiler_flag__mno_avx512er
-- Performing Test check_c_compiler_flag__mno_avx512er - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512er
-- Performing Test check_cxx_compiler_flag__mno_avx512er - Failed
-- Performing Test check_c_compiler_flag__mno_avx512cd
-- Performing Test check_c_compiler_flag__mno_avx512cd - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512cd
-- Performing Test check_cxx_compiler_flag__mno_avx512cd - Failed
-- Performing Test check_c_compiler_flag__mno_avx512dq
-- Performing Test check_c_compiler_flag__mno_avx512dq - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512dq
-- Performing Test check_cxx_compiler_flag__mno_avx512dq - Failed
-- Performing Test check_c_compiler_flag__mno_avx512bw
-- Performing Test check_c_compiler_flag__mno_avx512bw - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512bw
-- Performing Test check_cxx_compiler_flag__mno_avx512bw - Failed
-- Performing Test check_c_compiler_flag__mno_avx512ifma
-- Performing Test check_c_compiler_flag__mno_avx512ifma - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512ifma
-- Performing Test check_cxx_compiler_flag__mno_avx512ifma - Failed
-- Performing Test check_c_compiler_flag__mno_avx512vbmi
-- Performing Test check_c_compiler_flag__mno_avx512vbmi - Failed
-- Performing Test check_cxx_compiler_flag__mno_avx512vbmi
-- Performing Test check_cxx_compiler_flag__mno_avx512vbmi - Failed
-- Checking for C++11 compiler
-- Checking for C++11 compiler - available
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
-- Eigen 3.4.0 found (include: /Users/xiao/openMVG/src/third_party/eigen)
-- Flann 1.8.4 found (include: /Users/xiao/openMVG/src/third_party/flann/src/cpp/flann)
-- CoinUtils 2.10.13 found (include: /Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src)
-- Clp 1.16.10 found (include: /Users/xiao/openMVG/src/dependencies/osi_clp/Clp/src)
-- You are attempting to build without Osi. Please use cmake variable -DOSI_INCLUDE_DIR_HINTS:STRING="PATH" or OSI_INCLUDE_DIR_HINTS env. variable to a valid Osi path. Or install last Osi version.
CMake Deprecation Warning at dependencies/osi_clp/CMakeLists.txt:6 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Lemon  found (include: /Users/xiao/openMVG/src/third_party/lemon/lemon)
CMake Deprecation Warning at third_party/lemon/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Found PythonInterp: /opt/miniconda3/bin/python (found version "3.9.5") 
-- Could NOT find Wget (missing: WGET_EXECUTABLE) 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found Ghostscript: /usr/local/bin/gs  
-- Could NOT find COIN (missing: COIN_INCLUDE_DIR COIN_CBC_LIBRARY COIN_CBC_SOLVER_LIBRARY COIN_CGL_LIBRARY COIN_CLP_LIBRARY COIN_COIN_UTILS_LIBRARY COIN_OSI_LIBRARY COIN_OSI_CBC_LIBRARY COIN_OSI_CLP_LIBRARY) 
-- 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 long long
-- Check size of long long - done
CMake Deprecation Warning at third_party/vectorGraphics/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at third_party/ceres-solver/CMakeLists.txt:32 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at third_party/ceres-solver/CMakeLists.txt:33 (cmake_policy):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

   ===============================================================
   Ceres-solver configuration.
   ===============================================================
-- Detected Ceres version: 1.13.0 from /Users/xiao/openMVG/src/third_party/ceres-solver/include/ceres/version.h
-- Eigen 3.4.0 found (include: /Users/xiao/openMVG/src/third_party/eigen)
-- Found Eigen version 3.4.0: /Users/xiao/openMVG/src/third_party/eigen

   ===============================================================
   Disabling the use of Eigen as a sparse linear algebra library.
   This does not affect the covariance estimation algorithm 
   which can still use the EIGEN_SPARSE_QR algorithm.
   ===============================================================

-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found LAPACK library: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Accelerate.framework;-lm;-ldl
-- Found BLAS library: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Accelerate.framework
-- Building without SuiteSparse.
-- Found CXSparse in: ../cxsparse/Include, building with CXSparse.
-- Google Flags disabled; no tests or tools will be built!
-- Compiling minimal glog substitute into Ceres.
-- Using minimal glog substitute (include): internal/ceres/miniglog
-- Failed to find OpenMP, disabling. This is expected on Clang < 3.8, and at least Xcode <= 7.
-- Performing Test COMPILER_HAS_CXX11_FLAG
-- Performing Test COMPILER_HAS_CXX11_FLAG - Success
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - found
-- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE
-- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE - Success
-- Found unordered_map/set in std namespace.
-- Looking for C++ include memory
-- Looking for C++ include memory - found
-- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE
-- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE - Success
-- Found shared_ptr in std namespace using <memory> header.
-- Building Ceres as a static library.
-- Performing Test HAVE_RETURN_TYPE_C_LINKAGE
-- Performing Test HAVE_RETURN_TYPE_C_LINKAGE - Success
-- Creating configured Ceres config.h output directory: /Users/xiao/openMVG_Build/third_party/ceres-solver/config/ceres/internal
-- Enabling CERES_NO_SUITESPARSE in Ceres config.h
-- Enabling CERES_NO_THREADS in Ceres config.h
-- Enabling CERES_STD_UNORDERED_MAP in Ceres config.h
-- Do not build any example.
   ===============================================================
   Ceres-solver configuration end.
   ===============================================================
CMake Deprecation Warning at third_party/flann/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
CMake Warning at third_party/flann/CMakeLists.txt:75 (message):
  OpenMP NOT found

CMake Deprecation Warning at third_party/eigen/CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- 
-- Configured Eigen 3.4.0
-- 
** Found Qt5, GUI modules will be build
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE) 
Sphinx need to be installed to generate the sphinx documentation
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Doxygen need to be installed to generate the doxygen documentation

** OpenMVG version: 2.0.0
** Build Shared libs: OFF
** Build OpenMVG tests: OFF
** Build OpenMVG softwares: ON
** Build OpenMVG GUI softwares: ON
** Build OpenMVG documentation: ON
** Build OpenMVG samples applications: ON
** Build OpenMVG openGL examples: OFF
** Enable code coverage generation: OFF
** Enable OpenMP parallelization: ON
** Build OpenCV+OpenMVG samples programs: OFF
** Use OpenCV SIFT features: OFF

-- CEREAL: (internal)
-- EIGEN: 3.4.0 (internal)
-- CERES: 1.13.0 (internal)
-- FLANN: 1.8.4 (internal)
-- LIBTIFF: 4.3.0 (external)
-- LIBPNG: 1.6.37 (external)
-- LIBJPEG (external)
-- CLP: 1.16.10 (internal)
-- COINUTILS: 2.10.13 (internal)
-- OSI:  (internal)
-- LEMON: 1.3 (internal)

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xiao/openMVG_Build

[  0%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinAlloc.cpp.o
[  0%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinBuild.cpp.o
[  0%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinDenseFactorization.cpp.o
[  0%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinDenseVector.cpp.o
[  1%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinError.cpp.o
[  1%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinFactorization1.cpp.o
[  1%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinFactorization2.cpp.o
[  1%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinFactorization3.cpp.o
[  1%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinFactorization4.cpp.o
[  1%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinFileIO.cpp.o
[  2%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinFinite.cpp.o
[  2%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinIndexedVector.cpp.o
[  2%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinLpIO.cpp.o
[  2%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinMessage.cpp.o
[  2%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinMessageHandler.cpp.o
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinMessageHandler.cpp:834:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
            sprintf(messageOut_,format_+2);
                                ^~~~~~~~~
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinMessageHandler.cpp:834:26: note: treat the string as an argument to avoid this
            sprintf(messageOut_,format_+2);
                                ^
                                "%s", 
1 warning generated.
[  2%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinModel.cpp.o
[  3%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinModelUseful.cpp.o
[  3%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinModelUseful2.cpp.o
[  3%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinMpsIO.cpp.o
[  3%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinOslFactorization.cpp.o
[  3%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinOslFactorization2.cpp.o
[  3%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinOslFactorization3.cpp.o
[  4%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPackedMatrix.cpp.o
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinPackedMatrix.cpp:1497:8: warning: 'bind2nd<std::plus<int>, int>' is deprecated [-Wdeprecated-declarations]
                std::bind2nd(std::plus<int>(), minorDim_));
                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1089:1: note: 'bind2nd<std::plus<int>, int>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
[  4%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPackedVector.cpp.o
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinPackedVector.cpp:288:10: warning: 'bind2nd<std::plus<double>, double>' is deprecated [-Wdeprecated-declarations]
                  std::bind2nd(std::plus<double>(), value) );
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1089:1: note: 'bind2nd<std::plus<double>, double>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinPackedVector.cpp:297:10: warning: 'bind2nd<std::minus<double>, double>' is deprecated [-Wdeprecated-declarations]
                  std::bind2nd(std::minus<double>(), value) );
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1089:1: note: 'bind2nd<std::minus<double>, double>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinPackedVector.cpp:306:10: warning: 'bind2nd<std::multiplies<double>, double>' is deprecated [-Wdeprecated-declarations]
                  std::bind2nd(std::multiplies<double>(), value) );
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1089:1: note: 'bind2nd<std::multiplies<double>, double>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
/Users/xiao/openMVG/src/dependencies/osi_clp/CoinUtils/src/CoinPackedVector.cpp:315:10: warning: 'bind2nd<std::divides<double>, double>' is deprecated [-Wdeprecated-declarations]
                  std::bind2nd(std::divides<double>(), value) );
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1089:1: note: 'bind2nd<std::divides<double>, double>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
4 warnings generated.
[  4%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPackedVectorBase.cpp.o
[  4%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinParam.cpp.o
[  4%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinParamUtils.cpp.o
[  4%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPostsolveMatrix.cpp.o
[  5%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPrePostsolveMatrix.cpp.o
[  5%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveDoubleton.cpp.o
[  5%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveDual.cpp.o
[  5%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveDupcol.cpp.o
[  5%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveEmpty.cpp.o
[  5%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveFixed.cpp.o
[  6%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveForcing.cpp.o
[  6%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveHelperFunctions.cpp.o
[  6%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveImpliedFree.cpp.o
[  6%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveIsolated.cpp.o
[  6%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveMatrix.cpp.o
[  6%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveMonitor.cpp.o
[  7%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolvePsdebug.cpp.o
[  7%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveSingleton.cpp.o
[  7%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveSubst.cpp.o
[  7%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveTighten.cpp.o
[  7%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveTripleton.cpp.o
[  7%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveUseless.cpp.o
[  8%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinPresolveZeros.cpp.o
[  8%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinRational.cpp.o
[  8%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinSearchTree.cpp.o
[  8%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinShallowPackedVector.cpp.o
[  8%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinSimpFactorization.cpp.o
[  8%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinSnapshot.cpp.o
[  9%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinStructuredModel.cpp.o
[  9%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinWarmStartBasis.cpp.o
[  9%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinWarmStartDual.cpp.o
[  9%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinWarmStartPrimalDual.cpp.o
[  9%] Building CXX object dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinWarmStartVector.cpp.o
[  9%] Linking CXX static library ../../../../Darwin-arm64-RELEASE/liblib_CoinUtils.a
[  9%] Built target lib_CoinUtils
[ 10%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiAuxInfo.cpp.o
[ 10%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiBranchingObject.cpp.o
[ 10%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiChooseVariable.cpp.o
[ 10%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiColCut.cpp.o
[ 10%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiCut.cpp.o
[ 10%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiCuts.cpp.o
[ 11%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiNames.cpp.o
[ 11%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiPresolve.cpp.o
[ 11%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiRowCut.cpp.o
[ 11%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiRowCutDebugger.cpp.o
[ 11%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiSolverBranch.cpp.o
[ 11%] Building CXX object dependencies/osi_clp/Osi/src/Osi/CMakeFiles/lib_Osi.dir/OsiSolverInterface.cpp.o
[ 12%] Linking CXX static library ../../../../../Darwin-arm64-RELEASE/liblib_Osi.a
[ 12%] Built target lib_Osi
[ 12%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/CbcOrClpParam.cpp.o
[ 12%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpCholeskyBase.cpp.o
/Users/xiao/openMVG/src/dependencies/osi_clp/Clp/src/ClpCholeskyBase.cpp:2926:39: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
               if (numberRowsDropped_ && 0) {
                                      ^  ~
/Users/xiao/openMVG/src/dependencies/osi_clp/Clp/src/ClpCholeskyBase.cpp:2926:39: note: use '&' for a bitwise operation
               if (numberRowsDropped_ && 0) {
                                      ^~
                                      &
/Users/xiao/openMVG/src/dependencies/osi_clp/Clp/src/ClpCholeskyBase.cpp:2926:39: note: remove constant to silence this warning
               if (numberRowsDropped_ && 0) {
                                     ~^~~~
1 warning generated.
[ 12%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpCholeskyDense.cpp.o
[ 13%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpCholeskyTaucs.cpp.o
[ 13%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpConstraint.cpp.o
[ 13%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpConstraintLinear.cpp.o
[ 13%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpConstraintQuadratic.cpp.o
[ 13%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpDualRowDantzig.cpp.o
[ 13%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpDualRowPivot.cpp.o
[ 14%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpDualRowSteepest.cpp.o
[ 14%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpDummyMatrix.cpp.o
[ 14%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpDynamicExampleMatrix.cpp.o
[ 14%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpDynamicMatrix.cpp.o
[ 14%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpEventHandler.cpp.o
[ 14%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpFactorization.cpp.o
[ 15%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpGubDynamicMatrix.cpp.o
[ 15%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpGubMatrix.cpp.o
[ 15%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpHelperFunctions.cpp.o
[ 15%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpInterior.cpp.o
[ 15%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpLinearObjective.cpp.o
[ 15%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpLsqr.cpp.o
[ 16%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpMatrixBase.cpp.o
[ 16%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpMessage.cpp.o
[ 16%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpModel.cpp.o
[ 16%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpNetworkBasis.cpp.o
[ 16%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpNetworkMatrix.cpp.o
[ 16%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpNode.cpp.o
[ 17%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpNonLinearCost.cpp.o
[ 17%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpObjective.cpp.o
[ 17%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPackedMatrix.cpp.o
[ 17%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPdco.cpp.o
[ 17%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPdcoBase.cpp.o
[ 17%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPlusMinusOneMatrix.cpp.o
[ 18%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPredictorCorrector.cpp.o
[ 18%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPresolve.cpp.o
[ 18%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPrimalColumnDantzig.cpp.o
[ 18%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPrimalColumnPivot.cpp.o
[ 18%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpPrimalColumnSteepest.cpp.o
[ 18%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpQuadraticObjective.cpp.o
[ 19%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpSimplex.cpp.o
[ 19%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpSimplexDual.cpp.o
[ 19%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpSimplexNonlinear.cpp.o
[ 19%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpSimplexOther.cpp.o
[ 19%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpSimplexPrimal.cpp.o
[ 19%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/ClpSolve.cpp.o
[ 20%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/Clp_C_Interface.cpp.o
[ 20%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/IdiSolve.cpp.o
[ 20%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/Idiot.cpp.o
[ 20%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/MyEventHandler.cpp.o
[ 20%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/MyMessageHandler.cpp.o
[ 20%] Building CXX object dependencies/osi_clp/Clp/src/CMakeFiles/lib_clp.dir/unitTest.cpp.o
[ 21%] Linking CXX static library ../../../../Darwin-arm64-RELEASE/liblib_clp.a
[ 21%] Built target lib_clp
[ 21%] Building CXX object dependencies/osi_clp/Clp/src/OsiClp/CMakeFiles/lib_OsiClpSolver.dir/OsiClpSolverInterface.cpp.o
[ 21%] Linking CXX static library ../../../../../Darwin-arm64-RELEASE/liblib_OsiClpSolver.a
[ 21%] Built target lib_OsiClpSolver
[ 22%] Building CXX object third_party/stlplus3/CMakeFiles/openMVG_stlplus.dir/filesystemSimplified/file_system.cpp.o
[ 22%] Building CXX object third_party/stlplus3/CMakeFiles/openMVG_stlplus.dir/filesystemSimplified/portability_fixes.cpp.o
[ 22%] Building CXX object third_party/stlplus3/CMakeFiles/openMVG_stlplus.dir/filesystemSimplified/wildcard.cpp.o
[ 22%] Linking CXX static library ../../Darwin-arm64-RELEASE/libopenMVG_stlplus.a
[ 22%] Built target openMVG_stlplus
[ 22%] Building CXX object third_party/vectorGraphics/CMakeFiles/main_svgSample.dir/main.cpp.o
[ 22%] Linking CXX executable ../../Darwin-arm64-RELEASE/main_svgSample
[ 22%] Built target main_svgSample
[ 22%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_add.c.o
[ 23%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_amd.c.o
[ 23%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_chol.c.o
[ 23%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_cholsol.c.o
[ 23%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_compress.c.o
[ 23%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_convert.c.o
[ 23%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_counts.c.o
[ 24%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_cumsum.c.o
[ 24%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_dfs.c.o
[ 24%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_dmperm.c.o
[ 24%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_droptol.c.o
[ 24%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_dropzeros.c.o
[ 24%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_dupl.c.o
[ 25%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_entry.c.o
[ 25%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_ereach.c.o
[ 25%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_etree.c.o
[ 25%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_fkeep.c.o
[ 25%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_gaxpy.c.o
[ 25%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_happly.c.o
[ 26%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_house.c.o
[ 26%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_ipvec.c.o
[ 26%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_leaf.c.o
[ 26%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_load.c.o
[ 26%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_lsolve.c.o
[ 26%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_ltsolve.c.o
[ 27%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_lu.c.o
[ 27%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_lusol.c.o
[ 27%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_malloc.c.o
[ 27%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_maxtrans.c.o
[ 27%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_multiply.c.o
[ 27%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_norm.c.o
[ 28%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_permute.c.o
[ 28%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_pinv.c.o
[ 28%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_post.c.o
[ 28%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_print.c.o
[ 28%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_pvec.c.o
[ 28%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_qr.c.o
[ 29%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_qrsol.c.o
[ 29%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_randperm.c.o
[ 29%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_reach.c.o
[ 29%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_scatter.c.o
[ 29%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_scc.c.o
[ 29%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_schol.c.o
[ 30%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_spsolve.c.o
[ 30%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_sqr.c.o
[ 30%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_symperm.c.o
[ 30%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_tdfs.c.o
[ 30%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_transpose.c.o
[ 30%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_updown.c.o
[ 31%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_usolve.c.o
[ 31%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_util.c.o
[ 31%] Building C object third_party/cxsparse/CMakeFiles/openMVG_cxsparse.dir/Source/cs_utsolve.c.o
[ 31%] Linking C static library ../../Darwin-arm64-RELEASE/libopenMVG_cxsparse.a
[ 31%] Built target openMVG_cxsparse
[ 31%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/array_utils.cc.o
[ 31%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/blas.cc.o
[ 31%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_evaluate_preparer.cc.o
[ 32%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_jacobi_preconditioner.cc.o
[ 32%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_jacobian_writer.cc.o
[ 32%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_random_access_dense_matrix.cc.o
[ 32%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_random_access_diagonal_matrix.cc.o
[ 32%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_random_access_matrix.cc.o
[ 32%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_random_access_sparse_matrix.cc.o
[ 33%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_sparse_matrix.cc.o
[ 33%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/block_structure.cc.o
[ 33%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/c_api.cc.o
[ 33%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/canonical_views_clustering.cc.o
[ 33%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/cgnr_solver.cc.o
[ 33%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/callbacks.cc.o
[ 34%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/compressed_col_sparse_matrix_utils.cc.o
[ 34%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/compressed_row_jacobian_writer.cc.o
[ 34%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/compressed_row_sparse_matrix.cc.o
[ 34%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/conditioned_cost_function.cc.o
[ 34%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/conjugate_gradients_solver.cc.o
[ 34%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/coordinate_descent_minimizer.cc.o
[ 35%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/corrector.cc.o
[ 35%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/covariance.cc.o
[ 35%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/covariance_impl.cc.o
[ 35%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/cxsparse.cc.o
[ 35%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dense_normal_cholesky_solver.cc.o
[ 35%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dense_qr_solver.cc.o
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dense_sparse_matrix.cc.o
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/detect_structure.cc.o
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dogleg_strategy.cc.o
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dynamic_compressed_row_jacobian_writer.cc.o
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dynamic_compressed_row_sparse_matrix.cc.o
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/dynamic_sparse_normal_cholesky_solver.cc.o
[ 37%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/evaluator.cc.o
[ 37%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/eigensparse.cc.o
[ 37%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/file.cc.o
[ 37%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/function_sample.cc.o
[ 37%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/gradient_checker.cc.o
[ 37%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/gradient_checking_cost_function.cc.o
[ 38%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/gradient_problem.cc.o
[ 38%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/gradient_problem_solver.cc.o
[ 38%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/implicit_schur_complement.cc.o
[ 38%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/inner_product_computer.cc.o
[ 38%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/is_close.cc.o
[ 38%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/iterative_schur_complement_solver.cc.o
[ 39%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/levenberg_marquardt_strategy.cc.o
[ 39%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/lapack.cc.o
[ 39%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/line_search.cc.o
[ 39%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/line_search_direction.cc.o
[ 39%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/line_search_minimizer.cc.o
[ 39%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/line_search_preprocessor.cc.o
[ 40%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/linear_least_squares_problems.cc.o
[ 40%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/linear_operator.cc.o
[ 40%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/linear_solver.cc.o
[ 40%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/local_parameterization.cc.o
[ 40%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/loss_function.cc.o
[ 40%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/low_rank_inverse_hessian.cc.o
[ 41%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/minimizer.cc.o
[ 41%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/normal_prior.cc.o
[ 41%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/parameter_block_ordering.cc.o
[ 41%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/partitioned_matrix_view.cc.o
[ 41%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/polynomial.cc.o
[ 41%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/preconditioner.cc.o
[ 42%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/preprocessor.cc.o
[ 42%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/problem.cc.o
[ 42%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/problem_impl.cc.o
[ 42%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/program.cc.o
[ 42%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/reorder_program.cc.o
[ 42%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/residual_block.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/residual_block_utils.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/schur_complement_solver.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/schur_eliminator.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/schur_jacobi_preconditioner.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/schur_templates.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/scratch_evaluate_preparer.cc.o
[ 43%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/single_linkage_clustering.cc.o
[ 44%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/solver.cc.o
[ 44%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/solver_utils.cc.o
[ 44%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/sparse_matrix.cc.o
[ 44%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/sparse_cholesky.cc.o
[ 44%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/sparse_normal_cholesky_solver.cc.o
[ 44%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/split.cc.o
[ 45%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/stringprintf.cc.o
[ 45%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/suitesparse.cc.o
[ 45%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/triplet_sparse_matrix.cc.o
[ 45%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/trust_region_preprocessor.cc.o
[ 45%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/trust_region_minimizer.cc.o
[ 45%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/trust_region_step_evaluator.cc.o
[ 46%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/trust_region_strategy.cc.o
[ 46%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/types.cc.o
[ 46%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/visibility.cc.o
[ 46%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/visibility_based_preconditioner.cc.o
[ 46%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/wall_time.cc.o
[ 46%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_2_2.cc.o
[ 47%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_2_3.cc.o
[ 47%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_2_4.cc.o
[ 47%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_2_d.cc.o
[ 47%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_3_3.cc.o
[ 47%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_3_4.cc.o
[ 47%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_3_6.cc.o
[ 48%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_3_9.cc.o
[ 48%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_3_d.cc.o
[ 48%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_4_3.cc.o
[ 48%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_4_4.cc.o
[ 48%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_4_8.cc.o
[ 48%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_4_9.cc.o
[ 49%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_4_d.cc.o
[ 49%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_2_d_d.cc.o
[ 49%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_4_4_2.cc.o
[ 49%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_4_4_3.cc.o
[ 49%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_4_4_4.cc.o
[ 49%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_4_4_d.cc.o
[ 50%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/partitioned_matrix_view_d_d_d.cc.o
[ 50%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_2_2.cc.o
[ 50%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_2_3.cc.o
[ 50%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_2_4.cc.o
[ 50%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_2_d.cc.o
[ 50%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_3_3.cc.o
[ 51%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_3_4.cc.o
[ 51%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_3_6.cc.o
[ 51%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_3_9.cc.o
[ 51%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_3_d.cc.o
[ 51%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_4_3.cc.o
[ 51%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_4_4.cc.o
[ 52%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_4_8.cc.o
[ 52%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_4_9.cc.o
[ 52%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_4_d.cc.o
[ 52%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_2_d_d.cc.o
[ 52%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_4_4_2.cc.o
[ 52%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_4_4_3.cc.o
[ 53%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_4_4_4.cc.o
[ 53%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_4_4_d.cc.o
[ 53%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/generated/schur_eliminator_d_d_d.cc.o
[ 53%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/miniglog/glog/logging.cc.o
[ 53%] Linking CXX static library ../../lib/libopenMVG_ceres.a
[ 53%] Built target openMVG_ceres
[ 53%] Building CXX object third_party/easyexif/CMakeFiles/openMVG_easyexif.dir/exif.cpp.o
[ 53%] Linking CXX static library ../../Darwin-arm64-RELEASE/libopenMVG_easyexif.a
[ 53%] Built target openMVG_easyexif
[ 53%] Building CXX object third_party/fast/CMakeFiles/openMVG_fast.dir/fast.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[ 53%] Building CXX object third_party/fast/CMakeFiles/openMVG_fast.dir/fast_10.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[ 53%] Building CXX object third_party/fast/CMakeFiles/openMVG_fast.dir/fast_11.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[ 53%] Building CXX object third_party/fast/CMakeFiles/openMVG_fast.dir/fast_12.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[ 54%] Building CXX object third_party/fast/CMakeFiles/openMVG_fast.dir/fast_9.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[ 54%] Building CXX object third_party/fast/CMakeFiles/openMVG_fast.dir/nonmax.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[ 54%] Linking CXX static library ../../Darwin-arm64-RELEASE/libopenMVG_fast.a
[ 54%] Built target openMVG_fast
[ 55%] Building CXX object openMVG/exif/CMakeFiles/openMVG_exif.dir/exif_IO_EasyExif.cpp.o
[ 55%] Linking CXX static library ../../Darwin-arm64-RELEASE/libopenMVG_exif.a
[ 55%] Built target openMVG_exif
[ 55%] Building CXX object openMVG/features/CMakeFiles/openMVG_features.dir/akaze/AKAZE.cpp.o
[ 55%] Building CXX object openMVG/features/CMakeFiles/openMVG_features.dir/akaze/image_describer_akaze.cpp.o
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.cpp:7:
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.hpp:13:
In file included from /Users/xiao/openMVG/src/openMVG/features/regions_factory.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/features/binary_regions.hpp:17:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/immintrin.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/x86gprintrin.h:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
  __asm__ ("hreset $0" :: "a"(__eax));
                          ^
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.cpp:7:
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.hpp:13:
In file included from /Users/xiao/openMVG/src/openMVG/features/regions_factory.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/features/binary_regions.hpp:17:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/immintrin.h:17:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:649:12: note: '__builtin_isless' declared here
    return isless(__lcpp_x, __lcpp_y);
           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/math.h:545:22: note: expanded from macro 'isless'
#define isless(x, y) __builtin_isless((x),(y))
                     ^
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.cpp:7:
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.hpp:13:
In file included from /Users/xiao/openMVG/src/openMVG/features/regions_factory.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/features/binary_regions.hpp:17:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/immintrin.h:17:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:33:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:50:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:67:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:129:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:159:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:189:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:216:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:239:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:260:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:287:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:310:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:331:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^                    ~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:373:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:373:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^                    ~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:394:19: error: use of undeclared identifier '__builtin_ia32_paddd'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/akaze/image_describer_akaze.cpp.o] Error 1
make[1]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/all] Error 2
make: *** [all] Error 2
(base) xiao@tsf-436-wpa-1-138 openMVG_Build % 
pmoulon commented 3 years ago

Can you tell us more about your mac (is it a ARM one)?

Could you try comment this part https://github.com/openMVG/openMVG/blob/develop/src/openMVG/matching/CMakeLists.txt#L50-L62 and run cmake and compile again?

yetiiil commented 3 years ago

Can you tell us more about your mac (is it a ARM one)?

Could you try comment this part https://github.com/openMVG/openMVG/blob/develop/src/openMVG/matching/CMakeLists.txt#L50-L62 and run cmake and compile again?

Thank you for your reply! mine is indeed a M1 one, and I also tried comment that part and it returned the same result.

pmoulon commented 3 years ago

Can you try to remove the CmakeCache file? If you comment those part, reported compilation error should be different since metric_simd should not be included

yetiiil commented 3 years ago

Can you try to remove the CmakeCache file? If you comment those part, reported compilation error should be different since metric_simd should not be included

I tried to remove the cmakecache, and here is what I obtained:

Build files have been written to: /Users/xiao/openMVG_Build
(base) xiao@tsf-436-wpa-1-138 openMVG_Build % cmake --build . --target install
Consolidate compiler generated dependencies of target lib_CoinUtils
[ 10%] Built target lib_CoinUtils
Consolidate compiler generated dependencies of target lib_Osi
[ 12%] Built target lib_Osi
Consolidate compiler generated dependencies of target lib_clp
[ 21%] Built target lib_clp
Consolidate compiler generated dependencies of target lib_OsiClpSolver
[ 21%] Built target lib_OsiClpSolver
Consolidate compiler generated dependencies of target openMVG_stlplus
[ 22%] Built target openMVG_stlplus
Consolidate compiler generated dependencies of target main_svgSample
[ 22%] Built target main_svgSample
Consolidate compiler generated dependencies of target openMVG_cxsparse
[ 31%] Built target openMVG_cxsparse
Consolidate compiler generated dependencies of target openMVG_ceres
[ 53%] Built target openMVG_ceres
Consolidate compiler generated dependencies of target openMVG_easyexif
[ 53%] Built target openMVG_easyexif
Consolidate compiler generated dependencies of target openMVG_fast
[ 54%] Built target openMVG_fast
Consolidate compiler generated dependencies of target openMVG_exif
[ 55%] Built target openMVG_exif
Consolidate compiler generated dependencies of target openMVG_features
[ 55%] Building CXX object openMVG/features/CMakeFiles/openMVG_features.dir/akaze/image_describer_akaze.cpp.o
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.cpp:7:
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.hpp:13:
In file included from /Users/xiao/openMVG/src/openMVG/features/regions_factory.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/features/binary_regions.hpp:17:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/immintrin.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/x86gprintrin.h:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
  __asm__ ("hreset $0" :: "a"(__eax));
                          ^
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.cpp:7:
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.hpp:13:
In file included from /Users/xiao/openMVG/src/openMVG/features/regions_factory.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/features/binary_regions.hpp:17:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/immintrin.h:17:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/math.h:649:12: note: '__builtin_isless' declared here
    return isless(__lcpp_x, __lcpp_y);
           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/math.h:545:22: note: expanded from macro 'isless'
#define isless(x, y) __builtin_isless((x),(y))
                     ^
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.cpp:7:
In file included from /Users/xiao/openMVG/src/openMVG/features/akaze/image_describer_akaze.hpp:13:
In file included from /Users/xiao/openMVG/src/openMVG/features/regions_factory.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/features/binary_regions.hpp:17:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric.hpp:12:
In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/immintrin.h:17:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:33:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:50:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:67:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:129:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:159:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:189:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:216:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:239:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:260:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:287:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:310:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:331:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^                    ~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:373:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:373:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^                    ~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:394:19: error: use of undeclared identifier '__builtin_ia32_paddd'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/akaze/image_describer_akaze.cpp.o] Error 1
make[1]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/all] Error 2
make: *** [all] Error 2
(base) xiao@tsf-436-wpa-1-138 openMVG_Build % 
pmoulon commented 3 years ago

As you see In file included from /Users/xiao/openMVG/src/openMVG/matching/metric_simd.hpp:20: the metric_simd is still compiled despite it should not, since you commented its activation in the CMakeLists.txt Let's try to understand why this file is still used... despite it should not

tkarv commented 2 years ago

I had a similar error also on an M1 MacBook, and managed to get a successful compile by commenting out the following line:

#include "openMVG/matching/metric_simd.hpp"

in src/openMVG/matching/metric.hpp:12.

pmoulon commented 2 years ago

@tkarv could you try https://github.com/openMVG/openMVG/pull/1971#issuecomment-985972213

tkarv commented 2 years ago

@pmoulon with 5f34f562f3932988b91610f433a22963fbb96e76 everything seems to compile fine! Just for completeness' sake here's the commands I used to build:

git clone --recursive https://github.com/openMVG/openMVG.git
cd openMVG
git checkout 5f34f562f3932988b91610f433a22963fbb96e76
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=~/.local/ ../src/
make -j10
make install

There was a separate issue with make install and Eigen's INCLUDE_INSTALL_DIR path being set wrong, which I forgot I had previously fixed by commenting out lines 68-78 in third_party/eigen/CMakeLists.txt.

pmoulon commented 2 years ago

Thank you @tkarv for running the commit and sharing your command line. Will merge it to develop! How is your experience of OpenMVG on arm?

tkarv commented 2 years ago

Unfortunately haven't been able to do any runs yet, just set it up over the weekend. Eager to see how the performance is compared to my x86_64 workstation, though!

pmoulon commented 2 years ago

Closing due to lack of feedback, feel free to re-open as needed. Hoping performance are still ok on those new mac ;-)