microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.02k stars 6.35k forks source link

[flann] openmvg build failure while flann with hdf5 feature #22154

Closed longhuan2018 closed 2 years ago

longhuan2018 commented 2 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install flann[hdf5]:x64-windows openmvg:x64-windows

Failure logs

[1/2] "C:/Program Files/CMake/bin/cmake.exe" -S "E:/vcpkg/buildtrees/openmvg/src/1047522df9-8427e35cfb.clean/src" -B .. "-DOpenMVG_USE_OPENCV=ON" "-DOpenMVG_USE_OCVSIFT=ON" "-DOpenMVG_BUILD_SOFTWARES=ON" "-DOpenMVG_BUILD_GUI_SOFTWARES=ON" "-DOpenMVG_USE_OPENMP=ON" "-DOpenMVG_BUILD_SHARED=OFF" "-DOpenMVG_BUILD_TESTS=OFF" "-DOpenMVG_BUILD_DOC=OFF" "-DOpenMVG_BUILD_EXAMPLES=OFF" "-DOpenMVG_BUILD_OPENGL_EXAMPLES=OFF" "-DOpenMVG_BUILD_COVERAGE=OFF" "-DOpenMVG_USE_INTERNAL_CLP=OFF" "-DOpenMVG_USE_INTERNAL_COINUTILS=OFF" "-DOpenMVG_USE_INTERNAL_OSI=OFF" "-DOpenMVG_USE_INTERNAL_EIGEN=OFF" "-DOpenMVG_USE_INTERNAL_CEREAL=OFF" "-DOpenMVG_USE_INTERNAL_CERES=OFF" "-DOpenMVG_USE_INTERNAL_FLANN=OFF" "-DOpenMVG_USE_INTERNAL_LEMON=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=E:/vcpkg" "-D_VCPKG_INSTALLED_DIR=E:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja"  "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=E:/vcpkg/packages/openmvg_x64-windows"
FAILED: ../CMakeCache.txt 
"C:/Program Files/CMake/bin/cmake.exe" -S "E:/vcpkg/buildtrees/openmvg/src/1047522df9-8427e35cfb.clean/src" -B .. "-DOpenMVG_USE_OPENCV=ON" "-DOpenMVG_USE_OCVSIFT=ON" "-DOpenMVG_BUILD_SOFTWARES=ON" "-DOpenMVG_BUILD_GUI_SOFTWARES=ON" "-DOpenMVG_USE_OPENMP=ON" "-DOpenMVG_BUILD_SHARED=OFF" "-DOpenMVG_BUILD_TESTS=OFF" "-DOpenMVG_BUILD_DOC=OFF" "-DOpenMVG_BUILD_EXAMPLES=OFF" "-DOpenMVG_BUILD_OPENGL_EXAMPLES=OFF" "-DOpenMVG_BUILD_COVERAGE=OFF" "-DOpenMVG_USE_INTERNAL_CLP=OFF" "-DOpenMVG_USE_INTERNAL_COINUTILS=OFF" "-DOpenMVG_USE_INTERNAL_OSI=OFF" "-DOpenMVG_USE_INTERNAL_EIGEN=OFF" "-DOpenMVG_USE_INTERNAL_CEREAL=OFF" "-DOpenMVG_USE_INTERNAL_CERES=OFF" "-DOpenMVG_USE_INTERNAL_FLANN=OFF" "-DOpenMVG_USE_INTERNAL_LEMON=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=E:/vcpkg" "-D_VCPKG_INSTALLED_DIR=E:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja"  "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=E:/vcpkg/packages/openmvg_x64-windows"
-- The C compiler identification is MSVC 19.29.30138.0
-- The CXX compiler identification is MSVC 19.29.30138.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - 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: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- target changed from "" to "auto"
-- Detected CPU: kaby-lake
-- Performing Test check_c_compiler_flag__arch_AVX2
-- Performing Test check_c_compiler_flag__arch_AVX2 - Success
-- Performing Test check_cxx_compiler_flag__arch_AVX2
-- Performing Test check_cxx_compiler_flag__arch_AVX2 - Success
-- Checking for C++11 compiler
-- Checking for C++11 compiler - available
-- Found OpenMP_C: -openmp (found version "2.0") 
-- Found OpenMP_CXX: -openmp (found version "2.0") 
-- Found OpenMP: TRUE (found version "2.0")  
-- Found JPEG: optimized;E:/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/jpeg.lib (found version "62") 
-- Found ZLIB: optimized;E:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") 
-- Found PNG: optimized;E:/vcpkg/installed/x64-windows/lib/libpng16.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.37") 
-- Found TIFF: optimized;E:/vcpkg/installed/x64-windows/lib/tiff.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (found version "4.3.0")  
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE  
-- Found required Ceres dependency: Eigen version 3.3.9 in E:/vcpkg/installed/x64-windows/include/eigen3
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: E:/vcpkg/installed/x64-windows/lib/openblas.lib  
-- Using Lapack from vcpkg package 'lapack-reference'
-- Found Ceres version: 2.0.0 installed in: E:/vcpkg/installed/x64-windows/share with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, Multithreading]
-- CUDA_NVCC_EXECUTABLE = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.5/bin/nvcc.exe, CUDA_VERSION_STRING = 11.5
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.5 (found suitable exact version "11.5") 
-- Found OpenCV: E:/vcpkg/installed/x64-windows (found version "4.5.4") 
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.

** Found Qt5, GUI modules will be build

** 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: OFF
** Build OpenMVG samples applications: OFF
** Build OpenMVG openGL examples: OFF
** Enable code coverage generation: OFF
** Enable OpenMP parallelization: ON
** Build OpenCV+OpenMVG samples programs: ON
** Use OpenCV SIFT features: ON

-- CEREAL: (external)
-- EIGEN:  (external)
-- CERES: 2.0.0 (external)
-- FLANN:  (external)
-- LIBTIFF: 4.3.0 (external)
-- LIBPNG: 1.6.37 (external)
-- LIBJPEG (external)
-- CLP:  (external)
-- COINUTILS:  (external)
-- OSI:  (external)
-- LEMON:  (external)

-- Configuring done
CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "openMVG_matching" links to target "hdf5::hdf5-shared" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  openMVG/matching/CMakeLists.txt:22 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "openMVG_matching_image_collection" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  openMVG/matching_image_collection/CMakeLists.txt:17 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "openMVG_sfm" links to target "hdf5::hdf5-shared" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  openMVG/sfm/CMakeLists.txt:19 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfMInit_ImageListing" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:5 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ConvertList" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:17 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeFeatures" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:38 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ListMatchingPairs" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:53 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_PairGenerator" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:63 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ConvertMatches" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:75 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_benchANN" links to target "hdf5::hdf5-shared" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:83 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeVLAD" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:94 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_MatchingRetrievalQuality" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:103 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeMatches" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:113 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_GeometricFilter" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:125 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_MatchesToTracks" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:137 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfM" links to target "hdf5::hdf5-shared" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:165 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ConvertSfM_DataFormat" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:175 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_FrustumFiltering" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:184 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeStructureFromKnownPoses" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:193 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeSfM_DataColor" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:206 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_PointsFiltering" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:216 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ChangeLocalOrigin" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:225 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SplitMatchFileIntoMatchFiles" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:252 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeFeatures_OpenCV" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:269 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_evalQuality" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:297 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeClusters" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/clustering/CMakeLists.txt:4 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "domset" links to target "hdf5::hdf5-shared" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/clustering/domSetLibrary/CMakeLists.txt:1 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2PMVS" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:13 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2openMVS" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:24 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2CMPMVS" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:35 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2MVE2" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:47 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2MESHLAB" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:58 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2Agisoft" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:69 (ADD_EXECUTABLE)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2MVSTEXTURING" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:80 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2NVM" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:90 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2Colmap" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:99 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVGSpherical2Cubic" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:108 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_exportKeypoints" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:144 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_exportMatches" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:155 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_exportTracks" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:165 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ExportUndistortedImages" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:175 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ExportCameraFrustums" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:197 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfMInit_ImageListingFromKnownPoses" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/import/CMakeLists.txt:2 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfM_Localization" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/Localization/CMakeLists.txt:5 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_geodesy_registration_to_gps_position" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/Geodesy/CMakeLists.txt:2 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ColHarmonize" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/colorHarmonize/CMakeLists.txt:2 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_VO" links to target "hdf5::hdf5-shared" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/VO/CMakeLists.txt:6 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "ui_openMVG_MatchesViewer" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/ui/SfM/adjacency_matrix_viewer/CMakeLists.txt:19 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "ui_openMVG_control_points_registration" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/ui/SfM/control_points_registration/CMakeLists.txt:35 (ADD_EXECUTABLE)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2WebGL" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfMWebGLViewer/CMakeLists.txt:5 (add_executable)

-- Generating done
CMake Error:
  Running

   'D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe' '-C' 'E:/vcpkg/buildtrees/openmvg/x64-windows-rel' '-t' 'recompact'

  failed with:

   ninja: error: loading 'build.ninja': ϵͳ�Ҳ���ָ�����ļ���

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_LIBDIR
    _VCPKG_ROOT_DIR

CMake Generate step failed.  Build files cannot be regenerated correctly.
[2/2] "C:/Program Files/CMake/bin/cmake.exe" -S "E:/vcpkg/buildtrees/openmvg/src/1047522df9-8427e35cfb.clean/src" -B "../../x64-windows-dbg" "-DOpenMVG_USE_OPENCV=ON" "-DOpenMVG_USE_OCVSIFT=ON" "-DOpenMVG_BUILD_SOFTWARES=ON" "-DOpenMVG_BUILD_GUI_SOFTWARES=ON" "-DOpenMVG_USE_OPENMP=ON" "-DOpenMVG_BUILD_SHARED=OFF" "-DOpenMVG_BUILD_TESTS=OFF" "-DOpenMVG_BUILD_DOC=OFF" "-DOpenMVG_BUILD_EXAMPLES=OFF" "-DOpenMVG_BUILD_OPENGL_EXAMPLES=OFF" "-DOpenMVG_BUILD_COVERAGE=OFF" "-DOpenMVG_USE_INTERNAL_CLP=OFF" "-DOpenMVG_USE_INTERNAL_COINUTILS=OFF" "-DOpenMVG_USE_INTERNAL_OSI=OFF" "-DOpenMVG_USE_INTERNAL_EIGEN=OFF" "-DOpenMVG_USE_INTERNAL_CEREAL=OFF" "-DOpenMVG_USE_INTERNAL_CERES=OFF" "-DOpenMVG_USE_INTERNAL_FLANN=OFF" "-DOpenMVG_USE_INTERNAL_LEMON=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=E:/vcpkg" "-D_VCPKG_INSTALLED_DIR=E:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja"  "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=E:/vcpkg/packages/openmvg_x64-windows/debug"
FAILED: ../../x64-windows-dbg/CMakeCache.txt 
"C:/Program Files/CMake/bin/cmake.exe" -S "E:/vcpkg/buildtrees/openmvg/src/1047522df9-8427e35cfb.clean/src" -B "../../x64-windows-dbg" "-DOpenMVG_USE_OPENCV=ON" "-DOpenMVG_USE_OCVSIFT=ON" "-DOpenMVG_BUILD_SOFTWARES=ON" "-DOpenMVG_BUILD_GUI_SOFTWARES=ON" "-DOpenMVG_USE_OPENMP=ON" "-DOpenMVG_BUILD_SHARED=OFF" "-DOpenMVG_BUILD_TESTS=OFF" "-DOpenMVG_BUILD_DOC=OFF" "-DOpenMVG_BUILD_EXAMPLES=OFF" "-DOpenMVG_BUILD_OPENGL_EXAMPLES=OFF" "-DOpenMVG_BUILD_COVERAGE=OFF" "-DOpenMVG_USE_INTERNAL_CLP=OFF" "-DOpenMVG_USE_INTERNAL_COINUTILS=OFF" "-DOpenMVG_USE_INTERNAL_OSI=OFF" "-DOpenMVG_USE_INTERNAL_EIGEN=OFF" "-DOpenMVG_USE_INTERNAL_CEREAL=OFF" "-DOpenMVG_USE_INTERNAL_CERES=OFF" "-DOpenMVG_USE_INTERNAL_FLANN=OFF" "-DOpenMVG_USE_INTERNAL_LEMON=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=E:/vcpkg" "-D_VCPKG_INSTALLED_DIR=E:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja"  "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=E:/vcpkg/packages/openmvg_x64-windows/debug"
-- The C compiler identification is MSVC 19.29.30138.0
-- The CXX compiler identification is MSVC 19.29.30138.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - 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: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- target changed from "" to "auto"
-- Detected CPU: kaby-lake
-- Performing Test check_c_compiler_flag__arch_AVX2
-- Performing Test check_c_compiler_flag__arch_AVX2 - Success
-- Performing Test check_cxx_compiler_flag__arch_AVX2
-- Performing Test check_cxx_compiler_flag__arch_AVX2 - Success
-- Checking for C++11 compiler
-- Checking for C++11 compiler - available
-- Found OpenMP_C: -openmp (found version "2.0") 
-- Found OpenMP_CXX: -openmp (found version "2.0") 
-- Found OpenMP: TRUE (found version "2.0")  
-- Found JPEG: optimized;E:/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/jpeg.lib (found version "62") 
-- Found ZLIB: optimized;E:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") 
-- Found PNG: optimized;E:/vcpkg/installed/x64-windows/lib/libpng16.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.37") 
-- Found TIFF: optimized;E:/vcpkg/installed/x64-windows/lib/tiff.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (found version "4.3.0")  
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE  
-- Found required Ceres dependency: Eigen version 3.3.9 in E:/vcpkg/installed/x64-windows/include/eigen3
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: E:/vcpkg/installed/x64-windows/debug/lib/openblas.lib  
-- Using Lapack from vcpkg package 'lapack-reference'
-- Found Ceres version: 2.0.0 installed in: E:/vcpkg/installed/x64-windows/share with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, Multithreading]
-- CUDA_NVCC_EXECUTABLE = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.5/bin/nvcc.exe, CUDA_VERSION_STRING = 11.5
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.5 (found suitable exact version "11.5") 
-- Found OpenCV: E:/vcpkg/installed/x64-windows (found version "4.5.4") 
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.

** Found Qt5, GUI modules will be build

** 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: OFF
** Build OpenMVG samples applications: OFF
** Build OpenMVG openGL examples: OFF
** Enable code coverage generation: OFF
** Enable OpenMP parallelization: ON
** Build OpenCV+OpenMVG samples programs: ON
** Use OpenCV SIFT features: ON

-- CEREAL: (external)
-- EIGEN:  (external)
-- CERES: 2.0.0 (external)
-- FLANN:  (external)
-- LIBTIFF: 4.3.0 (external)
-- LIBPNG: 1.6.37 (external)
-- LIBJPEG (external)
-- CLP:  (external)
-- COINUTILS:  (external)
-- OSI:  (external)
-- LEMON:  (external)

-- Configuring done
CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "openMVG_matching" links to target "hdf5::hdf5-shared" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  openMVG/matching/CMakeLists.txt:22 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "openMVG_matching_image_collection" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  openMVG/matching_image_collection/CMakeLists.txt:17 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "openMVG_sfm" links to target "hdf5::hdf5-shared" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  openMVG/sfm/CMakeLists.txt:19 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfMInit_ImageListing" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:5 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ConvertList" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:17 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeFeatures" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:38 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ListMatchingPairs" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:53 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_PairGenerator" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:63 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ConvertMatches" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:75 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_benchANN" links to target "hdf5::hdf5-shared" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:83 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeVLAD" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:94 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_MatchingRetrievalQuality" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:103 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeMatches" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:113 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_GeometricFilter" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:125 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_MatchesToTracks" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:137 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfM" links to target "hdf5::hdf5-shared" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:165 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ConvertSfM_DataFormat" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:175 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_FrustumFiltering" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:184 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeStructureFromKnownPoses" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:193 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeSfM_DataColor" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:206 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_PointsFiltering" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:216 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ChangeLocalOrigin" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:225 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SplitMatchFileIntoMatchFiles" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:252 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeFeatures_OpenCV" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:269 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_evalQuality" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/CMakeLists.txt:297 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ComputeClusters" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/clustering/CMakeLists.txt:4 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:578 (_add_library):
  Target "domset" links to target "hdf5::hdf5-shared" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/clustering/domSetLibrary/CMakeLists.txt:1 (add_library)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2PMVS" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:13 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2openMVS" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:24 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2CMPMVS" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:35 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2MVE2" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:47 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2MESHLAB" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:58 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2Agisoft" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:69 (ADD_EXECUTABLE)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2MVSTEXTURING" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:80 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2NVM" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:90 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2Colmap" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:99 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVGSpherical2Cubic" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:108 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_exportKeypoints" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:144 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_exportMatches" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:155 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_exportTracks" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:165 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ExportUndistortedImages" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:175 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ExportCameraFrustums" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/export/CMakeLists.txt:197 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfMInit_ImageListingFromKnownPoses" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfM/import/CMakeLists.txt:2 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_SfM_Localization" links to target "hdf5::hdf5-shared"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/Localization/CMakeLists.txt:5 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_geodesy_registration_to_gps_position" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/Geodesy/CMakeLists.txt:2 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_ColHarmonize" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/colorHarmonize/CMakeLists.txt:2 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_VO" links to target "hdf5::hdf5-shared" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/VO/CMakeLists.txt:6 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "ui_openMVG_MatchesViewer" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/ui/SfM/adjacency_matrix_viewer/CMakeLists.txt:19 (add_executable)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "ui_openMVG_control_points_registration" links to target
  "hdf5::hdf5-shared" but the target was not found.  Perhaps a find_package()
  call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/ui/SfM/control_points_registration/CMakeLists.txt:35 (ADD_EXECUTABLE)

CMake Error at E:/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable):
  Target "openMVG_main_openMVG2WebGL" links to target "hdf5::hdf5-shared" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  software/SfMWebGLViewer/CMakeLists.txt:5 (add_executable)

-- Generating done
CMake Error:
  Running

   'D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe' '-C' 'E:/vcpkg/buildtrees/openmvg/x64-windows-dbg' '-t' 'recompact'

  failed with:

   ninja: error: loading 'build.ninja': ϵͳ�Ҳ���ָ�����ļ���

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_LIBDIR
    _VCPKG_ROOT_DIR

CMake Generate step failed.  Build files cannot be regenerated correctly.
ninja: build stopped: subcommand failed.
longhuan2018 commented 2 years ago

I found that this is caused by the lack of find_package(hdf5 REQUIRED) in the flann-config.cmake file