Windows Installation
Step-by-step guide to install and run Gurotopia on Windows
Windows Installation
This guide will walk you through setting up Gurotopia on Windows 10/11.
Prerequisites
Before you begin, you'll need to install the following tools:
1. MSYS2
MSYS2 provides a Unix-like environment on Windows with package management.
- Download the installer from msys2.org
- Run the installer and follow the setup wizard
- Note the installation path (default:
C:\msys64)
2. Visual Studio Code
Visual Studio Code is the recommended editor for development.
- Download VSCode from code.visualstudio.com
- Install the C/C++ extension
Install Dependencies
Open your MSYS2 folder (e.g., C:\msys64) and launch ucrt64.exe. Then run:
pacman -S --needed mingw-w64-ucrt-x86_64-{gcc,openssl,sqlite} makeThis installs:
- GCC - The GNU Compiler Collection for C/C++
- OpenSSL - For SSL/TLS encryption
- SQLite - Lightweight database engine
- Make - Build automation tool
Compile the Server
- Clone the repository:
git clone https://github.com/gurotopia/Gurotopia.git
cd Gurotopia-
Open the project folder in Visual Studio Code
-
Press
Ctrl + Shift + Bto start the build process
The build process will compile all source files and create the server executable.
Run the Server
After successful compilation:
- Press
F5to run the server with the debugger attached - The server will start and listen for connections
Make sure to configure your hosts file before connecting. See the Configuration guide.
Troubleshooting
Build fails with "command not found"
Make sure MSYS2's bin directory is in your system PATH:
- Add
C:\msys64\ucrt64\binto your environment variables
Missing dependencies
Run the pacman command again to ensure all packages are installed:
pacman -Syu
pacman -S --needed mingw-w64-ucrt-x86_64-{gcc,openssl,sqlite} makeVSCode can't find compiler
- Open VSCode settings
- Search for "C_Cpp.default.compilerPath"
- Set it to
C:\msys64\ucrt64\bin\gcc.exe