-
Notifications
You must be signed in to change notification settings - Fork 5
Requirements
Learn what software is needed and how to install
Software required to build a Golang resource:
- Go >= 1.21.0
- mingw-w64 (Windows) >= ?
- GCC (Linux) >= 9.3.0
Including usage requirement. Make is optional - you can also run the commands manually.
- CMake >= 3.16.0
- MSVC (Windows) >= ?
- Make (optional) >= 4.3
In case you wonder why you need mingw-w64 additionally to MSVC on windows:
We are using MSVC in order to build the go-module runtime library, but we need mingw-w64 to build the c-api for the go compiler.
-
At first follow these instructions until step 5 to install mingw-w64 using msys2: https://www.msys2.org/
-
Inside the MSYS2 terminal run
pacman -S --needed base-devel mingw-w64-x86_64-toolchain pacman -S mingw-w64-x86_64-dlfcn
-
Lastly close the MSYS2 terminal and add the mingw-w64 bin directory to your PATH environment variable.
You are ready to build your go project as usual.
You encountered a problem 💥? Check out the Troubleshooting Guide!
If you can't find a solution there file a new issue in this repository or contact me on Discord.