introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.84k stars 786 forks source link

Errors compiling from source on Windows 11 #1207

Open DenTechs opened 10 months ago

DenTechs commented 10 months ago

I've spent the better part of a day trying to figure out where i'm going wrong, but as a last resort i'll try to ask here. I've followed the instructions in the wiki for building rtab-map from source with vcpkg for dependencies and cmake/visual studio to compile, however i'm running into issues i dont understand. Below are the log files from visual studio:

Severity Code Description Project File Line Suppression State Details Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\Compression.cpp 280
Error C2121 '#': invalid character: possibly the result of a macro expansion rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\camera\CameraStereoZed.cpp 529
Error C2059 syntax error: 'if' rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\camera\CameraStereoZed.cpp 517
Error C2121 '#': invalid character: possibly the result of a macro expansion rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\camera\CameraStereoZed.cpp 545
Error C2059 syntax error: 'if' rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\camera\CameraStereoZed.cpp 542
Error C1019 unexpected #else rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\camera\CameraStereoZed.cpp 557
Warning C4267 '+=': conversion from 'size_t' to 'unsigned long', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\VisualWord.cpp 75
Warning C4267 '+=': conversion from 'size_t' to 'unsigned long', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\VisualWord.cpp 76
Warning C4267 '+=': conversion from 'size_t' to 'unsigned long', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\VisualWord.cpp 77
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\util3d.cpp 3374
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 484
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 751
Warning C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\saving.h 58
Warning C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\saving.h 60
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\logger.h 66
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\flann.hpp 383
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 318
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 535
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 1054
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 1056
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 729
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 445
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 704
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 252
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 251
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 413
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 137
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 138
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 605
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 686
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 692
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 847
Warning C4267 'initializing': conversion from 'size_t' to 'const int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 847
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 952
Warning C4267 'initializing': conversion from 'size_t' to 'const int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\opencv\ORBextractor.cc 952
Warning C4267 'initializing': conversion from 'size_t' to '_Ty1', possible loss of data with [ _Ty1=int ] rtabmap_core C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\utility 278
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 426
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 444
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 484
Warning C4267 'argument': conversion from 'size_t' to 'long', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 576
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 613
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 612
Warning C4267 'argument': conversion from 'size_t' to 'long', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 627
Warning C4267 'argument': conversion from 'size_t' to 'long', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 652
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 690
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\serialization.h 751
Warning C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\saving.h 58
Warning C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\saving.h 60
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\saving.h 109
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\allocator.h 199
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\logger.h 66
Warning C4267 'argument': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=std::_Vbase ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\lsh_table.h 449
Warning C4267 'argument': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=std::_Vbase ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\lsh_table.h 457
Warning C4267 '=': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\lsh_table.h 263
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 628
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 646
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 666
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 511
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 522
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 538
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 559
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 439
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 458
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 347
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\nn_index.h 362
Warning C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\flann.hpp 383
Warning C4267 'argument': conversion from 'size_t' to '_Tp', possible loss of data with [ _Tp=int ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\clams\discrete_depth_distortion_model_helpers.cpp 59
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\clams\discrete_depth_distortion_model_helpers.cpp 155
Warning C4996 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\clams\discrete_depth_distortion_model_helpers.cpp 66
Warning C4267 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 361
Warning C4267 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 293
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 302
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 305
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 312
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 324
Warning C4267 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 240
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 246
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 248
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 255
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 263
Warning C4267 'return': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 213
Warning C4267 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 160
Warning C4267 '=': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=int ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 316
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 318
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 319
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 225
Warning C4267 '=': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=int ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 244
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 248
Warning C4267 'return': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 208
Warning C4267 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\result_set.h 805
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\result_set.h 742
Warning C4267 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\lsh_table.h 196
Warning C4267 'initializing': conversion from 'size_t' to 'rtflann::lsh::BucketKey', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\lsh_table.h 165
Warning C4267 'argument': conversion from 'size_t' to 'rtflann::lsh::BucketKey', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\lsh_index.h 500
Warning C4267 '=': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=int ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 636
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 638
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 651
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 535
Warning C4267 '=': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=int ] rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kmeans_index.h 987
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kmeans_index.h 991
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kmeans_index.h 1002
Warning C4267 '+=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kmeans_index.h 677
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 1054
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 1056
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 1071
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 729
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 577
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 581
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 445
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 704
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 459
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 476
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_single_index.h 480
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 551
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\sampling.h 42
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\util\sampling.h 49
Warning C4996 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\optimizer\toro3d\treeoptimizer3_iteration.cpp 334
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kmeans_index.h 855
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kmeans_index.h 779
Warning C4267 'initializing': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\nn\ground_truth.h 47
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\nn\ground_truth.h 60
Warning C4267 '=': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\nn\ground_truth.h 65
Warning C4267 'argument': conversion from 'size_t' to 'int', possible loss of data rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\nn\index_testing.h 121
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 252
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 251
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\hierarchical_clustering_index.h 413
Warning C4291 'void operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 137
Warning C4291 'void
operator new(size_t,rtflann::PooledAllocator &)': no matching operator delete found; memory will not be freed if initialization throws an exception rtabmap_core C:\Users\dentechs\Documents\GitHub\rtabmap\corelib\src\rtflann\algorithms\kdtree_index.h 138
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' stereoEval C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\StereoEval\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' recovery C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Recovery\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' kitti_dataset C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\KittiDataset\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' report C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Report\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' reprocess C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Reprocess\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' rgbd_dataset C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\RgbdDataset\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' globalBundleAdjustment C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\GlobalBundleAdjustment\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' detectMoreLoopClosures C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\DetectMoreLoopClosures\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' consoleApp C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\ConsoleApp\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' camera C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Camera\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' cleanupLocalGrids C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\CleanupLocalGrids\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' imagesJoiner C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\ImagesJoiner\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' info C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Info\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' extractObject C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\ExtractObject\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' export C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Export\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' euroc_dataset C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\EurocDataset\LINK 1
Warning C4275 non dll-interface class 'pcl::visualization::PCLVisualizerInteractorStyle' used as base for dll-interface class 'rtabmap::CloudViewerInteractorStyle' rtabmap_gui C:\Users\dentechs\Documents\GitHub\rtabmap\guilib\include\rtabmap\gui\CloudViewerInteractorStyle.h 22
Warning C4275 non dll-interface class 'pcl::visualization::PCLVisualizerInteractorStyle' used as base for dll-interface class 'rtabmap::CloudViewerInteractorStyle' rtabmap_gui C:\Users\dentechs\Documents\GitHub\rtabmap\guilib\include\rtabmap\gui\CloudViewerInteractorStyle.h 22
Error LNK1181 cannot open input file '....\lib\rtabmap_core.lib' rtabmap_gui C:\Users\dentechs\Documents\GitHub\rtabmap\build\guilib\src\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' calibration C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Calibration\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' dataRecorder C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\DataRecorder\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' odometryViewer C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\OdometryViewer\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' bow_mapping C:\Users\dentechs\Documents\GitHub\rtabmap\build\examples\BOWMapping\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' databaseViewer C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\DatabaseViewer\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' epipolar_geometry C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\EpipolarGeometry\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' rtabmap_app C:\Users\dentechs\Documents\GitHub\rtabmap\build\app\src\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' rgbd_camera C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\CameraRGBD\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' wifi_mapping C:\Users\dentechs\Documents\GitHub\rtabmap\build\examples\WifiMapping\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' noEventsExample C:\Users\dentechs\Documents\GitHub\rtabmap\build\examples\NoEventsExample\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' matcher C:\Users\dentechs\Documents\GitHub\rtabmap\build\tools\Matcher\LINK 1
Error LNK1181 cannot open input file '....\lib\rtabmap_gui.lib' rgbd_mapping C:\Users\dentechs\Documents\GitHub\rtabmap\build\examples\RGBDMapping\LINK 1

matlabbe commented 10 months ago

Is it during the step vcpkg install rtabmap --clean-after-build ? https://github.com/introlab/rtabmap/wiki/Installation#vcpkg

DenTechs commented 10 months ago

Is it during the step vcpkg install rtabmap --clean-after-build ? https://github.com/introlab/rtabmap/wiki/Installation#vcpkg

No, as far as i can tell the vcpkg version of rtabmap is the same as the current release on the github, which is on an outdated version of the Zed sdk. I saw that the master branch of rtabmap was already updated to it however, so i've been trying to compile it manually with cmake. Those errors are occurring when building with cmake or in visual studio 2022.

matlabbe commented 10 months ago

I compiled it last weekend on windows, though I didn't re-update all vcpkg dependencies. I'll try updating everything and see if I can reproduce your error.

DenTechs commented 10 months ago

Thanks! I appreciate the help

matlabbe commented 10 months ago

The ZED errors have been fixed in this commit: https://github.com/introlab/rtabmap/commit/b2a86d640a15ebaf0b189b3721c978d8645018d7

Unless you use the opencv version included with ZED SDK, remove or comment the following line inside zed-config.cmake to avoid many opencv related link errors:

SET(OpenCV_DIR ${ZED_DIR}/dependencies/opencv_3.1.0 CACHE BOOL "" FORCE)

cheers, Mathieu

DenTechs commented 10 months ago

Thanks for your time! I'll give it a try this afternoon