Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error !!! #4

Open
Liyuanyuan05 opened this issue May 12, 2021 · 4 comments
Open

build error !!! #4

Liyuanyuan05 opened this issue May 12, 2021 · 4 comments

Comments

@Liyuanyuan05
Copy link

ros 18.04 melodic !
when i build your project, i meet this error!
[ 85%] Built target bin_vocabulary
../lib/libORB_SLAM2.so:对‘ompl::base::GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘octomap::OcTreeLUT::OcTreeLUT(unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘octomap::OcTreeLUT::genNeighborKey(octomap::OcTreeKey const&, signed char const&, octomap::OcTreeKey&) const’未定义的引用

can you help me figure out this ? thank you !

@zzx9636
Copy link
Collaborator

zzx9636 commented May 13, 2021

Maybe relevant to this post ? Can you check it out to see if it helps.

@Liyuanyuan05
Copy link
Author

it do not help me . can you have other method to solve this problem?

@Liyuanyuan05
Copy link
Author

88%] Linking CXX executable ../Examples/Stereo/stereo_euroc
[ 90%] Linking CXX executable ../Examples/Monocular/mono_kitti
[ 92%] Linking CXX executable ../Examples/Monocular/mono_tum
[ 95%] Linking CXX executable ../Examples/RGB-D/rgbd_tum
[ 97%] Linking CXX executable ../Examples/Stereo/stereo_kitti
[100%] Linking CXX executable ../Examples/Monocular/mono_euroc
../lib/libORB_SLAM2.so:对‘ompl::base::GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
../lib/libORB_SLAM2.so:对‘ompl::base::GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base:collect2: error: ld returned 1 exit status
:GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
../lib/libORB_SLAM2.so:对‘ompl::base::GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
../lib/libORB_SLAM2.so:对‘ompl::base::GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
../lib/libORB_SLAM2.so:对‘ompl::base::GenericParam::truthValueTo01Str(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::RejectionInfSampler::RejectionInfSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptrompl::base::SpaceInformation const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptrompl::base::StateSpace const&)’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::OptimizationObjective::allocInformedStateSampler(std::shared_ptrompl::base::ProblemDefinition, unsigned int) const’未定义的引用
../lib/libORB_SLAM2.so:对‘ompl::base::Planner::Planner(std::shared_ptrompl::base::SpaceInformation const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/mono_tum.dir/build.make:174: recipe for target '../Examples/Monocular/mono_tum' failed
make[2]: *** [../Examples/Monocular/mono_tum] Error 1
CMakeFiles/stereo_kitti.dir/build.make:174: recipe for target '../Examples/Stereo/stereo_kitti' failed
make[2]: *** [../Examples/Stereo/stereo_kitti] Error 1
CMakeFiles/stereo_euroc.dir/build.make:174: recipe for target '../Examples/Stereo/stereo_euroc' failed
CMakeFiles/mono_kitti.dir/build.make:174: recipe for target '../Examples/Monocular/mono_kitti' failed
CMakeFiles/mono_euroc.dir/build.make:174: recipe for target '../Examples/Monocular/mono_euroc' failed
CMakeFiles/rgbd_tum.dir/build.make:174: recipe for target '../Examples/RGB-D/rgbd_tum' failed
make[2]: *** [../Examples/Stereo/stereo_euroc] Error 1
make[2]: *** [../Examples/Monocular/mono_kitti] Error 1
make[2]: *** [../Examples/Monocular/mono_euroc] Error 1
make[2]: *** [../Examples/RGB-D/rgbd_tum] Error 1
CMakeFiles/Makefile2:326: recipe for target 'CMakeFiles/mono_tum.dir/all' failed
make[1]: *** [CMakeFiles/mono_tum.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/stereo_kitti.dir/all' failed
make[1]: *** [CMakeFiles/stereo_kitti.dir/all] Error 2
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/mono_kitti.dir/all' failed
make[1]: *** [CMakeFiles/mono_kitti.dir/all] Error 2
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/rgbd_tum.dir/all' failed
make[1]: *** [CMakeFiles/rgbd_tum.dir/all] Error 2
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/mono_euroc.dir/all' failed
make[1]: *** [CMakeFiles/mono_euroc.dir/all] Error 2
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/stereo_euroc.dir/all' failed
make[1]: *** [CMakeFiles/stereo_euroc.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@AONIJIANG
Copy link

I have the same build error. Have you solved the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants