Skip to content

No way in making ./build_all.sh work #156

@Ccettura

Description

@Ccettura

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:

  1. Target conflicts: registration_localization, lidar_localization, and icp_lidar_localization all 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.
  2. CUDA errors on CPU-only systems: Even with BUILD_CUDA=OFF, the registration_localization CMakeLists calls find_package(CUDA REQUIRED) too early, so it fails to configure unless CUDA is fully installed (even when it won’t be used).
  3. Launch file inconsistency: The default launch files assume registration_localization is 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TutorialRelated to tutorials

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions