cdcseacave / openMVS

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

Build failed due to eigen #1052

Open jianweike opened 1 year ago

jianweike commented 1 year ago

Describe the bug As suggested I build openMVS with eigen 3.2.8 in my Ubuntu 16.04 machine. However, it failed due to issues related to eigen? The errors are "openMVS/libs/Common/Util.inl:189:85: error: no matching function for call to ‘Eigen::Matrix<double, 3, 3>::Matrix()’"

"openMVS/libs/Common/Util.inl:198:85: error: no matching function for call to ‘Eigen::Matrix<double, 3, 3>::Matrix()’ " "libs/Common/Util.inl:207:85: error: no matching function for call to ‘Eigen::Matrix<double, 3, 3>::Matrix()’ " Below are the output for my CMake: cmake . ../openMVS -DCMAKE_BUILD_TYPE=Release -DVCG_ROOT="$main_path/vcglib" CMake Warning: Ignoring extra path from command line:

"/home/hongrui/Documents/3D-reconstruction/dense-reconstruction/openMVS_build"

CMake Warning: Ignoring extra path from command line:

"."

-- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /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: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detected version of GNU GCC: 54 (504) Compiling with C++17 -- Performing Test HAVE_CXX_W -- Performing Test HAVE_CXX_W - Success -- Performing Test HAVE_C_W -- Performing Test HAVE_C_W - Success -- Performing Test HAVE_CXX_WALL -- Performing Test HAVE_CXX_WALL - Success -- Performing Test HAVE_C_WALL -- Performing Test HAVE_C_WALL - Success -- Performing Test HAVE_CXX_WERROR_ADDRESS -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success -- Performing Test HAVE_C_WERROR_ADDRESS -- Performing Test HAVE_C_WERROR_ADDRESS - Success -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success -- Performing Test HAVE_CXX_WFORMAT -- Performing Test HAVE_CXX_WFORMAT - Success -- Performing Test HAVE_C_WFORMAT -- Performing Test HAVE_C_WFORMAT - Success -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success -- Performing Test HAVE_CXX_WINIT_SELF -- Performing Test HAVE_CXX_WINIT_SELF - Success -- Performing Test HAVE_C_WINIT_SELF -- Performing Test HAVE_C_WINIT_SELF - Success -- Performing Test HAVE_CXX_WSIGN_PROMO -- Performing Test HAVE_CXX_WSIGN_PROMO - Success -- Performing Test HAVE_C_WSIGN_PROMO -- Performing Test HAVE_C_WSIGN_PROMO - Failed -- Performing Test HAVE_CXX_WREORDER -- Performing Test HAVE_CXX_WREORDER - Success -- Performing Test HAVE_C_WREORDER -- Performing Test HAVE_C_WREORDER - Failed -- Performing Test HAVE_CXX_WNO_UNDEF -- Performing Test HAVE_CXX_WNO_UNDEF - Success -- Performing Test HAVE_C_WNO_UNDEF -- Performing Test HAVE_C_WNO_UNDEF - Success -- Performing Test HAVE_CXX_WNO_SWITCH -- Performing Test HAVE_CXX_WNO_SWITCH - Success -- Performing Test HAVE_C_WNO_SWITCH -- Performing Test HAVE_C_WNO_SWITCH - Success -- Performing Test HAVE_CXX_WNO_SWITCH_ENUM -- Performing Test HAVE_CXX_WNO_SWITCH_ENUM - Success -- Performing Test HAVE_C_WNO_SWITCH_ENUM -- Performing Test HAVE_C_WNO_SWITCH_ENUM - Success -- Performing Test HAVE_CXX_WNO_SWITCH_DEFAULT -- Performing Test HAVE_CXX_WNO_SWITCH_DEFAULT - Success -- Performing Test HAVE_C_WNO_SWITCH_DEFAULT -- Performing Test HAVE_C_WNO_SWITCH_DEFAULT - Success -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Failed -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Failed -- Performing Test HAVE_CXX_WNO_COMMENT -- Performing Test HAVE_CXX_WNO_COMMENT - Success -- Performing Test HAVE_C_WNO_COMMENT -- Performing Test HAVE_C_WNO_COMMENT - Success -- Performing Test HAVE_CXX_WNO_NARROWING -- Performing Test HAVE_CXX_WNO_NARROWING - Success -- Performing Test HAVE_C_WNO_NARROWING -- Performing Test HAVE_C_WNO_NARROWING - Success -- Performing Test HAVE_CXX_WNO_ATTRIBUTES -- Performing Test HAVE_CXX_WNO_ATTRIBUTES - Success -- Performing Test HAVE_C_WNO_ATTRIBUTES -- Performing Test HAVE_C_WNO_ATTRIBUTES - Success -- Performing Test HAVE_CXX_WNO_IGNORED_ATTRIBUTES -- Performing Test HAVE_CXX_WNO_IGNORED_ATTRIBUTES - Failed -- Performing Test HAVE_C_WNO_IGNORED_ATTRIBUTES -- Performing Test HAVE_C_WNO_IGNORED_ATTRIBUTES - Failed -- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED -- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success -- Performing Test HAVE_C_WNO_ENUM_COMPARE -- Performing Test HAVE_C_WNO_ENUM_COMPARE - Success -- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION -- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Failed -- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION -- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION - Failed -- Performing Test HAVE_CXX_WNO_MISSING_FIELD_INITIALIZERS -- Performing Test HAVE_CXX_WNO_MISSING_FIELD_INITIALIZERS - Success -- Performing Test HAVE_C_WNO_MISSING_FIELD_INITIALIZERS -- Performing Test HAVE_C_WNO_MISSING_FIELD_INITIALIZERS - Success -- Performing Test HAVE_CXX_WNO_UNUSED_RESULT -- Performing Test HAVE_CXX_WNO_UNUSED_RESULT - Success -- Performing Test HAVE_C_WNO_UNUSED_RESULT -- Performing Test HAVE_C_WNO_UNUSED_RESULT - Success -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success -- Performing Test HAVE_CXX_WNO_DELETE_INCOMPLETE -- Performing Test HAVE_CXX_WNO_DELETE_INCOMPLETE - Success -- Performing Test HAVE_C_WNO_DELETE_INCOMPLETE -- Performing Test HAVE_C_WNO_DELETE_INCOMPLETE - Failed -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Performing Test HAVE_CXX_WNO_INT_IN_BOOL_CONTEXT -- Performing Test HAVE_CXX_WNO_INT_IN_BOOL_CONTEXT - Failed -- Performing Test HAVE_C_WNO_INT_IN_BOOL_CONTEXT -- Performing Test HAVE_C_WNO_INT_IN_BOOL_CONTEXT - Failed -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success -- Performing Test HAVE_CXX_FTEMPLATE_BACKTRACE_LIMIT_0 -- Performing Test HAVE_CXX_FTEMPLATE_BACKTRACE_LIMIT_0 - Success -- Performing Test HAVE_C_FTEMPLATE_BACKTRACE_LIMIT_0 -- Performing Test HAVE_C_FTEMPLATE_BACKTRACE_LIMIT_0 - Failed -- Performing Test HAVE_CXX_WNO_LONG_LONG -- Performing Test HAVE_CXX_WNO_LONG_LONG - Success -- Performing Test HAVE_C_WNO_LONG_LONG -- Performing Test HAVE_C_WNO_LONG_LONG - Success -- Performing Test HAVE_CXX_PTHREAD -- Performing Test HAVE_CXX_PTHREAD - Success -- Performing Test HAVE_C_PTHREAD -- Performing Test HAVE_C_PTHREAD - Success -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success -- Performing Test HAVE_C_FOMIT_FRAME_POINTER -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success -- Performing Test HAVE_CXX_FROUNDING_MATH -- Performing Test HAVE_CXX_FROUNDING_MATH - Success -- Performing Test HAVE_C_FROUNDING_MATH -- Performing Test HAVE_C_FROUNDING_MATH - Success -- Performing Test HAVE_CXX_MSSE -- Performing Test HAVE_CXX_MSSE - Success -- Performing Test HAVE_C_MSSE -- Performing Test HAVE_C_MSSE - Success -- Performing Test HAVE_CXX_MSSE2 -- Performing Test HAVE_CXX_MSSE2 - Success -- Performing Test HAVE_C_MSSE2 -- Performing Test HAVE_C_MSSE2 - Success -- Performing Test HAVE_CXX_MSSE3 -- Performing Test HAVE_CXX_MSSE3 - Success -- Performing Test HAVE_C_MSSE3 -- Performing Test HAVE_C_MSSE3 - Success -- Performing Test HAVE_CXX_MSSSE3 -- Performing Test HAVE_CXX_MSSSE3 - Success -- Performing Test HAVE_C_MSSSE3 -- Performing Test HAVE_C_MSSSE3 - Success -- Performing Test HAVE_CXX_MSSE4_1 -- Performing Test HAVE_CXX_MSSE4_1 - Success -- Performing Test HAVE_C_MSSE4_1 -- Performing Test HAVE_C_MSSE4_1 - Success -- Performing Test HAVE_CXX_MSSE4_2 -- Performing Test HAVE_CXX_MSSE4_2 - Success -- Performing Test HAVE_C_MSSE4_2 -- Performing Test HAVE_C_MSSE4_2 - Success -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success -- Performing Test HAVE_C_FFUNCTION_SECTIONS -- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success -- Looking for inttypes.h -- Looking for inttypes.h - found -- Found OpenMP_C: -fopenmp (found version "4.0") -- Found OpenMP_CXX: -fopenmp (found version "4.0") -- Found OpenMP: TRUE (found version "4.0")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
CMake Warning (dev) at CMakeLists.txt:107 (FIND_PACKAGE): Policy CMP0146 is not set: The FindCUDA module is removed. Run "cmake --help-policy CMP0146" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) -- Can't find CUDA. Continuing without it. -- WARNING: BREAKPAD was not found: Please specify BREAKPAD directory using BREAKPAD_ROOT env. variable -- Can't find BreakPad. Continuing without it. -- Found Boost: /home/hongrui/anaconda3/lib/cmake/Boost-1.73.0/BoostConfig.cmake (found version "1.73.0") found components: iostreams program_options system serialization missing components: python3 -- Found Eigen3: /usr/local/include/eigen3 (Required is at least version "2.91.0") -- Eigen 3.2.8 found (include: /usr/local/include/eigen3) -- Found OpenCV: /usr/local (found version "3.4.0") -- OpenCV 3.4.0 found (include: /usr/local/include;/usr/local/include/opencv) -- VCG found (include: /home/hongrui/Documents/3D-reconstruction/dense-reconstruction/vcglib) -- GLEW 1.13.0 found (include: /usr/include) -- GLFW3 3.1.2 found (include: ) -- Configuring done (5.2s) CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target InterfaceCOLMAP because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/InterfaceCOLMAP/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target InterfaceMetashape because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/InterfaceMetashape/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target InterfaceMVSNet because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/InterfaceMVSNet/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target InterfacePolycam because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/InterfacePolycam/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target DensifyPointCloud because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/DensifyPointCloud/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target ReconstructMesh because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/ReconstructMesh/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target RefineMesh because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/RefineMesh/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target TextureMesh because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/TextureMesh/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target TransformScene because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/TransformScene/CMakeLists.txt:8 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target Viewer because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/Viewer/CMakeLists.txt:37 (cxx_executable_with_flags)

CMake Warning at build/Utils.cmake:848 (add_executable): Cannot generate a safe runtime search path for target Tests because files in some directories may conflict with libraries in implicit directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib
runtime library [libgmpxx.so.4] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/hongrui/anaconda3/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): apps/Tests/CMakeLists.txt:10 (cxx_executable_with_flags)

-- Generating done (0.1s)

Additional context Add any other context about the problem here.

Thanks all for the help.

pierotofy commented 1 year ago

https://github.com/cdcseacave/openMVS/blob/master/BUILD.md

Requirements:

Try updating Eigen.

jianweike commented 1 year ago

I switched to Eigen 3.4. Now cmake gives -- Detected version of GNU GCC: 54 (504) Compiling with C++17 CMake Warning (dev) at CMakeLists.txt:107 (FIND_PACKAGE): Policy CMP0146 is not set: The FindCUDA module is removed. Run "cmake --help-policy CMP0146" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) -- Can't find CUDA. Continuing without it. -- WARNING: BREAKPAD was not found: Please specify BREAKPAD directory using BREAKPAD_ROOT env. variable -- Can't find BreakPad. Continuing without it. -- Eigen 3.4.0 found (include: /usr/local/include/eigen3) -- OpenCV 3.4.0 found (include: /usr/local/include;/usr/local/include/opencv) -- VCG found (include: /home/hongrui/Documents/3D-reconstruction/dense-reconstruction/vcglib) -- GLEW 1.13.0 found (include: /usr/include) -- GLFW3 3.1.2 found (include: ) -- Configuring done (0.2s)

But still no luck. Now I got errors: /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:504:25: error: ‘invoke_result’ in namespace ‘std’ does not name a template type typedef typename std::invoke_result<F, ArgTypes...>::type type1; ^ /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:504:38: error: expected unqualified-id before ‘<’ token typedef typename std::invoke_result<F, ArgTypes...>::type type1; ^ /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:505:31: error: ‘type1’ was not declared in this scope typedef typename remove_all::type type; ^ /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:505:36: error: template argument 1 is invalid typedef typename remove_all::type type; ^ In file included from /usr/local/include/eigen3/Eigen/Core:162:0, from /home/hongrui/Documents/3D-reconstruction/dense-reconstruction/openMVS/libs/Common/Types.h:127, from /home/hongrui/Documents/3D-reconstruction/dense-reconstruction/openMVS/libs/Common/Common.h:176, from /home/hongrui/Documents/3D-reconstruction/dense-reconstruction/openMVS/make/libs/Common/CMakeFiles/Common.dir/cmake_pch.hxx:5, from :0: /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:616:25: error: ‘invoke_result’ in namespace ‘std’ does not name a template type typedef typename std::invoke_result<F, ArgTypes...>::type type1; ^ /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:616:38: error: expected unqualified-id before ‘<’ token typedef typename std::invoke_result<F, ArgTypes...>::type type1; ^ /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:617:31: error: ‘type1’ was not declared in this scope typedef typename remove_all::type type; ^ /usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:617:36: error: template argument 1 is invalid typedef typename remove_all::type type; ^ libs/Common/CMakeFiles/Common.dir/build.make:76: recipe for target 'libs/Common/CMakeFiles/Common.dir/cmake_pch.hxx.gch' failed make[2]: [libs/Common/CMakeFiles/Common.dir/cmake_pch.hxx.gch] Error 1 CMakeFiles/Makefile2:424: recipe for target 'libs/Common/CMakeFiles/Common.dir/all' failed make[1]: [libs/Common/CMakeFiles/Common.dir/all] Error 2 Makefile:145: recipe for target 'all' failed make: *** [all] Error 2