-
Notifications
You must be signed in to change notification settings - Fork 486
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
ROS2 Jazzy fails to build because of OpenCV #702
Comments
Also tried building opencv:4.8.1 to see if it would build and it failed as well. Command: Build log(trimmed it a bit so it would fit)
|
Hi @0Unkn0wn, thanks for the logs, I just tried Also going back and trying it with OpenCV 4.8.1 now. However prior to that OpenCV may encounter errors with the newer versions of CUDA, that had needed fixed in OpenCV. So there could encounter a situation where it's not possible to build both ROS + OpenCV/CUDA together. So either ROS would need patched for newer OpenCV, or use the vanilla OpenCV built without CUDA. |
Hi @dusty-nv, thank you for the updates. Just wondering, if would it be possible to skip OpenCV for my build with ROS2 Jazzy and Jax? I’m not planning to use it right away, so if there’s a way to leave it out or any workaround you’d suggest, that’d be great. If it works with OpenCV 4.8.1, that would work for me as well. Thanks again! |
Hi @0Unkn0wn, you can try removing opencv from the depends list here: jetson-containers/packages/ros/config.py Line 10 in 20e7292
And then remove opencv from these skip_keys: jetson-containers/packages/ros/ros2_build.sh Line 109 in 20e7292
|
Hi @dusty-nv I managed to build the container with Jazzy and Jax by removing OpenCV as you have shown me so thank you very much! For future reference, this is the build that worked: Just one last question, any idea why it only works when I don’t set the Python version to 3.11 or 3.12? Error log
|
Considering that the error is emanating from colcon, you could try adding a |
There is some API breaking from ROS's image_proc with higher OpenCV versions. (4.6.0 is default OpenCV shipped with 24.04 ) Also for the 12.6 CUDA support in OpenCV you need to use latest branch, but that breaks some packages in ROS such as image_proc But for those of us who just want to run Jazzy with GPU support and don't care about CUDA or OpenCV versions this is still amazing! Thanks @dusty-nv @0Unkn0wn |
ok thanks @martincerven , I can go back and build OpenCV 4.6.0 for JetPack 6.1. Am I correct in understanding that may allow the build to continue on? |
I think so. I built both base and desktop. (although I just skipped CUDA OpenCV and used the one that comes with Ubuntu). |
I tried building an image with ROS2 Jazzy and Jax and it seems that OpenCV failed to install which stops me from creating the image.
I have also tried Humble, and it also fails on the same step if the Python version is set to 3.11. Any idea what happened?
Command:
PYTHON_VERSION=3.11 jetson-containers build --name=ros2jazzy_jax_base ros:jazzy-desktop jax:0.4.32
Build log
Jtop log
GPU info
Storage info
The text was updated successfully, but these errors were encountered: