Skip to content

docs: add CARLA Windows build guide (#139)#140

Open
YuSun-go wants to merge 7 commits intomainfrom
docs/#139
Open

docs: add CARLA Windows build guide (#139)#140
YuSun-go wants to merge 7 commits intomainfrom
docs/#139

Conversation

@YuSun-go
Copy link
Copy Markdown

@YuSun-go YuSun-go commented Mar 28, 2026

Summary

This PR adds a documentation guide for building CARLA 0.9.15 on Windows, with a focus on common issues and practical solutions encountered during the build process.

The guide includes:

  • Dependency setup and verification steps
  • Visual Studio toolset configuration
  • Common build errors and fixes (e.g., NumPy version, Make version)
  • Asset version identification
  • Practical troubleshooting tips based on real build experience

Related Issues / Tasks

Relates to #139

Type of Change

  • Bug fix
  • New feature
  • Maintenance / Refactor
  • Documentation
  • Test case / scenario update

Affected Modules / Components

  • doc/Carla_Windows_building.md
  • doc/CARLAdoc.md
  • Documentation related to CARLA Windows build workflow

Test Cases

  • Verified commands and dependency checks:
    • python --version
    • pip3 -V
    • cmake --version
    • make --version
    • git --version

Environment

  • Python version: 3.x (64-bit recommended)
  • CARLA version: 0.9.15
  • OS: Windows 11
  • Build tools:
    • Visual Studio 2019
    • Windows 10 SDK
    • CMake
    • Make (3.81)

Checklist

  • Code compiles/runs as expected
  • Tests pass locally
  • Documentation is updated (if applicable)
  • Relevant issues are linked
  • Version-specific changes are noted (if any)

The official documentation provides a comprehensive step-by-step process.
However, in practice, several issues may arise during the build process (e.g., dependency conflicts, version mismatches, and build errors).

This document focuses on:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This document follows the structure of Part One: Prerequisites and Part Two: Build CARLA from the official documentation, and focuses on:


## Part One: Prerequisites

In this section, you will find the system requirements and necessary software setup before building CARLA.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed


- Ensure that the required version of **Make (3.81)** is used. This version may need to be installed manually (e.g., via Gnuwin), or obtained through other reliable sources.

- For **Visual Studio 2019**, make sure the correct toolchain is selected. Note that the **Windows 8.1 SDK** may no longer be available and can be replaced with the **Windows 10 SDK**.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can consider add a screenshot of how to select toolchain

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it called toolset or toolchain?

- For **Visual Studio 2019**, make sure the correct toolchain is selected. Note that the **Windows 8.1 SDK** may no longer be available and can be replaced with the **Windows 10 SDK**.

- The installation and configuration of **Unreal Engine 4.26** can be completed by following the official CARLA documentation:
[CARLA Windows Build Documentation](https://carla.readthedocs.io/en/0.9.15/build_windows/)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- The installation and configuration of **Unreal Engine 4.26** can be completed by following the official CARLA documentation:
[CARLA Windows Build Documentation](https://carla.readthedocs.io/en/0.9.15/build_windows/)

Please ensure all dependencies are correctly installed before proceeding to the build stage.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any check or verification that can show all dependencies are ready?


Solution: Manual Download and Extraction

Identify the correct asset version for CARLA 0.9.15:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to know which one is the correct asset?

Extract them into the corresponding Build directory
Ensure the folder names match exactly (e.g., xerces-c-3.2.3-source)

2. Boost download failure in install_boost.bat
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in previous "1. Missing dependencies during build (zlib / boost / xerces-c)" you already mentioned boost. do you want to remove that and keep Boost as a separate documentation


Solution:

- Manually download Boost (e.g., version 1.80.0)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after manually download these libraries, where do you put them? how to ensure Carla can find them properly?

```
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
```
3). Ensure variables such as %XYZ_SRC_DIR% are correctly set if required
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not following this part, are you indicating that we need to add a puncturation mark "."?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it needs a puncturation mark "." here to solve the path problem.

If none of these issues occur, the build environment is correctly configured.
Otherwise, the provided solutions may help resolve them.

Contributions are welcome. If additional issues are encountered and resolved, please update this document accordingly. No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

doc/CARLAdoc.md Outdated
To build the CARLA 0.9.15 under Visual Studio 2019, a practical guide is shown below (For detailed build steps, please refer to [CARLA Windows Build Guide](./Carla_Windows_building.md).):

The MSVC toolset version changed to 14.4 (i.e., the “14.4x” series) after Visual Studio 2022 version 17.10. Since the official installation script supports up to MSVC 14.3x, we use Visual Studio 2022 17.8 for simplicity. The `--channelURI` parameter can be used to specify the version.
The MSVC toolset version changed to 14.4 (i.e., the “14.4x” series) after Visual Studio 2019 version 17.10. Since the official installation script supports up to MSVC 14.3x, we use Visual Studio 2022 17.8 for simplicity. The `--channelURI` parameter can be used to specify the version.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"we use Visual Studio 2022 17.8 for simplicit" => change to 2019?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants