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

colcon build --mixin release CMake error gz_sim_vendor #931

Closed
muhidabid opened this issue Jul 27, 2024 · 27 comments
Closed

colcon build --mixin release CMake error gz_sim_vendor #931

muhidabid opened this issue Jul 27, 2024 · 27 comments

Comments

@muhidabid
Copy link

muhidabid commented Jul 27, 2024

Description

I am unable to colcon build due to a CMake error. I have spent a day trying to fix this but no luck so far.

Your environment

  • ROS Distro: [humble|iron]
  • OS Version: Ubuntu 22.04.4 Jammy Jellyfish (VirtualBox 19GB RAM, 50GB storage)
  • Build: Followed Getting Started Tutorial

Steps to reproduce

Installed ROS2 Iron following this page. Then setup moveit2 following this page

Expected behaviour

The project should build without errors

Backtrace or Console output

Gist link

@christiandumasrobo
Copy link

Exactly the same issue today, will be following this thread.

@17609394ch
Copy link

me too

@yusufkizgin
Copy link

Did you solve this issue? I have same issue.

@muhidabid
Copy link
Author

I've been trying but no luck so far @yusufkizgin

@yusufkizgin
Copy link

Okay, i am following. Thank you.

@T3rO
Copy link

T3rO commented Jul 31, 2024

For ROS Iron I deleted gz_ros2_control from ws_moveit/src then download again, but the iron branch: git clone https://github.com/ros-controls/gz_ros2_control -b iron

@muhidabid
Copy link
Author

@T3rO I just tried that but it gives me a new error upon colcon build: Error output gist

@li-huanhuan
Copy link

me too

ubuntu22.04.4
humble

Screenshot from 2024-08-01 11-31-25

@sea-bass
Copy link
Contributor

sea-bass commented Aug 1, 2024

Are you all checking out the humble branch of this repo?

There have been some recent changes on the main branch here regarding the ros2_kortex repo (which pulls in the offending dependency), but there are meant to track ROS 2 Rolling on Ubuntu 24.04 going forward.

For Iron, I think the maintainers will/should probably cut a separate branch and this may not be working at the moment unless you manually roll your version of ros2_kortex to this one: https://github.com/Kinovarobotics/ros2_kortex

@T3rO
Copy link

T3rO commented Aug 1, 2024

@T3rO I just tried that but it gives me a new error upon colcon build: Error output gist

Yes I had this error too. I used this fix: PickNikRobotics/ros2_robotiq_gripper#60

@T3rO
Copy link

T3rO commented Aug 1, 2024

@sea-bass I think an Iron branch in this repo would be nice, and then also mention that a specific branch has to be checked out in the installation guide

@sea-bass
Copy link
Contributor

sea-bass commented Aug 1, 2024

@sea-bass I think an Iron branch in this repo would be nice, and then also mention that a specific branch has to be checked out in the installation guide

I see. That one is also due to there being newer changes on Rolling, and you could grab the humble branch of that repo.

All in all, it seems that all these new updates need to be handled correctly on non-rolling versions of the tutorials repo.

@MartinsSmirnovs
Copy link

I have a feeling that I will never be able to go through moveit tutorials. First #918 which does not allow to get the environment itself and now this.

@sea-bass
Copy link
Contributor

sea-bass commented Aug 1, 2024

OK yeah so the issue is that the gz_sim_vendor package is only available on Jazzy and Rolling, per https://index.ros.org/search/?term=gz_sim_vendor

Meaning the main branch of this repo is not currently compatible with humble/iron.

@T3rO
Copy link

T3rO commented Aug 2, 2024

Is there a branch in this repo that is compatible with iron?

@muhidabid
Copy link
Author

@sea-bass I tried rolling but that gives me a new error

image

@sea-bass
Copy link
Contributor

sea-bass commented Aug 2, 2024

Is there a branch in this repo that is compatible with iron?

Nope, I think there are only branches for LTS releases, meaning a humble branch and then a main (which right now is supposed to work for Jazzy/Rolling).

With luck, the humble branch should also work with Iron as the changes were fairly minimal and they use the same supported Ubuntu version (22.04).

@sea-bass
Copy link
Contributor

sea-bass commented Aug 2, 2024

@sea-bass I tried rolling but that gives me a new error

As documented in the getting started tutorial, try this from your workspace root to install any missing packages like the one you're pointing out?

rosdep install --from-paths src -y --ignore-src

@muhidabid
Copy link
Author

@sea-bass I followed the getting started tutorial and installed from my workspace root using rosdep install --from-paths src -y --ignore-src but I am still getting the same error

@sea-bass
Copy link
Contributor

sea-bass commented Aug 2, 2024

@sea-bass I followed the getting started tutorial and installed from my workspace root using rosdep install --from-paths src -y --ignore-src but I am still getting the same error

You should check if the command ran successfully, i.e., it found all the packages or it failed to resolve some. Also it helps to do a sudo apt update first to make sure your repos are up to date.

If you switched ros distros, you may also need to go through the rosdep init / rosdep update cycle again as well.

Anyways, I am unable to debug every small issue for everyone, so just sharing some pointers for people to consider and/or contribute fixes as you find them.

All the best!

@Thgm01
Copy link

Thgm01 commented Aug 3, 2024

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

@yusufkizgin
Copy link

actually i deleted even my virtual machine but it doesn't work :/

@kimhw1009
Copy link

kimhw1009 commented Aug 4, 2024

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

I tried this way and it was successful.
Change to ROS humble.

@yusufkizgin
Copy link

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

I tried this and it worked. obrigado :)

@muhidabid
Copy link
Author

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

It took a few tries but this worked for me as well. Thank you! @Thgm01

@sea-bass
Copy link
Contributor

Thanks to everyone for sharing your solutions!

As a recap: Since the main branch of this repo tracks ROS 2 rolling, it is not guaranteed to work on Humble. So, as many have pointed out, you can use the humble branch of the tutorials on Humble.

@Ivan-Rod-Diz
Copy link

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

This also worked fo me :)

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