Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)15k · #11129

build-carla-ue58

Ce qu’il fait

Cette compétence compile le simulateur CARLA pour Unreal Engine 5.8 à partir de son code source, avec le système de build CMake. Elle s'adresse aux personnes techniques qui ont besoin d'un build personnalisé de la nouvelle ligne de CARLA.

Quand l’utiliser

  • ✓Quand vous voulez compiler CARLA sur Unreal Engine 5.8 à partir de la branche source ue58-dev.
  • ✓Quand vous avez besoin de l'interface ROS 2 ou d'autres fonctions optionnelles dans le build.
  • ✓Quand un build échoue et que vous avez besoin des étapes exactes pour cette version plutôt que des anciennes instructions UE4.

Lien du skill

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/build-carla-ue58/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/build-carla-ue58/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Peux-tu compiler CARLA pour Unreal Engine 5.8 à partir de mon dossier source, avec l'option ROS 2 activée ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vérifie votre configuration, configure le build avec les options choisies, puis compile les cibles dans l'ordre. Les options sont enregistrées dans les réglages de build, elles doivent donc être répétées à chaque nouvelle configuration du build.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Build CARLA on UE 5.8

Paths. scripts/… and references/… 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=ON is 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_PATH must point at the CarlaUnreal fork on branch ue58-dev-carla (UE 5.8). The ue5-dev branch 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
Questions fréquentes

Est-ce la même chose que le build UE4 plus ancien ?

Non. Cette version utilise CMake au lieu des anciennes commandes make, donc les étapes diffèrent.

Faut-il un build du moteur séparé ?

Oui. Le moteur doit d'abord être compilé à partir de son propre fork du code Unreal.

Que se passe-t-il si j'oublie une option ?

Le build peut se terminer sans la fonction, comme ROS 2, et il ne vous en avertira pas.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
15k
Position au classement
#11129
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires