build-carla-ue4
Qué hace
Esta skill compila el simulador CARLA desde su código fuente en un equipo Linux, de principio a fin. Está pensada para personas técnicas que necesitan una compilación personalizada o no publicada del simulador.
Cuándo usarla
- ✓Cuando necesitas una versión de CARLA que no está disponible como descarga lista para usar.
- ✓Cuando quieres compilar CARLA con la interfaz nativa de ROS 2 activada.
- ✓Cuando quieres confirmar que la compilación funciona probándola con un servidor en marcha.
Link de la skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/build-carla-ue4/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes compilar CARLA desde el código fuente en mi equipo Linux, incluido el cliente de Python, y confirmar que el servidor se ejecuta?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente compila cada parte en orden, omite las que ya existen y comprueba cada resultado. La compilación incluye el motor, el servidor del simulador y el paquete de Python.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Cuánto tarda una compilación?
La skill no indica un tiempo fijo, pero la compilación incluye varias partes muy grandes, así que puede tardar mucho.
¿Puedo activar ROS 2 más tarde?
No. El soporte de ROS 2 debe elegirse al compilar y no se puede añadir después.
¿Puede ejecutarse en Windows?
No. La skill está escrita para equipos Linux, en concreto para las versiones de Ubuntu que enumera.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #11121
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
create-leaderboard-route
15 milAyuda a tu agente a crear rutas para el Leaderboard de CARLA, colocando puntos de paso y disparadores de escenario desde la cámara del simulador.
package-leaderboard-agent
15 milAyuda a tu agente a empaquetar un agente de conducción en una imagen de Docker para el Leaderboard de CARLA, y comprueba que la imagen lo carga.
read-leaderboard-results
15 milAyuda a tu agente a leer los resultados del Leaderboard de CARLA, explicar la puntuación e infracciones de cada ruta y recalcular la ejecución con otra versión de las reglas.
run-leaderboard-evaluation
15 milAyuda a tu agente a ejecutar el evaluador del Leaderboard de CARLA en un conjunto de rutas, revisando antes la configuración y guardando puntos de control.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.