Skip to content

how to setup

Tomoaki Tani edited this page Aug 4, 2023 · 1 revision

How to setup the build environment

The following software is required to build the YAMA scanner.

  • Visual Studio 2022
  • LLVM 14.0
  • CMAKE
  • Ninja-Build
  • Git
  • Python3

Installing Software on a Windows 10 Environment

Installing Visual Studio 2022

1-1. Download the Visual Studio 2022 installer from the following link:

https://visualstudio.microsoft.com/downloads/

1-2. Run the downloaded installer and click "Continue" to begin the installation process.

1-3. Select the required workloads and click "Install." Choosing "Desktop Development with C++" is recommended to include the necessary components for C++ development.

1-4. Once the installation is complete, click "Launch" to start Visual Studio 2022.

Installing LLVM 14.0

2-1. Download the LLVM 14.0 installer from the following link:

https://releases.llvm.org/download.html

2-2. Run the downloaded installer to begin the installation process.

2-3. Choose the necessary options and click "Install".

2-4. Once the installation is complete, click "Finish".

2-5. Add the LLVM 'bin' folder to your system's PATH environment variable:

1. Access the computer's system properties.
2. Click "Advanced System Settings".
3. Click "Environment Variables".
4. Under "System Variables", select "Path" and click "Edit".
5. Click "New" and add the LLVM 'bin' folder (e.g., C:\Program Files\LLVM\bin), then click "OK".

Installing CMake

3-1. Download the CMake installer from the following link:

https://cmake.org/download/

3-2. Run the downloaded installer and click "Next" to begin the installation process.

3-3. Accept the license agreement and click "Next".

3-4. Choose the installation directory and click "Next".

3-5. Choose the necessary options and click "Next". Selecting "Add CMake to the system PATH for all users" is recommended.

3-6. Once the installation is complete, click "Finish".

Installing Ninja-Build

4-1. Download the Ninja-Build binary from the following link:

https://github.com/ninja-build/ninja/releases

4-2. Extract the downloaded ZIP file and copy the contents to an appropriate directory (e.g., C:\Ninja).

4-3. Add the Ninja-Build directory to the system's PATH environment variable:

1. Access the computer's system properties.
2. Click "Advanced System Settings".
3. Click "Environment Variables".
4. Under "System Variables", select "Path" and click "Edit".
5. Click "New" and add the Ninja build directory (e.g., C:\Ninja), then click "OK".

Installing Git

5-1. Download the Git installer from the following link:

https://git-scm.com/downloads

5-2. Run the downloaded installer and click "Next" to begin the installation process.

5-3. Accept the license agreement and click "Next".

5-4. Choose the installation directory and click "Next".

5-5. Choose the installation options and click "Next". The default settings should be fine.

5-6. Once the installation is complete, click "Finish".

Installing Python3

6-1. Download the Python3 installer from the following link:

https://www.python.org/downloads/windows/

6-2. Run the downloaded installer and click "Install Now" or "Customize Installation" to begin the installation process. Selecting the "Add Python 3.x to PATH" option is also recommended.

6-3. Once the installation is complete, click "Close".

Visual Studio 2022, LLVM 14.0, CMake, Ninja build, Git, and Python3 have been installed on your Windows 10 environment. You can use these software tools to carry out your development tasks. Remember to add the LLVM 'bin' folder to your system's PATH environment variable to ensure proper functionality.