build-carla-ue58
What it does
This skill compiles the CARLA simulator for Unreal Engine 5.8 from its source code, using the CMake build system. It is for technical people who need a custom build of the newer CARLA line.
When to use it
- βWhen you want to build CARLA on Unreal Engine 5.8 from the ue58-dev source branch.
- βWhen you need the ROS 2 interface or other optional features included in the build.
- βWhen a build fails and you need the exact steps for this version rather than the older UE4 instructions.
Skill link
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/build-carla-ue58/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 for Unreal Engine 5.8 from my source folder, with the ROS 2 option turned on?β
5 new skills a week. 1 minute to read.
How it works
The agent checks your setup, configures the build with the options you choose, and then builds the targets in order. Options are stored in the build settings, so they must be repeated each time the build is set up again.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Build CARLA on UE 5.8
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.
This tree has no Makefile and no Util/BuildTools/. Every UE4 recipe β
make CarlaUE4, make PythonAPI, make launch, make package, make import β
does not exist. The whole build is CMake:
cmake --preset Release # configure (once per option change)
cmake --build Build/Release --target <target> # build
Two consequences that cause most of the confusion:
- Options live in the CMake cache, not on the build line.
-DENABLE_ROS2=ONis passed to--preset, and must be repeated on every re-configure. Forget it and you get a working build that silently has no ROS 2 in it. - The engine is a separate, prior build.
CARLA_UNREAL_ENGINE_PATHmust point at the CarlaUnreal fork on branchue58-dev-carla(UE 5.8). Theue5-devbranch uses a different engine fork (ue5-dev-carla, UE 5.5) β see the [[build-carla-ue5]] skill for that one.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear every FAIL
- [ ] Step 2: Build the engine, if UnrealEditor is not there yet
- [ ] Step 3: Configure a preset with the options you actually want
- [ ] Step 4: Build the targets, in order
- [ ] Step 5: Verify the artifacts (not the exit codes)
Step 1: Preflight
source scripts/env.sh
bash scripts/check_env.sh
This reads the CMake cache and tells you what the tree was actually configured
with β the only honest answer to "was this built with ROS 2?" β plus the engine
version, the OFPA large-map patch state, and whether a past sudo poisoned
~/.nuget / ~/.epic.
Step 2: The engine
git clone -b ue58-dev-carla https://github.com/CarlaUnreal/UnrealEngine.git UnrealEngine5_carla
cd UnrealEngine5_carla
./Setup.sh && ./GenerateProjectFiles.sh && make
export CARLA_UNREAL_ENGINE_PATH=$PWD
make takes no -j. Parallel jobs kill each other on the UnrealBuildTool
mutex (Failed (ConflictingInstance)); plain make is already parallel. Budget
2β3 h. The clone needs a GitHub account linked to Epic Games, or it 404s.
make can exit 0 with targets dead. Check the binary, never the exit code:
ls -l $CARLA_UNREAL_ENGINE_PATH/Engine/Binaries/Linux/UnrealEditor
Step 3: Configure
source scripts/env.sh
bash scripts/build.sh configure # Release, defaults
ROS2=1 bash scripts/build.sh configure # + ROS 2 native
ROS2=1 MAPS="Town10HD_Opt,Town12,Town13" bash scripts/build.sh configure
or by hand:
cd "$CARLA_UE58_ROOT"
cmake --preset Release -DENABLE_ROS2=ON \
-DCARLA_MAPS_TO_COOK="/Game/Carla/Maps/Town10HD_Opt+/Game/Carla/Maps/Town12/Town12"
Presets are Release, Development, Debug (plus the Common base). The
options worth knowing:
| Option | Effect |
|---|---|
-DENABLE_ROS2=ON |
native ROS 2; builds carla-ros2-native and links it into the plugin |
-DCARLA_MAPS_TO_COOK= |
restrict the cook. +-separated package paths, not filesystem paths, not ; |
-DCARLA_UNREAL_ENGINE_PATH= |
engine fork path (else the env var) |
-DCARLA_UNREAL_RHI=vulkan |
RHI for the editor/game |
-DCARLA_DLSS_SDK_PATH= |
DLSS SDK; disabled builds without it |
-DENABLE_RSS=ON, -DENABLE_PYTORCH=ON |
both default OFF; the OSM to OpenDRIVE converter is always built |
-DCARLA_UNREAL_PACKAGE_BUILD_TYPE=Shipping |
package configuration |
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON |
when system Qt is installed but not linkable with the UE toolchain |
bash scripts/build.sh options prints the full list with defaults, read from the
tree rather than from this table.
Step 4: Build
bash scripts/build.sh libcarla # carla-server + carla-client
bash scripts/build.sh pythonapi # carla-python-api-install (builds + installs the wheel)
bash scripts/build.sh unreal # carla-unreal (the game/server target)
bash scripts/build.sh editor # carla-unreal-editor
bash scripts/build.sh launch # build + open the editor
bash scripts/build.sh targets # every available target, from the tree
or directly:
cmake --build Build/Rele
FAQ
Is this the same as the older UE4 build?
No. This version uses CMake instead of the older make commands, so the steps are different.
Does it need a separate engine build?
Yes. The engine must be built first from its own fork of the Unreal code.
What happens if I forget an option?
The build can finish without the feature, such as ROS 2, and it will not warn you.
Details
Original description by the author
Builds CARLA on Unreal Engine 5.8 from the ue58-dev branch using its CMake build system β configure a preset, then build the carla-unreal / carla-unreal-editor / carla-python-api-install / launch targets β with ROS 2, DLSS, RSS and cook-scope options, and the engine-side build of the CarlaUnreal UE 5.8 fork. There is no Makefile and no Util/BuildTools in this tree, so every UE4 `make` recipe is invalid here. Use when the user asks to "build CARLA UE5", "build ue58-dev", "compile CARLA with cmake", "rebuild the Python API", or hits a CMake configure or target failure.
repo: carla-simulator/carla
Popularity
- GitHub stars
- 15k
- Ranking position
- #11129
- 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.