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

ERROR in building the convex_plane_decomposition_ros #10

Open
ajxdhe opened this issue Mar 28, 2024 · 2 comments
Open

ERROR in building the convex_plane_decomposition_ros #10

ajxdhe opened this issue Mar 28, 2024 · 2 comments

Comments

@ajxdhe
Copy link

ajxdhe commented Mar 28, 2024

Ubuntu 20.04
ROS noetic

when I ran catkin build convex_plane_decomposition_ros It occured

/usr/include/boost/parameter/config.hpp:61: note: this is the location of the previous definition 61 | #define BOOST_PARAMETER_MAX_ARITY BOOST_MPL_LIMIT_VECTOR_SIZE | /usr/bin/ld: CMakeFiles/convex_plane_decomposition_ros_TestShapeGrowing.dir/test/TestShapeGrowing.cpp.o: undefined reference to symbol '__gmpn_com' /usr/bin/ld: /lib/x86_64-linux-gnu/libgmp.so.10: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/convex_plane_decomposition_ros_TestShapeGrowing.dir/build.make:227:/home/skywalker/quardroped/devel/.private/convex_plane_decomposition_ros/lib/convex_plane_decomposition_ros/convex_plane_decomposition_ros_TestShapeGrowing] 错误 1 make[1]: *** [CMakeFiles/Makefile2:225:CMakeFiles/convex_plane_decomposition_ros_TestShapeGrowing.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... make: *** [Makefile:141:all] 错误 2

@ajxdhe
Copy link
Author

ajxdhe commented Mar 28, 2024

Wish you could help me to solve this issue ,thanks

@tony-hj
Copy link

tony-hj commented Apr 1, 2024

错误原因是因为在链接阶段,编译器无法解释"__gmpn_com"的引用,并在连接libgmp库时出问题。

在convex_plane_decompositon_ros 包的CMakeList.txt文件的target_link_libraries中末尾添加“-lgmp”

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

2 participants