- edited description
Unable to link to ROS Lunar libraries
Issue #8
resolved
Whenever I try to link against ROS lunar, I get a bunch of errors saying it's unable to find the ROS libraries. I believe it's an issue with the makefile, but I'm unsure.
CMakeFiles/dbc_node.dir/src/dbc_node.cpp.o: In function `main':
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)'
I'm aware you don't specifically list lunar as a supported version of ROS, but it seems like it should work. If nothing else, it should find the ROS libraries correctly.
Comments (4)
-
reporter -
I could not reproduce the build error with the following docker commands:
sudo apt install docker.io sudo docker pull ros:lunar-ros-base sudo docker run -i -t ros:lunar-ros-base /bin/bash mkdir -p catkin_ws/src cd catkin_ws hg clone https://bitbucket.org/DataspeedInc/lusb src/lusb hg clone https://bitbucket.org/DataspeedInc/dataspeed_can src/dataspeed_can hg clone https://bitbucket.org/DataspeedInc/dbw_mkz_ros src/dbw_mkz_ros apt update && rosdep install --from-paths src --ignore-src -y catkin_make_isolated catkin_make exit
-
reporter I'm not sure why. I'm running this on my desktop with ubuntu natively installed. I uninstalled and reinstalled ROS using apt and I still get the same issue. I've never had this with other libs. I finally ended up using a kinetic-ros distro just to continue...
-
- changed status to resolved
- Log in to comment