NVIDIA-ISAAC-ROS / isaac_ros_nitros

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

Colcon Build Failure due to Missing of several dependencies #44

Open HappySamuel opened 1 week ago

HappySamuel commented 1 week 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 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