Skip to content

Windows user build guidance

SyncInProgress edited this page May 31, 2020 · 2 revisions

Install necessary dependencies

1. Install Visual Studio

2. Install Clang 10 or MSVC

  • Clang: Install Clang 10.0.0. Video tutorial for clang installation available here
  • MSVC: Pre-Installed with Visual Studio

3. Download Urho3D 1.7.1 Prebuilt

  • Unzip folder should be in the path where can be easily accessed later

Build the project with Visual Studio

1. Config your toolchain for MSVC and Clang in Visual Studio

  • For MSVC, choose the x64-Debug Configuration (This is also the default configuration for Visual Studio)
  • For Clang, follow the guide here

2. Config CMake with Urho3D

  • Project -> CMake Settings -> CMake command arguments:; In the text box, input: -DURHO3D_HOME_RELATIVE=<PathToYourUrho3Dsdk> (Example: -DURHO3D_HOME_RELATIVE=/Users/Bob/Downloads/Urho3D-1.7.1)
  • Save the changes

3. Reload CMake project

  • Project -> CMake Cache -> Delete Cache
  • To reload cmake: Project -> Generate Cache

4. Build

  • Choose target
    • Build -> Install smartcar_emul for the emulator
    • Several Test target if you need them

PS Use Linux