-
Notifications
You must be signed in to change notification settings - Fork 31
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
Target UUID::UUID does not exist #40
Comments
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). The pertinent part of the cmake output is:
Essentially what this error is saying is "Your target ( This particular error isn't supposed to be possible. The target One thing that sticks out to me is that you have |
Original comment by Martin Christiansen (Bitbucket: martin-pc). I just updated my CMake script cmake_minimum_required(VERSION 3.5.2) and ran a clean build. The problem still seems to be the same, so I am also really puzzled what is wrong. As far as I know I am getting a warning from the
But this is a standard warning I get for even the example plugin project for Gazebo 9. |
Original comment by Martin Christiansen (Bitbucket: martin-pc). If I remove the I even tried to comment out all the ignition set commands such as 'set(ignition-math4_LIBRARIES ignition-math4::ignition-math4)` in gazebo-config.cmake and the code still compiles. |
Original comment by Martin Christiansen (Bitbucket: martin-pc). The following three lines in
I will look into their cmake files, but I am not too hopefull discovering the error |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). When you comment out Do you happen to know how this behaves on Ubuntu 16.04? Does the issue get introduced in Bionic specifically? I just tested a minimal version of your cmake script against gazebo-9 on Ubuntu 16.04, and it worked fine. However, "minimal" means I removed all the catkin related functions. At this point, I have to assume that the issue is coming from either Bionic or some strange interplay with catkin. Can you tell me which ROS distribution you're using, and how you've gone about installing gazebo-9 side-by-side with your ROS distro? Are you building gazebo-9 from source and installing it to a custom location? |
Original comment by Martin Christiansen (Bitbucket: martin-pc). I have never tried to compile it one Ubuntu 16.04. I am using ROS Melodic and the Gazebo 9 is the osrfoundation install package for Ubuntu bionic using apt install:
I also tried with the Gazebo 9 version that comes with ROS, but the problem is still the same. The
from |
Original comment by Martin Christiansen (Bitbucket: martin-pc). Would there be any additional helpfull information I could print from one of the CMAKE scripts? |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). If you're willing to make modifications to installed files, you could open up the file
and then add some unique printout immediately after the line If you see that printout after running |
Original comment by Martin Christiansen (Bitbucket: martin-pc). I change the
But they do not appear when when I build the code! I have been unable to find a I only found
I also checked the ignition-transport4-config.cmake is executed. |
Original comment by Martin Christiansen (Bitbucket: martin-pc). I found 3 versions of FIndUUID.cmake on my system:
After adding printout messages to them all, I still did not receive any messages when i build the project. It seems like I am missing a |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). FYI, I now feel confident that the issue is the presence of other |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). I think the other |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). Based on those
I think that should create a suitable imported target for libuuid, even when it's being found by the ROS cmake module. On the ignition side, we should rename our vendored cmake module from |
Original comment by Martin Christiansen (Bitbucket: martin-pc). I have just tested the suggested change to the main cmake script and it works! Apparently, I had forgotten to remove one of the messages in the ign FindUUID, that was printed out. What puzzles me right now is that I do not get a printout messages from any of the other FindUUID.cmake files in the build process. |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). It's certainly suspicious that none of the other modules seem to be getting called. I would suggest printing out the values of In the meantime, we should keep this issue open until we have a fix on our end. |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). I think we should keep this open until we fix it, but we could also rename it to mention UUID instead of math4. |
Original comment by Evan Flynn (Bitbucket: flynneva). @martin, just wondering if you are releasing the migrated code you've been working on for running this package with gazebo 9 and ROS Melodic. I've been working on trying to migrate it over as well and have run into similar issues with the UUID library. I've followed the advice above and it solved the same issue you had at first....but now it has uncovered a different one. Getting this error for every plugin package:
I am keeping my migrated code on my github repository [https://github.com/flynneva/rotors_simulator](Link URL) if you want to check it out. Any help or advice you might have would be greatly appreciated! |
Original comment by Jonathan Bohren (Bitbucket: jbohren-hbr). Also observed when building Gazebo 9 with find_package(gazebo REQUIRED)
ign_import_target(UUID) |
Original comment by MarcZofka (Bitbucket: GzMRZ). Hi guys, we are observing the same issue with Ubuntu 16.04, cmake 3.5.1 and Gazebo 9.4.1. While compiling, we obtain the following error:
We tried to fix this in our CMakeLists.txt the following way,
but then we are facing the following error:
I am wondering, if there is no adequate solution or quick bugfix, since i would expect a lot of people having this problem, compiling plugins for Gazebo 9. Regards! |
Original comment by Yosuke Matsusaka (Bitbucket: yosuke). Observed same issue (Target "UUID::UUID" not found & No rule to make target 'uuid') on Ubuntu 16.04, cmake 3.5.1 and Gazebo 9.4.1. After some struggle, found removing |
I'm going to go ahead and close this since it's a very old ticket and I'm not sure if it's still relevant. Please feel free to reopen if you still have this problem. |
Original report (archived issue) by Anonymous.
I have been trying to update an older ROS-Gazebo project, to gazebo 9 that is using ignition math:
https://github.com/ethz-asl/rotors_simulator
Currently I am running Ubuntu 18.04, and Gazebo 9.1 and cmake 3.10.2.
When I compile the code get an error from CMAKE, that looks like this:
The whole response looks like this:
My cmake file currently look like this:
Printing out my ${GAZEBO_LIBRARIES} I got this result:
Diging a bit futher I found the following lines in gazebo-config.cmake
This lead me to "ignition-math4/ignition-math4-config.cmake" where I found this line:
These libray difinitions for ignition seems to be my current problem with my projects cmake script. I am unsure how this fix it, to get the correct library links for my project.
The text was updated successfully, but these errors were encountered: