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

the target was not found when colcon build gxf_issac_image_flip #48

Open
willSapgreen opened this issue Jun 7, 2024 · 4 comments
Open

Comments

@willSapgreen
Copy link

To whom it may concern,
executing colcon build in ROS2 humble environment, I have the following build error message

23.13 CMake Error at /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_library.cmake:66 (add_library):
23.13 Target "gxf_isaac_image_flip" links to target "magic_enum::magic_enum" but
23.13 the target was not found. Perhaps a find_package() call is missing for an
23.13 IMPORTED target, or an ALIAS target is missing?
23.13 Call Stack (most recent call first):
23.13 CMakeLists.txt:33 (ament_auto_add_library)

Thank you for your precious time on this matter,
and please let me know if any questions or suggestions.

@HappySamuel
Copy link

HappySamuel commented Jul 4, 2024

Hi @willSapgreen

Have you found a solution to this? As i faced similar issue too, currently stuck at gxf_isaac_image_flip
When i do colcon build --symlink-install, received following errors:

/home/agx-orin/workspaces/isaac_ros-dev/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip_extension.cpp:19:10: fatal error: gxf/core/gxf.h: No such file or directory
   19 | #include "gxf/core/gxf.h"
/home/agx-orin/workspaces/isaac_ros-dev/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.hpp:24:10: fatal error: gxf/core/entity.hpp: No such file or directory
   24 | #include "gxf/core/entity.hpp"

I checked those 2 files, they're well located inside the directory
/home/agx-orin/workspaces/isaac_ros-dev/install/isaac_ros_gxf/share/isaac_ros_gxf/gxf/include/gxf/core

Best
Samuel

@brettpac
Copy link

Similar problem, if not the same.
Attempting to build this in an IsaacROSDev container.

Finished <<< isaac_ros_scene_recorder [1.33s]
Starting >>> isaac_ros_mission_client
Finished <<< gxf_isaac_sight [0.83s]                                                                                                                                                                 
Finished <<< sm_dance_bot [1.17s]
Finished <<< gxf_isaac_message_compositor [0.85s]
Finished <<< gxf_isaac_flatscan_localization [0.83s]
Finished <<< gxf_isaac_gems [0.86s]
Starting >>> gxf_isaac_gxf_helpers
Starting >>> gxf_isaac_atlas
Starting >>> gxf_isaac_messages
Finished <<< gxf_isaac_ros_messages [0.88s]                                                                                                                            
Finished <<< gxf_isaac_triton [0.87s]
Finished <<< gxf_isaac_messages_throttler [0.86s]
Finished <<< gxf_isaac_point_cloud [0.89s]
Finished <<< gxf_isaac_optimizer [0.91s]
Finished <<< isaac_ros_mission_client [0.79s]
Finished <<< gxf_isaac_cuda [0.90s]
Finished <<< gxf_isaac_argus [0.89s]
Finished <<< sm_dance_bot_warehouse_3 [1.24s]
Finished <<< gxf_isaac_localization [0.90s]
Finished <<< gxf_isaac_hesai [0.90s]
Finished <<< sm_dance_bot_warehouse_2 [1.26s]
Starting >>> gxf_isaac_ros_cuda
Finished <<< sm_dance_bot_warehouse [1.29s]
Finished <<< gxf_isaac_range_scan_processing [0.93s]
--- stderr: gxf_isaac_segway
CMake Warning at CMakeLists.txt:32 (message):
  Unsupported architecture: x86_64.  gxf_isaac_segway is only supported on
  aarch64 platforms.


---
Finished <<< gxf_isaac_segway [0.93s]
--- stderr: gxf_isaac_image_flip                                                                                                                                              
In file included from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/parameter_registrar.hpp:31,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/registrar.hpp:28,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/component.hpp:31,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/allocator.hpp:21,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/multimedia/video.hpp:28,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.hpp:26,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip.cpp:18:
/workspaces/isaac_ros-dev/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.
In file included from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/parameter_registrar.hpp:31,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/registrar.hpp:28,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/core/component.hpp:31,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/codelet.hpp:21,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/default_extension.hpp:28,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_nitros/isaac_ros_gxf/gxf/core/include/gxf/std/extension_factory_helper.hpp:24,
                 from /workspaces/isaac_ros-dev/src/isaac_ros_image_pipeline/isaac_ros_gxf_extensions/gxf_isaac_image_flip/gxf/image_flip_extension.cpp:20:
/workspaces/isaac_ros-dev/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....
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
---

`

@oxcarxierra
Copy link

Hi, I had the same issue with @brettpac, and just solved it by adding include_directories(/opt/ros/humble/include) in every CMakeLists.txt files in packages with problem.

Seems like this bug is gonna be reproduced a lot, I wonder which architecture are you using in the device.
Is this occuring in x86_64 device? or AGX Orin?

@brettpac
Copy link

Hi @oxcarxierra, not sure if this was addressed to me but at the moment I'm getting this error on an x86_64 workstation, using IsaacROSDev containers.

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

4 participants