ublox_f9p icon indicating copy to clipboard operation
ublox_f9p copied to clipboard

ublox_gps does not depend on rtcm_msgs - fails to build with catkin build

Open gcrowards opened this issue 4 years ago • 10 comments

Fixed it by adding rtcm_msgs to package.xml and CMakeLists.txt locally.

gcrowards avatar Sep 11 '20 18:09 gcrowards

What have you done exactly? I can't get it working... Your help would be welcome! :)

bjajoh avatar Oct 25 '20 23:10 bjajoh

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

bjajoh avatar Oct 25 '20 23:10 bjajoh

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

gcrowards avatar Oct 26 '20 04:10 gcrowards

Ok thanks, yeah I did that and this error followed. I'll double check with melodic instead of noetic.

bjajoh avatar Oct 26 '20 08:10 bjajoh

Ok, it seems to be a ROS noetic related issue. Melodic just works fine. :)

bjajoh avatar Oct 27 '20 14:10 bjajoh

Screenshot from 2021-08-15 17-05-06 There is an error like this, but there is no rtcm_msgs in the package, how did you resolve it?

joooyh avatar Aug 15 '21 08:08 joooyh

rosdep install --from-paths src --ignore-src -r -y Execute this from your top level workspace.

bjajoh avatar Aug 15 '21 08:08 bjajoh

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?

mtlazaro avatar Sep 28 '21 19:09 mtlazaro

Yeah I just used melodic 🙃

bjajoh avatar Sep 29 '21 07:09 bjajoh

This pull request solves this issue: https://github.com/ros-agriculture/ublox_f9p/pull/11

mtlazaro avatar Sep 29 '21 11:09 mtlazaro