NVIDIA-ISAAC-ROS / isaac_ros_nitros

NVIDIA Isaac Transport for ROS package for hardware-acceleration friendly movement of messages
Other
102 stars 23 forks source link

Colcon Build Failure due to Missing of several dependencies #44

Open HappySamuel opened 4 months ago

HappySamuel commented 4 months ago

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

HappySamuel commented 4 months ago

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
wegmanma commented 4 months ago

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

HappySamuel commented 4 months ago

Hi @wegmanma

Check with you, which Jetpack version are you running on your Orin ?

Best, Samuel

wegmanma commented 4 months ago

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

Breezewrf commented 1 week ago

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

Still can not work...

Breezewrf commented 1 week ago

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

Still 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]