Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gcrowards opened this issue Sep 11, 2020 · 10 comments

Comments

@gcrowards
Copy link

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

@bjajoh
Copy link

bjajoh commented Oct 25, 2020

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

@bjajoh
Copy link

bjajoh commented Oct 25, 2020

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

@gcrowards
Copy link
Author

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

@bjajoh
Copy link

bjajoh commented Oct 26, 2020

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

@bjajoh
Copy link

bjajoh commented Oct 27, 2020

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

@joooyh
Copy link

joooyh commented Aug 15, 2021

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?

@bjajoh
Copy link

bjajoh commented Aug 15, 2021

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

@mtlazaro
Copy link

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?

@bjajoh
Copy link

bjajoh commented Sep 29, 2021

Yeah I just used melodic 🙃

@mtlazaro
Copy link

This pull request solves this issue: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants