- MSYS2
- Visual Studio Code: install C/C++ extension for VSCode
- MariaDB Server
-
Locate your MSYS2 folder at
C:\msys64, openucrt64.exe, and run the following command:pacman -S --needed mingw-w64-ucrt-x86_64-{gcc,openssl} make
- Open the project folder in Visual Studio Code.
- Press
Ctrl + Shift + Bto start the build process.
- After compiling, press
F5to run the server!
-
enter command associated with your distribution into the terminal to install nessesary tools.
-
Navigate to the project's root directory in your terminal and run the
makecommand:make -j$(nproc)
-
Execute the compiled binary located in the
maindirectory:./main.out
Note
To connect to your local server, you must modify your system's hosts file.
- Windows:
C:\Windows\System32\drivers\etc\hosts - Linux/macOS:
/etc/hosts
127.0.0.1 www.growtopia1.com
127.0.0.1 www.growtopia2.com
