build-carla-ue4

Builds CARLA ue4-dev from source on Linux, including UE4 engine, server, and Python client wheel.

3|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill build-carla-ue4-carla-simulator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: build-carla-ue4
Source: https://github.com/carla-simulator/carla-agentic-tools/tree/main/skills/ue4/build-carla-ue4
Command: npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill build-carla-ue4-carla-simulator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Building CARLA from source is a multi-hour, multi-stage process with many non-obvious failure modes (linker incompatibilities, Python binding mismatches, private engine forks). This Skill encodes the entire procedure as idempotent, verified scripts so the build succeeds without improvising from the Makefile. ## Core Features & Use Cases - End-to-end source build: Compiles the CarlaUnreal UE 4.26 fork, the CARLA server editor modules, and the LibCarla Python client wheel, then verifies everything by booting a from-source server and running generate_traffic.py. - Idempotent step scripts: Each step (deps, client env, engine, PythonAPI, content, server, verify) skips when its artifact already exists, supports FORCE=1 rebuilds, and runs long stages in parallel. - Optional native ROS 2 interface: ROS2=1 compiles Fast-DDS, CycloneDDS, and Zenoh support into the server at build time, with binary-level verification that the symbols actually landed. - Use Case: A user on Ubuntu 24.04 asks to "build CARLA from source with ROS2 support" — the Skill checks prerequisites, installs deps, builds engine/server/client in the right order, and proves the result with a live traffic simulation. ## Quick Start Ask the agent to build CARLA ue4-dev from source on this machine after exporting UE4_ROOT and activating a Python client environment.

Frequently Asked Questions about build-carla-ue4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build CARLA from source on Ubuntu?▼

Run the skill's scripts in order: check_env.sh, 01_install_deps.sh (needs sudo), then 02, 03, and 05 in parallel, followed by 06_build_editor.sh, 04_build_pythonapi.sh, and 07_verify.sh. You must export UE4_ROOT and activate a Python client environment first.

How do I build CARLA with ROS 2 support?▼

Run step 06 with ROS2=1, which passes --ros2 to make CarlaUE4Editor and compiles Fast-DDS, CycloneDDS, and Zenoh from source. ROS 2 support is compile-time only and cannot be enabled on a server built without it; the runtime also needs the --ros2 flag.

Does CARLA ue4-dev build on Ubuntu 24.04?▼

Yes, via the in-repo Ubuntu24Compat.sh shim, which wraps the compiler with -fuse-ld=lld, skips PEP 668 pip installs, and patches CMake policy versions. The lld package is mandatory on 24.04 and is installed by step 01.

Why does import carla crash after building the PythonAPI?▼

The usual causes are numpy 2.x in the environment (the bindings require numpy<2) or boost and the wheel being compiled against different Python interpreters. Step 02 pins numpy<2 and step 04 forwards one --python-version to both stages to prevent the mismatch.

Why does the UE4 clone return repository not found or 403?▼

The CarlaUnreal UnrealEngine fork is private to the Epic Games GitHub organization. You must link your GitHub account to Epic at unrealengine.com/ue-on-github and confirm you can clone the repository before step 03 can proceed.

What is the difference between building and packaging CARLA?▼

This skill compiles source artifacts (engine, server plugin, client wheel) and verifies them with an uncooked -nullrhi server. Cooking a distributable Dist/ package is a separate skill (package-carla-ue4), and running servers is handled by run-carla-server.