build-carla-ue58
できること
このスキルは、CMakeビルドシステムを使い、Unreal Engine 5.8向けのCARLAシミュレーターをソースコードからコンパイルします。新しいCARLAの系統のカスタム版が必要な技術者向けです。
使う場面
- ✓ue58-devのソースブランチから、Unreal Engine 5.8向けのCARLAをビルドしたいとき。
- ✓ROS 2インターフェースやほかの任意の機能をビルドに含める必要があるとき。
- ✓ビルドが失敗し、古いUE4の手順ではなく、このバージョン用の正確な手順が必要なとき。
スキルのリンク
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/build-carla-ue58/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のソースフォルダからUnreal Engine 5.8向けのCARLAをビルドしてください。ROS 2のオプションを有効にしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは環境を確認し、選んだオプションでビルドを設定したあと、ターゲットを順番にビルドします。オプションはビルド設定に保存されるため、ビルド環境を設定し直すたびに指定し直す必要があります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
古いUE4のビルドと同じですか?
いいえ。このバージョンは古いmakeコマンドではなくCMakeを使うので、手順が異なります。
エンジンを別にビルドする必要がありますか?
はい。エンジンは、Unrealコードの独自のフォークから、先にビルドしておく必要があります。
オプションを指定し忘れたらどうなりますか?
ROS 2などの機能が入らないままビルドが完了することがあり、警告は出ません。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 15k
- ランキング
- #11129
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
create-leaderboard-route
15kエージェントが、シミュレーターのカメラでウェイポイントとシナリオのトリガーを配置し、CARLA Leaderboardのルートファイルを作成・確認できるよう支援します。
package-leaderboard-agent
15kエージェントが、ドライビングエージェントをCARLA Leaderboardへの提出用のDockerイメージにまとめられるよう支援します。フォルダ構成の確認と読み込みテストを行います。
read-leaderboard-results
15kエージェントが、CARLA Leaderboardの結果ファイルを読み、各ルートの得点と違反を説明し、別のルールのバージョンで実行結果を再採点できるよう支援します。
run-leaderboard-evaluation
15kエージェントが、ドライビングエージェントを使って一連のルートでCARLA Leaderboardの評価ツールを実行できるよう支援します。実行前に設定を確認し、再開可能なチェックポイントを保存します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。