microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.06k stars 4.48k forks source link

Issues building airsim_ros_pkgs for ROS 2 #4725

Closed bluecamel closed 1 year ago

bluecamel commented 1 year ago

Question

What's your question?

I've managed to build this in the past, but apparently something has changed. I'm now getting the following error:

-- Found airsim_interfaces: 0.1.0 (/home/bluecamel/DB/AirSim/ros2/install/airsim_interfaces/share/airsim_interfaces/cmake)
CMake Error at /home/bluecamel/DB/AirSim/ros2/install/airsim_interfaces/share/airsim_interfaces/cmake/ament_cmake_export_targets-extras.cmake:18 (message):
  Failed to find exported target names in
  '/home/bluecamel/DB/AirSim/ros2/install/airsim_interfaces/share/airsim_interfaces/cmake/airsim_interfaces__rosidl_generator_cExport.cmake'
Call Stack (most recent call first):
  /home/bluecamel/DB/AirSim/ros2/install/airsim_interfaces/share/airsim_interfaces/cmake/airsim_interfacesConfig.cmake:41 (include)
  CMakeLists.txt:23 (find_package)

This happens on clean installs of ros 2 galactic and rolling (using apt) on Ubuntu 20.04.

Include context on what you are trying to achieve

N/A

Context details

Ubuntu 20.04, Airsim 1.8.1 and main, Unreal 4.27.1

Include details of what you already did to find answers

alonfaraj commented 1 year ago

This issue related to cmake version 3.24. More details here. You can downgrade to older versions.

bluecamel commented 1 year ago

That did it. Thanks so much!