Open salahkhan94 opened 5 years ago
Hey, Great code man. I'm facing few compilation errors however
CMakeFiles/feature_detector.dir/src/ORBExtractor.cpp.o: In function ORB_SLAM2::ORBextractor::ComputeKeyPointsOld(std::vector<std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >, std::allocator<std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > > >&)': ORBExtractor.cpp:(.text+0x22c9): undefined reference tocv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator >&, int, bool)' ORBExtractor.cpp:(.text+0x2617): undefined reference to cv::KeyPointsFilter::retainBest(std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int)' ORBExtractor.cpp:(.text+0x2da7): undefined reference tocv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator >&, int, bool)' ORBExtractor.cpp:(.text+0x2e88): undefined reference to cv::KeyPointsFilter::retainBest(std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int)' CMakeFiles/feature_detector.dir/src/ORBExtractor.cpp.o: In functionORB_SLAM2::ORBextractor::ComputeKeyPointsOctTree(std::vector<std::vector<cv::KeyPoint, std::allocator >, std::allocator<std::vector<cv::KeyPoint, std::allocator > > >&)': ORBExtractor.cpp:(.text+0x66e2): undefined reference to cv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int, bool)' ORBExtractor.cpp:(.text+0x6a5c): undefined reference tocv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator >&, int, bool)' collect2: error: ld returned 1 exit status visual_slam/visual_features_extractor/CMakeFiles/feature_detector.dir/build.make:190: recipe for target '/home/sal/test_ws/devel/lib/visual_features_extractor/feature_detector' failed make[2]: [/home/sal/test_ws/devel/lib/visual_features_extractor/feature_detector] Error 1 CMakeFiles/Makefile2:3038: recipe for target 'visual_slam/visual_features_extractor/CMakeFiles/feature_detector.dir/all' failed make[1]: [visual_slam/visual_features_extractor/CMakeFiles/feature_detector.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 67%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/LoopClosing.cc.o [ 69%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/ORBmatcher.cc.o [ 71%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/ORBextractor.cc.o [ 73%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Converter.cc.o [ 75%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/MapPoint.cc.o [ 76%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/KeyFrame.cc.o [ 78%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Map.cc.o [ 80%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Optimizer.cc.o [ 82%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/PnPsolver.cc.o [ 83%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Frame.cc.o [ 85%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/KeyFrameDatabase.cc.o [ 87%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Sim3Solver.cc.o [ 89%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Initializer.cc.o [ 91%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/FramePublisher.cc.o [ 92%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/MapPublisher.cc.o make[2]: No rule to make target '/home/sal/test_ws/src/visual_slam/orb_slam2/Thirdparty/DBoW2/lib/libDBoW2.so', needed by '/home/sal/test_ws/src/visual_slam/orb_slam2/lib/liborb_slam2.so'. Stop. make[2]: Waiting for unfinished jobs.... [ 94%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/getTimeMs64.cc.o CMakeFiles/Makefile2:1915: recipe for target 'visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/all' failed make[1]: [visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
ORB_SLAM2::ORBextractor::ComputeKeyPointsOld(std::vector<std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >, std::allocator<std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > > >&)': ORBExtractor.cpp:(.text+0x22c9): undefined reference to
cv::KeyPointsFilter::retainBest(std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int)' ORBExtractor.cpp:(.text+0x2da7): undefined reference to
cv::KeyPointsFilter::retainBest(std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int)' CMakeFiles/feature_detector.dir/src/ORBExtractor.cpp.o: In function
cv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int, bool)' ORBExtractor.cpp:(.text+0x6a5c): undefined reference to
Hey, Great code man. I'm facing few compilation errors however
CMakeFiles/feature_detector.dir/src/ORBExtractor.cpp.o: In function >&, int, bool)'
ORBExtractor.cpp:(.text+0x2617): undefined reference to >&, int, bool)'
ORBExtractor.cpp:(.text+0x2e88): undefined reference to >, std::allocator<std::vector<cv::KeyPoint, std::allocator > > >&)':
ORBExtractor.cpp:(.text+0x66e2): undefined reference to >&, int, bool)'
collect2: error: ld returned 1 exit status
visual_slam/visual_features_extractor/CMakeFiles/feature_detector.dir/build.make:190: recipe for target '/home/sal/test_ws/devel/lib/visual_features_extractor/feature_detector' failed
make[2]: [/home/sal/test_ws/devel/lib/visual_features_extractor/feature_detector] Error 1
CMakeFiles/Makefile2:3038: recipe for target 'visual_slam/visual_features_extractor/CMakeFiles/feature_detector.dir/all' failed
make[1]: [visual_slam/visual_features_extractor/CMakeFiles/feature_detector.dir/all] Error 2
make[1]: Waiting for unfinished jobs....
[ 67%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/LoopClosing.cc.o
[ 69%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/ORBmatcher.cc.o
[ 71%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/ORBextractor.cc.o
[ 73%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Converter.cc.o
[ 75%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/MapPoint.cc.o
[ 76%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/KeyFrame.cc.o
[ 78%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Map.cc.o
[ 80%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Optimizer.cc.o
[ 82%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/PnPsolver.cc.o
[ 83%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Frame.cc.o
[ 85%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/KeyFrameDatabase.cc.o
[ 87%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Sim3Solver.cc.o
[ 89%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/Initializer.cc.o
[ 91%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/FramePublisher.cc.o
[ 92%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/MapPublisher.cc.o
make[2]: No rule to make target '/home/sal/test_ws/src/visual_slam/orb_slam2/Thirdparty/DBoW2/lib/libDBoW2.so', needed by '/home/sal/test_ws/src/visual_slam/orb_slam2/lib/liborb_slam2.so'. Stop.
make[2]: Waiting for unfinished jobs....
[ 94%] Building CXX object visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/src/getTimeMs64.cc.o
CMakeFiles/Makefile2:1915: recipe for target 'visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/all' failed
make[1]: [visual_slam/orb_slam2/CMakeFiles/orb_slam2.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
ORB_SLAM2::ORBextractor::ComputeKeyPointsOld(std::vector<std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >, std::allocator<std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > > >&)': ORBExtractor.cpp:(.text+0x22c9): undefined reference to
cv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocatorcv::KeyPointsFilter::retainBest(std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int)' ORBExtractor.cpp:(.text+0x2da7): undefined reference to
cv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocatorcv::KeyPointsFilter::retainBest(std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int)' CMakeFiles/feature_detector.dir/src/ORBExtractor.cpp.o: In function
ORB_SLAM2::ORBextractor::ComputeKeyPointsOctTree(std::vector<std::vector<cv::KeyPoint, std::allocatorcv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, int, bool)' ORBExtractor.cpp:(.text+0x6a5c): undefined reference to
cv::FAST(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator