SDK Build Issues
CMake install fails with DDSC_RUNTIME_LOCATION-NOTFOUND
CMake Error: file INSTALL cannot find ".../DDSC_RUNTIME_LOCATION-NOTFOUND"Cause: ROS 2 is sourced in the current terminal (e.g. via /etc/profile or ~/.bashrc). This causes find_package(CycloneDDS) to pick up ROS 2's system CycloneDDS from /opt/ros/humble/, which does not set IMPORTED_LOCATION_RELEASE in its CMake targets — so the install step fails.
Fix: Build in a terminal where ROS 2 is not sourced:
bash
# Open a new terminal without sourcing ROS 2, then:
bash scripts/build.bash --no-cacheTo temporarily disable ROS 2 in the current terminal:
bash
unset ROS_VERSION ROS_DISTRO AMENT_PREFIX_PATH COLCON_PREFIX_PATH
export CMAKE_PREFIX_PATH=$(echo $CMAKE_PREFIX_PATH | tr ':' '\n' | grep -v ros | tr '\n' ':' | sed 's/:$//')
export PATH=$(echo $PATH | tr ':' '\n' | grep -v ros | tr '\n' ':' | sed 's/:$//')