build-carla-ue4
What it does
This skill compiles the CARLA simulator from its source code on a Linux computer, from start to finish. It is for technical people who need a custom or unreleased build of the simulator.
When to use it
- βWhen you need a version of CARLA that is not available as a ready-made download.
- βWhen you want to build CARLA with the native ROS 2 interface turned on.
- βWhen you want to confirm the build works by testing it with a running server.
Skill link
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/build-carla-ue4/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you build CARLA from source on my Linux machine, including the Python client, and confirm the server runs?β
5 new skills a week. 1 minute to read.
How it works
The agent builds each part in order and skips any part that already exists, then checks each result. The build covers the engine, the simulator server and the Python package.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Build CARLA ue4-dev on Linux (end-to-end)
Paths.
scripts/β¦andreferences/β¦below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.
Builds CARLA from the ue4-dev branch (Unreal Engine 4.26) on Ubuntu
20.04 / 22.04 / 24.04. Each step is an idempotent script under scripts/;
the scripts ARE the procedure β running them in order performs and verifies the
build. Not for ue5-dev β that branch uses a different (CMake/CarlaSetup) build
system entirely (L1).
Scope
This skill compiles CARLA's source artifacts and proves them, nothing more:
- Engine (if needed) β the CarlaUnreal UE 4.26 fork β
UE4Editor(step 03). - Server (if needed) β the Carla editor C++ modules incl the server plugin
and CarlaTools, runnable uncooked via
-nullrhi(step 06,make CarlaUE4Editor). - PythonAPI (if needed) β LibCarla client + boost bindings β wheel installed into the active env (step 04).
- Launch (opt-in) β open the UE4 editor UI for interactive work
(
TARGET=launchon step 06,make launch).
Each build step is idempotent and skips when its artifact is already present
(FORCE=1 to rebuild). Two adjacent jobs are out of scope and delegated:
- Cooking/packaging a distributable
Dist/tarball β [[package-carla-ue4]] (make package). Do not cook here. - Running/serving the build (headless smoke-tests, windowed demos) β [[run-carla-server]]. Step 07 uses it to verify.
Full battle-log:
references/lessons.mdβ every non-obvious failure hit during this build, with root cause + fix. Read it before debugging.L#citations below point at it.
Instructions
Copy this checklist and track progress β the build is long and gated, so a skipped step usually surfaces an hour in:
Build Progress:
- [ ] Step 0: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 1: apt deps (sudo β real terminal) | Step 2: prepare Python client env
- [ ] Step 3: build the UE4 fork (engine) || Step 5: fetch content (parallel, long)
- [ ] Step 6: build the server β make CarlaUE4Editor (needs 3)
- [ ] Step 4: build PythonAPI + install wheel (needs 2+3)
- [ ] Step 7: verify β boot from-source server (run-carla-server) + generate_traffic.py (needs 4+5+6)
- [ ] (opt-in) Step 6 TARGET=launch: open the UE4 editor UI (make launch)
- [ ] (separate skill) cook a Dist/ package -> package-carla-ue4
Prerequisites
- Linux, x86_64. Ubuntu 20.04/22.04 supported; 24.04 works via the in-repo compat shim (see deltas below).
- ~120 GB free disk (UE4 ~80 GB + content ~31 GB + intermediate builds, L2).
- A CUDA-capable NVIDIA GPU (RTX-class) for the rendering server.
- A Python client env, active β venv, conda, or system; no manager is
assumed (mechanism in "Python client env" below). 3.10β3.12 all build on this
HEAD (L5's ">3.10 breaks" caveat is stale). No env yet? Create one, e.g.:
python3.12 -m venv ~/carla-client && source ~/carla-client/bin/activate # venv # or: conda create -y -n carla-ue4 python=3.12 && conda activate carla-ue4 - Epic-linked GitHub account β the UE4 fork is private to the Epic Games
org. Before step 03 the user MUST link their account
(https://www.unrealengine.com/en-US/ue-on-github) and be able to clone
https://github.com/CarlaUnreal/UnrealEngine.git(branchcarla). If that clone returnsrepository not found/403, the account is not linked β STOP and surface exactly this; nothing downstream can proceed.
Set the roots (scripts/env.sh resolves them, all overridable):
UE4_ROOTβ the CarlaUnreal UE 4.26 fork checkout. No default β export it.CARLA_UE4_ROOTβ the carlaue4-devsource checkout. Defaults to$PWDif it is a checkout, else a path-derived guess; export it otherwise.
Quick start
cd Skills/ue4/build-carla-ue4
source ~/carla-client/bin/activate # activate ANY compatible client env first
export UE4_ROOT=/path/to/UnrealEngine_4.26
export CARLA_UE4_ROOT=/path/to/carla # or run from inside the checkout
bash scripts/check_env.sh
bash scripts/01_install_deps.sh # sudo β run in a real terminal (L11)
bash scripts/02_client_env.sh &
bash scripts/03_build_ue4.sh & # long
bash scripts/05_fetch_content.sh & # long
wait
bash scripts/0
FAQ
How long does a build take?
The skill does not give a fixed time, but the build covers several large parts, so expect it to take a long time.
Can I turn on ROS 2 later?
No. ROS 2 support must be chosen at build time and cannot be added later.
Can it run on Windows?
No. The skill is written for Linux computers, specifically the Ubuntu versions it lists.
Details
Original description by the author
Builds CARLA (branch ue4-dev, Unreal Engine 4.26) from source on Linux end-to-end β UE4 fork, the Carla server (editor C++ modules), the LibCarla Python client wheel, and content β then verifies them against a from-source server. Optionally builds the native ROS 2 interface in (ROS2=1 β --ros2, Fast-DDS/CycloneDDS/Zenoh), which is compile-time only and cannot be enabled later. Use when the user asks to "build CARLA from source", "compile CARLA ue4-dev", "set up CARLA on Ubuntu (incl. 24.04)", "build CARLA with ROS2 support", or "produce a CARLA server + client wheel". Cooking a distributable D
repo: carla-simulator/carla
Popularity
- GitHub stars
- 15k
- Ranking position
- #11121
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
create-leaderboard-route
15kHelps your agent build CARLA Leaderboard route files by placing waypoints and scenario triggers from the simulator camera, then checking and ordering them.
package-leaderboard-agent
15kHelps your agent package a driving agent into a Docker image for CARLA Leaderboard submission, checking the folder layout and testing that the image loads it.
read-leaderboard-results
15kHelps your agent read a CARLA Leaderboard results file, explain each route's score and infractions, and rescore a run under the other rule version.
run-leaderboard-evaluation
15kHelps your agent run the CARLA Leaderboard evaluator on a set of routes with your driving agent, checking the setup first and saving checkpoints you can resume.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.