- 
                Notifications
    
You must be signed in to change notification settings  - Fork 457
 
Description
Prerequisites
- I am running the latest version of GAAS
 - I checked the Gitbook documentation and found no answer
 - I checked to make sure that this issue has not already been filed
 - I Googled/Binged the error messages generated by Ubuntu, Gazebo, and PX4
 - I have posted questions regarding Ubuntu, Gazebo, and PX4 in corresponding forums.
 
Issue Template
Context
- Tutorial No.: Tutorial 1 (Offboard Control and Gazebo Simulation)
 - Mavros: 0.33.0
 - ROS: Melodic
 - Gazebo: 9
 - Ubuntu: 18.04
 - System Platform: Docker container (Ubuntu 18.04, x86_64), CPU-only (no NVIDIA GPU)
 
Expected Behavior
The ./build_all.sh script should complete successfully and allow launching the simulation using the provided launch files without errors or crashes, even on systems without a GPU (CPU-only setups).
Current Behavior
The build fails due to multiple overlapping issues:
- Target conflicts: 
registration_localization,lidar_localization, andicp_lidar_localizationall define targets with the same name (e.g.,map_publisher,fast_gicp,fast_vgicp_cuda), causing CMake to error out when more than one is active. - CUDA errors on CPU-only systems: Even with 
BUILD_CUDA=OFF, theregistration_localizationCMakeLists callsfind_package(CUDA REQUIRED)too early, so it fails to configure unless CUDA is fully installed (even when it won’t be used). - Launch file inconsistency: The default launch files assume 
registration_localizationis available and built, but don’t make it clear that the other conflicting localization packages should be disabled manually. 
Screenshots
N/A — full error logs provided below.
Failure Logs
CMake Error at LocalizationAndMapping/registration_localization/CMakeLists.txt:104 (add_executable):
add_executable cannot create target "map_publisher" because another target
with the same name already exists.
CMake Error at LocalizationAndMapping/registration_localization/CMakeLists.txt:130 (cuda_add_library):
Attempt to add library "fast_vgicp_cuda" which already exists.
CUDA_TOOLKIT_INCLUDE-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
CUDA_CUDART_LIBRARY
CUDA_cublas_LIBRARY