Skip to content
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

Colcon Build Failure due to Missing of several dependencies #44

Open
HappySamuel opened this issue Jul 5, 2024 · 6 comments
Open

Colcon Build Failure due to Missing of several dependencies #44

HappySamuel opened this issue Jul 5, 2024 · 6 comments

Comments

@HappySamuel
Copy link

HappySamuel commented Jul 5, 2024

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
Copy link
Author

HappySamuel commented Jul 5, 2024

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

@HappySamuel HappySamuel changed the title Colcon Build Failure due to Missing of magic_enum Colcon Build Failure due to Missing of several dependencies Jul 5, 2024
@wegmanma
Copy link

wegmanma commented Jul 18, 2024

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
Copy link
Author

Hi @wegmanma

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

Best,
Samuel

@wegmanma
Copy link

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
Copy link

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
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants