Unable to link ROS libraries using Lunar
Hey guys, hopefully you can help me out with this. I'm trying to make the dataspeed DBW package. However, when I do, I keep getting errors that it can't link ros libraries.
dbc_node.cpp:(.text+0x13a): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
dbc_node.cpp:(.text+0x196): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
dbc_node.cpp:(.text+0x21b): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
dbc_node.cpp:(.text+0x2a1): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const'
dbc_node.cpp:(.text+0x338): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
dbc_node.cpp:(.text+0x447): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
They don't explicitly say they support lunar, but it doesn't seem like it's something that should be causing a problem. Does lunar require a different way of being linked or is there some other steps I can take. (Short of uninstalling lunar and going back to indigo or kinetic)
Thanks guys
Please add links to the packages that you are referring to.
Apologies: https://bitbucket.org/DataspeedInc/db...
(I had it there, but after signing in I had to rewrite the post. Guess I forgot it then.)
I've checked the repository, but at least in the
default
branch I cannot find a file nameddbc_node.cpp
. Can you check that is the correct repository?It's under src/dataspeed_can/dataspeed_can_tools/src/
Which is not part of the repository you linked to, but of another, different repository.
I think this would be something to report over at DataspeedInc/dataspeed_can/issues, as this is a build error, not a usage problem.
It might be that they were depending on one of the libs transitively brining in the symbols that are mising.
Yeah, I was going to do that but figured I would ask first to make sure it wasn't an issue with my setup. Thanks for your help!
I don't know whether it is an issue with your setup, but I would still report it over there.
If/when you open an issue, please post a link to the issue here on ROS Answers, so we keep things connected.