mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.4k stars 858 forks source link

Build Error on Windows #892

Open JohnHardline opened 2 years ago

JohnHardline commented 2 years ago

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043. -- Using VCPKG FindLAPACK from package 'lapack-reference' -- A library with LAPACK API found. -- Using VCPKG FindLAPACK from package 'lapack-reference' -- Found SuiteSparse_config library: D:/SourceExt/OpenSfM/vcpkg/installed/x64-windows/lib/suitesparseconfig.lib -- Found METIS library: D:/SourceExt/OpenSfM/vcpkg/installed/x64-windows/debug/lib/metis.lib. -- Failed to find some/all required components of SuiteSparse. (missing: AMD_FOUND CAMD_FOUND COLAMD_FOUND CCOLAMD_FOUND CHOLMOD_FOUND CXSPARSE_FOUND SUITESPARSEQR_FOUND SUITESPARSE_VERSION) -- Using VCPKG FindLAPACK from package 'lapack-reference' -- A library with LAPACK API found. -- Found required Ceres dependency: Eigen version 3.4.0 in D:/SourceExt/OpenSfM/vcpkg/installed/x64-windows/share/eigen3 -- Using VCPKG FindLAPACK from package 'lapack-reference' -- A library with LAPACK API found. -- Found Ceres version: 2.1.0 installed in: D:/SourceExt/OpenSfM/vcpkg/installed with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, SchurSpecializations, Multithreading] -- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. -- Found installed version of gflags: D:/SourceExt/OpenSfM/vcpkg/installed/x64-windows/share/gflags -- Detected gflags version: 2.2.2 -- Found OpenCV: D:/SourceExt/OpenSfM/vcpkg/installed/x64-windows (found version "4.5.5") -- Found OpenCV: D:/SourceExt/OpenSfM/vcpkg/installed/x64-windows (found version "4.5.5") found components: core imgproc calib3d imgcodecs -- pybind11 v2.2.4 -- Configuring done -- Generating done -- Build files have been written to: D:/SourceExt/OpenSfM/cmake_build Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

foundation.vcxproj -> D:\SourceExt\OpenSfM\cmake_build\foundation\Release\foundation.lib bundle_adjuster.cc D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/jet.h(834,10): warning C4996: 'j0': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _j0. See online help for details. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/jet.h(841,10): warning C4996: 'j1': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _j1. See online help for details. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/jet.h(848,10): warning C4996: 'jn': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _jn. See online help for details. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(164,52): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(184,50): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(211,54): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(234,21): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(259,48): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(288,35): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(299): message : see reference to class template instantiation 'ceres::LineParameterization' being compiled [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(316,51): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/local_parameterization.h(357,31): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/autodiff_local_parameterization.h(114,44): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/autodiff_local_parameterization.h(154): message : see reference to class template instantiation 'ceres::AutoDiffLocalParameterization<Functor,kGlobalSize,kLocalSize>' being compiled [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_checker.h(90,31): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem.h(113,19): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem.h(159,9): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem.h(169,3): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem.h(176,19): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradientproblem.h(160,12): warning C4996: 'ceres::GradientProblem::parameterization': [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradientproblem.h(170,12): warning C4996: 'ceres::GradientProblem::parameterization': [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem_solver.h(255,37): warning C4251: 'ceres::GradientProblemSolver::Options::callbacks': class 'std::vector<ceres::IterationCallback ,std::allocator<ceres::IterationCallback >>' needs to have dll-interface to be used by clients of struct 'ceres::GradientProblemSolver::Options' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem_solver.h(255): message : see declaration of 'std::vector<ceres::IterationCallback ,std::allocator<ceres::IterationCallback >>' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem_solver.h(273,17): warning C4251: 'ceres::GradientProblemSolver::Summary::message': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of struct 'ceres::GradientProblemSolver::Summary' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\xstring(4905): message : see declaration of 'std::basic_string<char,std::char_traits,std::allocator>' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem_solver.h(284,35): warning C4251: 'ceres::GradientProblemSolver::Summary::iterations': class 'std::vector<ceres::IterationSummary,std::allocator>' needs to have dll-interface to be used by clients of struct 'ceres::GradientProblemSolver::Summary' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/gradient_problem_solver.h(284): message : see declaration of 'std::vector<ceres::IterationSummary,std::allocator>' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/problem.h(304,26): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/problem.h(396,28): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\vcpkg\installed\x64-windows\include\ceres/problem.h(414,9): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/camera_instances.h(190,45): error C2988: unrecognizable template declaration/definition [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/camera_instances.h(190,45): error C2059: syntax error: '&&' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/prior_error.h(11,57): error C2059: syntax error: ',' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/prior_error.h(16): message : see reference to class template instantiation 'bundle::DummyPriorTransform<formal,P,formal>' being compiled [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/prior_error.h(11,65): error C2059: syntax error: '>' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/prior_error.h(11,65): error C3770: 'unknown-type': is not a valid base class [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/prior_error.h(13,14): error C2059: syntax error: '>' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/projection_errors.h(220,17): error C2672: 'geometry::Dispatch': no matching overloaded function found [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle/error/projection_errors.h(222,1): error C2780: 'void geometry::Dispatch(const geometry::ProjectionType &)': expects 1 arguments - 5 provided [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/camera_instances.h(190): message : see declaration of 'geometry::Dispatch' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(278,33): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(561,53): warning C4244: 'argument': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] with [ Derived=Eigen::Matrix<double,-1,1,0,-1,1> ] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(591,53): warning C4244: 'argument': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] with [ Derived=Eigen::Matrix<double,-1,1,0,-1,1> ] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(602,53): warning C4244: 'argument': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] with [ Derived=Eigen::Matrix<double,-1,1,0,-1,1> ] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(613,53): warning C4244: 'argument': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] with [ Derived=Eigen::Matrix<double,-1,1,0,-1,1> ] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(624,53): warning C4244: 'argument': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] with [ Derived=Eigen::Matrix<double,-1,1,0,-1,1> ] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(681,49): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(681,49): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(753,15): error C2672: 'geometry::Dispatch': no matching overloaded function found [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(754,53): error C2780: 'void geometry::Dispatch(const geometry::ProjectionType &)': expects 1 arguments - 3 provided [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/camera_instances.h(190): message : see declaration of 'geometry::Dispatch' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(767,15): error C2672: 'geometry::Dispatch': no matching overloaded function found [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(768,79): error C2780: 'void geometry::Dispatch(const geometry::ProjectionType &)': expects 1 arguments - 5 provided [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/camera_instances.h(190): message : see declaration of 'geometry::Dispatch' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(803,64): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(837,76): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(845,78): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(876,74): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(884,76): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(898,18): warning C4244: 'argument': conversion from 'size_t' to 'double', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(897,67): warning C4244: 'argument': conversion from 'size_t' to 'double', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(1009,70): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(1017,72): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(1030,72): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(1158,15): error C2672: 'geometry::Dispatch': no matching overloaded function found [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\bundle\src\bundle_adjuster.cc(1159,57): error C2780: 'void geometry::Dispatch(const geometry::ProjectionType &)': expects 1 arguments - 3 provided [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/camera_instances.h(190): message : see declaration of 'geometry::Dispatch' [D:\SourceExt\OpenSfM\cmake_build\bundle\bundle.vcxproj] triangulation.cc D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(13,35): error C2059: syntax error: ';' [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/transformations_functions.h(11): message : see reference to class template instantiation 'geometry::Functor<2,4,2>' being compiled [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(13,1): error C2737: 'public: static int const geometry::Functor<2,4,2>::InSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(15,37): error C2059: syntax error: ';' [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(15,1): error C2737: 'public: static int const geometry::Functor<2,4,2>::OutSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(13,1): error C2737: 'public: static int const geometry::Functor<2,1,2>::InSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(15,1): error C2737: 'public: static int const geometry::Functor<2,1,2>::OutSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(13,1): error C2737: 'public: static int const geometry::Functor<2,0,2>::InSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(15,1): error C2737: 'public: static int const geometry::Functor<2,0,2>::OutSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(13,1): error C2737: 'public: static int const geometry::Functor<3,6,3>::InSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(15,1): error C2737: 'public: static int const geometry::Functor<3,6,3>::OutSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(13,1): error C2737: 'public: static int const geometry::Functor<3,0,3>::InSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry/functions.h(15,1): error C2737: 'public: static int const geometry::Functor<3,0,3>::OutSize': constexpr object must be initialized [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(21,35): warning C4244: 'initializing': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] with [ Derived=Eigen::Matrix<double,-1,3,0,-1,3> ] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(21,20): warning C4244: 'initializing': conversion from 'Eigen::EigenBase::Index' to 'const int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] with [ Derived=Eigen::Matrix<double,-1,3,0,-1,3> ] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(48,31): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(48,31): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(102,33): warning C4244: 'initializing': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] with [ Derived=Eigen::Matrix<double,-1,3,0,-1,3> ] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(102,19): warning C4244: 'initializing': conversion from 'Eigen::EigenBase::Index' to 'const int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] with [ Derived=Eigen::Matrix<double,-1,3,0,-1,3> ] D:\SourceExt\OpenSfM\opensfm\src\geometry\src\triangulation.cc(168,40): warning C4244: 'argument': conversion from 'Eigen::EigenBase::Index' to 'int', possible loss of data [D:\SourceExt\OpenSfM\cmake_build\geometry\geometry.vcxproj] with [ Derived=Eigen::Matrix<double,-1,3,0,-1,3> ] dense.vcxproj -> D:\SourceExt\OpenSfM\cmake_build\dense\Release\dense.lib pydense.vcxproj -> D:\SourceExt\OpenSfM\opensfm\pydense.pyd akaze.vcxproj -> D:\SourceExt\OpenSfM\cmake_build\third_party\akaze\Release\akaze.lib vl.vcxproj -> D:\SourceExt\OpenSfM\cmake_build\third_party\vlfeat\Release\vl.lib features.vcxproj -> D:\SourceExt\OpenSfM\cmake_build\features\Release\features.lib pyfeatures.vcxproj -> D:\SourceExt\OpenSfM\opensfm\pyfeatures.pyd geo.vcxproj -> D:\SourceExt\OpenSfM\cmake_build\geo\Release\geo.lib pygeo.vcxproj -> D:\SourceExt\OpenSfM\opensfm\pygeo.pyd Configuring for python 3.7... Compiling extension...

YousefAljafra commented 2 years ago

Same here

JohnHardline commented 2 years ago

Configuration Win 10 and Win 11 - Compiler VS 2019

jakii-byte commented 2 years ago

I've got the same error every time i build by referring to the following url. https://opensfm.org/docs/building.html. I input "python3 setup.py build" after all commands in "Installing dependencies on Windows". Configuration Win 10 and VS 2019 ,Python3.8.

YousefAljafra commented 2 years ago

I Could fix it with rewriting the IN&&... args to Object&&... args and template <class FUNC, class... IN> to template <class FUNC, class... Object> in opensfm\src\geometry\camera_instances It's just a temporary fix...but it works :)

RH2 commented 2 years ago

There's a name collision with some of the windows header files. I was able to compile after adding

#undef IN
#undef OUT

to prior_error.h, camera_instances.h, and functions.h

pdrodiazga commented 1 year ago

Could i ask where did you find the prior_error.h header? I have found functions and camera_instances but I haven`t found prior_error.h.