build-carla-ue58
O que ela faz
Esta skill compila o simulador CARLA para o Unreal Engine 5.8 a partir do código-fonte, usando o sistema de build CMake. Ela é para pessoas técnicas que precisam de uma build personalizada da linha mais nova do CARLA.
Quando usar
- ✓Quando você quiser compilar o CARLA no Unreal Engine 5.8 a partir do ramo de código-fonte ue58-dev.
- ✓Quando precisar que a interface do ROS 2 ou outros recursos opcionais façam parte da build.
- ✓Quando uma compilação falhar e você precisar dos passos exatos desta versão, e não das instruções antigas do UE4.
Link da skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/build-carla-ue58/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode compilar o CARLA para o Unreal Engine 5.8 a partir da minha pasta de código-fonte, com a opção do ROS 2 ativada?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente verifica a sua configuração, configura a build com as opções que você escolher e depois compila os alvos em ordem. As opções ficam salvas nas configurações da build, então precisam ser repetidas sempre que a build for configurada de novo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
É o mesmo que a build antiga do UE4?
Não. Esta versão usa o CMake em vez dos antigos comandos make, então os passos são diferentes.
Precisa de uma build separada da engine?
Sim. A engine precisa ser compilada primeiro, a partir do próprio fork do código da Unreal.
O que acontece se eu esquecer uma opção?
A build pode terminar sem o recurso, como o ROS 2, e não vai avisar você.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 15 mil
- Posição no ranking
- #11129
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-leaderboard-route
15 milAjuda seu agente a criar arquivos de rota do CARLA Leaderboard posicionando waypoints e gatilhos de cenário a partir da câmera do simulador, depois verificando e ordenando-os.
package-leaderboard-agent
15 milAjuda seu agente a empacotar um agente de direção em uma imagem Docker para envio ao CARLA Leaderboard, verificando a estrutura de pastas e testando se a imagem o carrega.
read-leaderboard-results
15 milAjuda seu agente a ler um arquivo de resultados do CARLA Leaderboard, explicar a pontuação e as infrações de cada rota e recalcular uma execução pela outra versão das regras.
run-leaderboard-evaluation
15 milAjuda seu agente a rodar o avaliador do CARLA Leaderboard em um conjunto de rotas com seu agente de direção, verificando a configuração antes e salvando checkpoints para retomar.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.