pamela-project / slambench

SLAM performance evaluation framework
https://apt.cs.manchester.ac.uk/projects/PAMELA/
Other
316 stars 84 forks source link

ORB-SLAMv2 compilation error #52

Closed schmidtp1 closed 1 year ago

schmidtp1 commented 2 years ago

[ 99%] Building CXX object benchmarks/orbslam2/src/original/CMakeFiles/orbslam2-original.dir/orbslam2_library.cpp.o /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2_library.cpp: In member function ‘void TypedParameter::setValue(const char) [with T = orbslam_input_mode]’: /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2_library.cpp:140:26: error: ‘_ptr’ was not declared in this scope {((orbslam_input_mode)_ptr) = orbslam_input_mode::automatic;} ^~~~ /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2library.cpp:140:26: note: suggested alternative: ‘ptr’ {((orbslam_input_mode)_ptr) = orbslam_inputmode::automatic;} ^~~~ ptr /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2_library.cpp:142:26: error: ‘_ptr’ was not declared in this scope {((orbslam_input_mode)_ptr) = orbslam_input_mode::mono;} ^~~~ /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2library.cpp:142:26: note: suggested alternative: ‘ptr’ {((orbslam_input_mode)_ptr) = orbslam_inputmode::mono;} ^~~~ ptr /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2_library.cpp:144:26: error: ‘_ptr’ was not declared in this scope {((orbslam_input_mode)_ptr) = orbslam_input_mode::stereo;} ^~~~ /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2library.cpp:144:26: note: suggested alternative: ‘ptr’ {((orbslam_input_mode)_ptr) = orbslam_inputmode::stereo;} ^~~~ ptr /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2_library.cpp:146:26: error: ‘_ptr’ was not declared in this scope {((orbslam_input_mode)_ptr) = orbslam_input_mode::rgbd;} ^~~~ /home/phillip/devel/slambench/benchmarks/orbslam2/src/original/orbslam2library.cpp:146:26: note: suggested alternative: ‘ptr’ {((orbslam_input_mode*)_ptr) = orbslam_inputmode::rgbd;} ^~~~ ptr make[3]: [benchmarks/orbslam2/src/original/CMakeFiles/orbslam2-original.dir/build.make:63: benchmarks/orbslam2/src/original/CMakeFiles/orbslam2-original.dir/orbslam2_library.cpp.o] Error 1 make[3]: Leaving directory '/home/phillip/devel/slambench/build' make[2]: [CMakeFiles/Makefile2:1091: benchmarks/orbslam2/src/original/CMakeFiles/orbslam2-original.dir/all] Error 2 make[2]: Leaving directory '/home/phillip/devel/slambench/build' make[1]: [Makefile:130: all] Error 2 make[1]: Leaving directory '/home/phillip/devel/slambench/build' make: [Makefile:43: slambench] Error 2

schmidtp1 commented 2 years ago

fixed with the alternative suggested by the compiler