Colcon Build Failure due to Missing of several dependencies
Hi
I faced the following error when colcon build --symlink-install the isaac_ros_nitros and bumps into several errors. Some of them already found the solution, but some still unresolved. Help needed
Error 1: Missing of magic_enum
--- stderr: gxf_isaac_utils
CMake Error at /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_library.cmake:66 (add_library):
Target "gxf_isaac_utils" links to target "magic_enum::magic_enum" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:48 (ament_auto_add_library)
CMake Generate step failed. Build files cannot be regenerated correctly.
---
Error 2: Missing of nvcv/Tensor.hpp
--- stderr: custom_nitros_dnn_image_encoder
In file included from /home/agx-orin/workspaces3.0.1/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_managed_nitros_examples/custom_nitros_dnn_image_encoder/src/image_encoder_node.cpp:18:
/home/agx-orin/workspaces3.0.1/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_managed_nitros_examples/custom_nitros_dnn_image_encoder/include/custom_nitros_dnn_image_encoder/image_encoder_node.hpp:30:10: fatal error: nvcv/Tensor.hpp: No such file or directory
30 | #include <nvcv/Tensor.hpp>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:146: all] Error 2
---
Best Samuel
Solution 1 - Missing of magic_enum
git clone https://github.com/Neargye/magic_enum.git
cd magic_enum && mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
Solution 2 - Missing of Missing of nvcv/Tensor.hpp I briefly looked how this is solved in the dockerfile for the ISAAC-ROS Docker.
As I am using this on Orin, these are the aarch64 sources - you will need x86-sources if you try to run that on your DGX or Desktop-Machine.
wget https://github.com/CVCUDA/CV-CUDA/releases/download/v0.5.0-beta/nvcv-lib-0.5.0_beta_DP-cuda12-aarch64-linux.deb
sudo dpkg -i nvcv-lib-0.5.0_beta_DP-cuda12-aarch64-linux.deb
wget https://github.com/CVCUDA/CV-CUDA/releases/download/v0.5.0-beta/nvcv-dev-0.5.0_beta_DP-cuda12-aarch64-linux.deb
sudo dpkg -i nvcv-dev-0.5.0_beta_DP-cuda12-aarch64-linux.deb
Hi @wegmanma
Check with you, which Jetpack version are you running on your Orin ?
Best, Samuel
Hi @wegmanma
Check with you, which Jetpack version are you running on your Orin ?
Best, Samuel
Hello Samuel
I am running Jetpack 6 (Jetson Linux R36.3.0) with the latest ISAAC ROS.
Best regards
Solution 1 - Missing of
magic_enumgit clone https://github.com/Neargye/magic_enum.git cd magic_enum && mkdir build && cd build cmake .. make -j$(nproc) sudo make install
Still can not work...
Solution 1 - Missing of
magic_enumgit clone https://github.com/Neargye/magic_enum.git cd magic_enum && mkdir build && cd build cmake .. make -j$(nproc) sudo make installStill can not work...
It seems a little different with my error:
--- stderr: gxf_isaac_image_flip
In file included from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/parameter_registrar.hpp:31,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/registrar.hpp:28,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/component.hpp:31,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/allocator.hpp:21,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/multimedia/video.hpp:28,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.hpp:26,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.cpp:18:
/home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/expected_macro.hpp:24:10: fatal error: magic_enum.hpp: No such file or directory
24 | #include "magic_enum.hpp" // NOLINT(build/include)
| ^~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/gxf_isaac_image_flip.dir/build.make:90: CMakeFiles/gxf_isaac_image_flip.dir/gxf/image_flip.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/parameter_registrar.hpp:31,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/registrar.hpp:28,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/component.hpp:31,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/codelet.hpp:21,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/default_extension.hpp:28,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/extension_factory_helper.hpp:24,
from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip_extension.cpp:20:
/home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/expected_macro.hpp:24:10: fatal error: magic_enum.hpp: No such file or directory
24 | #include "magic_enum.hpp" // NOLINT(build/include)
| ^~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/gxf_isaac_image_flip.dir/build.make:76: CMakeFiles/gxf_isaac_image_flip.dir/gxf/image_flip_extension.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/gxf_isaac_image_flip.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< gxf_isaac_image_flip [1.76s, exited with code 2]
Solution 2 - Missing of Missing of nvcv/Tensor.hpp I briefly looked how this is solved in the dockerfile for the ISAAC-ROS Docker.
As I am using this on Orin, these are the aarch64 sources - you will need x86-sources if you try to run that on your DGX or Desktop-Machine.
wget https://github.com/CVCUDA/CV-CUDA/releases/download/v0.5.0-beta/nvcv-lib-0.5.0_beta_DP-cuda12-aarch64-linux.deb
sudo dpkg -i nvcv-lib-0.5.0_beta_DP-cuda12-aarch64-linux.deb
wget https://github.com/CVCUDA/CV-CUDA/releases/download/v0.5.0-beta/nvcv-dev-0.5.0_beta_DP-cuda12-aarch64-linux.deb
sudo dpkg -i nvcv-dev-0.5.0_beta_DP-cuda12-aarch64-linux.deb
Thanks @wegmanma for the solution. Yes, it is the solution for Error #2 indeed.
It seems a little different with my error:
--- stderr: gxf_isaac_image_flip In file included from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/parameter_registrar.hpp:31, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/registrar.hpp:28, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/component.hpp:31, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/allocator.hpp:21, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/multimedia/video.hpp:28, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.hpp:26, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.cpp:18: /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/expected_macro.hpp:24:10: fatal error: magic_enum.hpp: No such file or directory 24 | #include "magic_enum.hpp" // NOLINT(build/include) | ^~~~~~~~~~~~~~~~ compilation terminated. gmake[2]: *** [CMakeFiles/gxf_isaac_image_flip.dir/build.make:90: CMakeFiles/gxf_isaac_image_flip.dir/gxf/image_flip.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... In file included from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/parameter_registrar.hpp:31, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/registrar.hpp:28, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/component.hpp:31, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/codelet.hpp:21, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/default_extension.hpp:28, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/extension_factory_helper.hpp:24, from /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip_extension.cpp:20: /home/breeze/Desktop/workplace/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/expected_macro.hpp:24:10: fatal error: magic_enum.hpp: No such file or directory 24 | #include "magic_enum.hpp" // NOLINT(build/include) | ^~~~~~~~~~~~~~~~ compilation terminated. gmake[2]: *** [CMakeFiles/gxf_isaac_image_flip.dir/build.make:76: CMakeFiles/gxf_isaac_image_flip.dir/gxf/image_flip_extension.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/gxf_isaac_image_flip.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2 --- Failed <<< gxf_isaac_image_flip [1.76s, exited with code 2]
@Breezewrf
You try this modification, edit the line 24 of this file ${ISAAC_ROS_WS}/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/expected_macro.hpp
from #include "magic_enum.hpp" // NOLINT(build/include)
into #include "magic_enum/magic_enum.hpp" // NOLINT(build/include)
same errors occur
Also faced this issue with magic_enum missing Thank you @HappySamuel for suggesting the magic_enum/magic_enum.hpp I also added magic_enum to the CMakeLists find_package(magic_enum REQUIRED), but not sure it is necessary.