Skip to content

Windows 10 ‐ How to install all of the required dependencies

PixelRain edited this page Apr 19, 2024 · 5 revisions

Notes based on: https://github.com/vorlac/godot-roguelite/wiki/#install-dependencies

godot-roguelite dependencies:

  • Install Chocolatey with it's GUI: https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe (copy and paste the windows command to cmd)

  • Then run in cmd: choco install chocolateygui

  • Open Chocolatey GUI from Windows search bar.

  • In the chocolatey section, search:

    • MinGW-w64, install first result also autoinstalls GCC, C compiler: https://gcc.gnu.org/, gcc --version (unrequired but noteworthy) also autoinstalls G++, C++ compiler g++ --version also autoinstalls GDB, GNU Debugger https://www.sourceware.org/gdb/ gdb
    • LLVM, install first result, it's a compiler: https://llvm.org/ llvm-objdump --version also autoinstalls LLDB, debugger https://lldb.llvm.org/ also autoinstalls CLANG https://clang.llvm.org/ clang --version
    • Ninja, install first result, it's a build system. ninja --version
    • CMake, install first result, it's a build system generator.
      • Then set cmake's environment variable through cmd: set PATH="C:\Program Files\CMake\bin";%PATH% cmake --version
  • Download Python from here: https://www.python.org/downloads/ (make sure you check the environment variable toggle and also install pip) python --version (environment variable application and command functionality may require restarting windows)

  • Run in cmd: pip install scons scons --version

godot-roguelite visual studio community addon dependencies

Install any recent version of visual studio community, which will also provide you with "visual studio installer", run it and click the "Modify" button for your your version (eg VSC 2022).

Find and install the following components from either the Workloads tab, or on the Individual Components tab:

  • MSVC C++
  • C++ CMake tools for windows
  • Clang build tools

and then click "Modify" again to install these addons to your VS version.

First CMake run on visual studio

Once you are done with all of the dependencies:

Open Godot-Roguelite with Visual Studio 2022 Comunity as a folder. The CMake script included in the project may run automatically, wait until it finishes or run it manually (Project > Delete Cache and Reconfigure).

Then you can run your first gdextension .dll build: Build > Build gdextension