ublox_f9p
ublox_f9p copied to clipboard
ublox_gps does not depend on rtcm_msgs - fails to build with catkin build
Fixed it by adding rtcm_msgs to package.xml and CMakeLists.txt locally.
What have you done exactly? I can't get it working... Your help would be welcome! :)
I always end up with:
/usr/bin/ld: CMakeFiles/ublox_gps_node.dir/src/node.cpp.o: in function `ublox_node::UbloxNode::configureUblox()':
node.cpp:(.text+0x82a3): undefined reference to `ublox_node::UbloxNode::kResetWait'
/usr/bin/ld: /home/devel/lib/libublox_gps.so: undefined reference to `ublox_gps::Gps::kSetBaudrateSleepMs'
collect2: error: ld returned 1 exit status
make[2]: *** [ublox_f9p/ublox_gps/CMakeFiles/ublox_gps_node.dir/build.make:137: /home/devel/lib/ublox_gps/ublox_gps] Error 1
make[1]: *** [CMakeFiles/Makefile2:8943: ublox_f9p/ublox_gps/CMakeFiles/ublox_gps_node.dir/all] Error 2
Yours looks like a different error.
Specifically, I added <depend>rtcm_msgs</depend>
to ublox_gps/package.xml and I aded rtcm_msgs to the find_package(...) part of ublox_gps/CMakeLists.txt
Ok thanks, yeah I did that and this error followed. I'll double check with melodic instead of noetic.
Ok, it seems to be a ROS noetic related issue. Melodic just works fine. :)
There is an error like this, but there is no rtcm_msgs in the package, how did you resolve it?
rosdep install --from-paths src --ignore-src -r -y
Execute this from your top level workspace.
I always end up with:
/usr/bin/ld: CMakeFiles/ublox_gps_node.dir/src/node.cpp.o: in function `ublox_node::UbloxNode::configureUblox()': node.cpp:(.text+0x82a3): undefined reference to `ublox_node::UbloxNode::kResetWait' /usr/bin/ld: /home/devel/lib/libublox_gps.so: undefined reference to `ublox_gps::Gps::kSetBaudrateSleepMs' collect2: error: ld returned 1 exit status make[2]: *** [ublox_f9p/ublox_gps/CMakeFiles/ublox_gps_node.dir/build.make:137: /home/devel/lib/ublox_gps/ublox_gps] Error 1 make[1]: *** [CMakeFiles/Makefile2:8943: ublox_f9p/ublox_gps/CMakeFiles/ublox_gps_node.dir/all] Error 2
I'm having the same error on ros-noetic. Did you solve the problem?
Yeah I just used melodic 🙃
This pull request solves this issue: https://github.com/ros-agriculture/ublox_f9p/pull/11