ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

build ros noetic in ubuntu 22.04

asked 2022-06-09 02:36:36 -0500

czworldy gravatar image

Is there any way i can build noetic from source code in ubuntu 22.04? I try to follow the guide of http://wiki.ros.org/noetic/Installati... but meet dont work when use:

rosdep install --from-paths ./src --ignore-packages-from-source --rosdistro noetic -y

i get $ rosdep install --from-paths ./src --ignore-packages-from-source --rosdistro noetic -y ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: ros_base: No definition of [bond_core] for OS version [Jammy Jellyfish] diagnostic_common_diagnostics: [hddtemp] defined as "not available" for OS version [*]

Is there any way i can build noetic from source code in ubuntu 22.04?

edit retag flag offensive close merge delete

Comments

hey, were you able to solve this? please help

Anukriti gravatar image Anukriti  ( 2022-09-14 16:56:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-07-02 08:53:20 -0500

lucasw gravatar image

updated 2023-08-06 10:40:48 -0500

It's a little messy but I've done this in https://github.com/lucasw/ros_from_sr... - I can help you through either method I've used. I didn't use rosdep but maybe that could be made to work also.

The first thing I did is build everything from source and that should still work (but I haven't done it recently), but then found out that there are some basic ros packages available apt install in 22.04 and created these instructions to get many other packages built that aren't available through apt. There is a Dockerfile and github action that illustrates the same process (though the ubuntu-22.04 github action runs-on target is currently in beta and sometimes some apt installs fail on it because github action instances use mirrors of apt repos, hosted on azure so probably much faster but recently got out of sync and broke builds).

There is also a pre-built install catkin_ws here https://github.com/lucasw/ros_from_sr... though understandable if you don't want to use that for security reasons (but the zip files that are uploaded by the actions rather than me should be better https://github.com/lucasw/ros_from_sr... except that'll disappear in 90 days), and also it'll probably need to get rebuilt after a while as 22.04 packages are updated and I need to manually do that.

I'm fine providing more details here, I can flesh this answer out more in response to comments, or I'll update ros_from_src scripts and instructions and you could file an issue there to follow up on something that isn't working- either way is good.

If you want to use a ros package that isn't available through apt install or that I have in base_repos.yaml (and didn't CATKIN_IGNORE), you can try git cloning it from the official repository but you may run into build issues (especially if it uses C++)- I can help with that.

edit flag offensive delete link more

Comments

Thanks for providing the branches with the fixes! I just managed to have it running and I had to alternate between updating some CMakeLists.txt to compile C++17 or C++20 and using your updated branches. Some repos like visualization_tutorials also have pull requests open that would help this whole build process.

Among packages to be installed, there was also libogre-1.12-dev

ignacio gravatar image ignacio  ( 2023-01-13 18:55:19 -0500 )edit

Hi,

have you tried to run your scripts this year? Are there any further updates from ubuntu, which my cause some errors, issues? Thanks Balint

vargabalint gravatar image vargabalint  ( 2023-07-21 05:21:51 -0500 )edit

Hi, I recently also had to switch to Ubuntu 22.04 and ended up with building ROS Noetic completely from sources. I summarized my journey at the following post Building ROS Noetic on Ubuntu 22.04

reilu gravatar image reilu  ( 2023-08-03 14:10:36 -0500 )edit

@vargabalint - I haven't been running the from-scratch scripts on my own systems but they do run in github actions (when triggered), I've been using the debian base packages and then cloning a bunch of modified packages and building those as mentioned above- that said the github action isn't succeeding in my dev branch- I'll take a look to see why

lucasw gravatar image lucasw  ( 2023-08-06 10:54:42 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-06-09 02:36:36 -0500

Seen: 12,498 times

Last updated: Aug 06 '23