Open AndreyMlashkin opened 4 years ago
ceres_solver 1.14.0 can't be compiled with cppstd 17. std::random_shuffle
has been removed in C++17
See https://github.com/ceres-solver/ceres-solver/issues/373.
These modifications could be added as a patch in recipe: https://github.com/NeroBurner/ceres-solver/commit/c0505ed0508341514d48b806dc95905f4d6c0b9f https://github.com/NeroBurner/ceres-solver/commit/abdce33cbd065938de7b5a330c35f210b0ec7526 https://github.com/NikolausDemmel/ceres-solver/commit/755034b3b31726ddd71f1b04143c8edb00e18c11
https://github.com/ceres-solver/ceres-solver/commit/1e8e9452d0a7dfaf5697b544810798a58e35443e it was merged upstream
@AndreyMlashkin I've added this patchin https://github.com/conan-io/conan-center-index/pull/3697. Please test :smile:
It works, thank you!
I have tested only on linux and it worked then, but now I have compiled on windows and I have got the same error
D:.conan\data\ceres-solver\1.14.0__\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(158,5): error C3861: 'randomshuffle': identifier not found (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_43.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(158,5): error C3861: 'randomshuffle': identifier not found (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_42.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\g enerated\schur_eliminator_4_43.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(182): message : while compiling class template member function 'void ceres::internal::SchurEliminator<4,4,3>::Eliminate(const ceres::internal::BlockSparseMatrix ,const double ,const double ,ceres::internal::BlockRandomAccessMatrix ,do uble *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_43.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\c eres\generated\schur_eliminator_4_43.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\g enerated\schur_eliminator_4_42.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(182): message : while compiling class template member function 'void ceres::internal::SchurEliminator<4,4,2>::Eliminate(const ceres::internal::BlockSparseMatrix ,const double ,const double ,ceres::internal::BlockRandomAccessMatrix ,do uble *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_42.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\c eres\generated\schur_eliminator_4_42.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ceres.vcxproj] schur_eliminator_d_dd.cc logging.cc D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(93,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ge nerated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(85): message : while compiling class template member function 'void ceres::internal::SchurEliminator<4,4,4>::Init(int,bool,const ceres::internal::CompressedRowBlockStructure *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_\ \build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_44.cc(53): message : see reference to class template instantiation 'ceres::internal::SchurEliminator<4,4,4>' being compiled [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\inte rnal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(93,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ce res\generated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(94,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ge nerated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(94,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ce res\generated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(158,5): error C3861: 'randomshuffle': identifier not found (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(93,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ge nerated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(85): message : while compiling class template member function 'void ceres::internal::SchurEliminator<4,4,-1>::Init(int,bool,const ceres::internal::CompressedRowBlockStructure *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_ \\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_4d.cc(53): message : see reference to class template instantiation 'ceres::internal::SchurEliminator<4,4,-1>' being compiled [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\int ernal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(93,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ce res\generated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(94,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ge nerated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(94,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ce res\generated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\g enerated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(182): message : while compiling class template member function 'void ceres::internal::SchurEliminator<4,4,4>::Eliminate(const ceres::internal::BlockSparseMatrix ,const double ,const double ,ceres::internal::BlockRandomAccessMatrix ,do uble *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(158,5): error C3861: 'randomshuffle': identifier not found (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\c eres\generated\schur_eliminator_4_44.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\g enerated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(182): message : while compiling class template member function 'void ceres::internal::SchurEliminator<4,4,-1>::Eliminate(const ceres::internal::BlockSparseMatrix ,const double ,const double ,ceres::internal::BlockRandomAccessMatrix ,d ouble *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\c eres\generated\schur_eliminator_4_4d.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(93,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ge nerated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(85): message : while compiling class template member function 'void ceres::internal::SchurEliminator<-1,-1,-1>::Init(int,bool,const ceres::internal::CompressedRowBlockStructure *)' (compiling source file D:.conan\data\ceres-solver\1.14.0 _\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_d_dd.cc(49): message : see reference to class template instantiation 'ceres::internal::SchurEliminator<-1,-1,-1>' being compiled [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\i nternal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(93,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ce res\generated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(94,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\ge nerated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(94,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ce res\generated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(158,5): error C3861: 'randomshuffle': identifier not found (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\g enerated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminatorimpl.h(182): message : while compiling class template member function 'void ceres::internal::SchurEliminator<-1,-1,-1>::Eliminate(const ceres::internal::BlockSparseMatrix ,const double ,const double ,ceres::internal::BlockRandomAccessMatrix ,double *)' (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres\generated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\ceres/schur_eliminator_impl.h(189,1): warning C4267: 'initializing': conversion from 'sizet' to 'const int', possible loss of data (compiling source file D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\source_subfolder\internal\c eres\generated\schur_eliminator_d_dd.cc) [D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1\sourcesubfolder\internal\ceres\ceres.vcxproj] ceres-solver/1.14.0: ceres-solver/1.14.0: ERROR: Package '359e1f4d6c46da4930efac2fa5fc269ae5e6aff1' build failed ceres-solver/1.14.0: WARN: Build folder D:.conan\data\ceres-solver\1.14.0__\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1 ERROR: ceres-solver/1.14.0: Error in build() method, line 104 cmake.build() ConanException: Error 1 while executing cmake --build D:.conan\data\ceres-solver\1.14.0_\\build\359e1f4d6c46da4930efac2fa5fc269ae5e6aff1 --config Release -- /m:4 /verbosity:minimal
Hi there! I'm reviewing old issues like this one. I apologize for the delay.
Is this problem still present? Could you test it with newer versions of this library? Thank you in advance!
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
conan install ceres-solver/1.14.0@ -u --build ceres*
Logs (Include/Attach if Applicable)
Click to expand log
``` (base) C:\builds\build_pictofitcore>conan install ceres-solver/1.14.0@ -u --build ceres* Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=RelWithDebInfo compiler=Visual Studio compiler.cppstd=17 compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] *:fPIC=True *:shared=False *:static=True cmake*:compiler=Visual Studio cmake*:compiler.cppstd=14 cmake*:compiler.version=16 [build_requires] [env] eigen/3.3.7: WARN: Current package is newer than remote upstream one ceres-solver/1.14.0: Forced build from source Installing package: ceres-solver/1.14.0 Requirements ceres-solver/1.14.0 from 'artifactory' - Cache eigen/3.3.7 from 'artifactory' - Cache Packages ceres-solver/1.14.0:ee9c37fa414e633f296d026576d3db2c520a19bb - Build eigen/3.3.7:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache Installing (downloading, building) binaries... eigen/3.3.7: Already installed! ceres-solver/1.14.0: WARN: Build folder is dirty, removing it: C:\Users\malas\.conan\data\ceres-solver\1.14.0\_\_\build\ee9c37fa414e633f296d026576d3db2c520a19bb ceres-solver/1.14.0: Copying sources to build folder ceres-solver/1.14.0: Building your package in C:\Users\malas\.conan\data\ceres-solver\1.14.0\_\_\build\ee9c37fa414e633f296d026576d3db2c520a19bb ceres-solver/1.14.0: Generator cmake created conanbuildinfo.cmake ceres-solver/1.14.0: Calling build() ********************************************************************** ** Visual Studio 2019 Developer Command Prompt v16.6.2 ** Copyright (c) 2020 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64' -- The C compiler identification is MSVC 19.26.28806.0 -- The CXX compiler identification is MSVC 19.26.28806.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: called by CMake conan helper -- Conan: called inside local cache -- Conan: Adjusting output directories -- Conan: Using cmake global configuration -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Conan setting CPP STANDARD: 17 WITH EXTENSIONS OFF -- Detected Ceres version: 1.14.0 from C:/Users/malas/.conan/data/ceres-solver/1.14.0/_/_/build/ee9c37fa414e633f296d026576d3db2c520a19bb/source_subfolder/include/ceres/version.h -- Found Eigen: C:/Users/malas/.conan/data/eigen/3.3.7/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3 (found version "3.3.7") -- Found Eigen version 3.3.7: C:/Users/malas/.conan/data/eigen/3.3.7/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3 -- Enabling use of Eigen as a sparse linear algebra library. -- Building without LAPACK. -- Building without SuiteSparse. -- Building without CXSparse. -- Google Flags disabled; no tests or tools will be built! -- Compiling minimal glog substitute into Ceres. -- Using minimal glog substitute (include): internal/ceres/miniglog -- Max log level for minimal glog substitute: 2 -- Building without OpenMP, disabling. -- Performing Test COMPILER_HAS_CXX11_FLAG -- Performing Test COMPILER_HAS_CXX11_FLAG - Failed -- Looking for C++ include unordered_map -- Looking for C++ include unordered_map - found -- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE -- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE - Success -- Found unordered_map/set in std namespace. -- Looking for C++ include memory -- Looking for C++ include memory - found -- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE -- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE - Success -- Found shared_ptr in std namespace using