teb_local_planner icon indicating copy to clipboard operation
teb_local_planner copied to clipboard

undefined reference to `int boost::math::sign<double>(double const&)'

Open muellerbernd opened this issue 1 year ago • 1 comments

Hello, on archlinux and NixOS we get an error while compiling: undefined reference to int boost::math::sign<double>(double const&) . The reason is that in newer boost versions you need to include a new header. We have fixed that with the following patch:

diff --color -Naur teb_local_planner-release-release-noetic-teb_local_planner/include/teb_local_planner/h_signature.h teb_local_planner-release-release-noetic-teb_local_planner_new/include/teb_local_planner/h_signature.h
--- A/include/teb_local_planner/h_signature.h   2020-05-29 18:12:46.000000000 +0200
+++ B/include/teb_local_planner/h_signature.h   2023-01-20 19:56:56.259209108 +0100
@@ -51,6 +51,7 @@
 #include <functional>
 #include <vector>
 #include <iterator>
+#include <boost/math/special_functions/sign.hpp>


 namespace teb_local_planner

see also this issue in the nix-ros-overlay repo.

muellerbernd avatar Jun 05 '23 19:06 muellerbernd