From 6f6a228ef644c012f76113b1ca33a57caf26f4f0 Mon Sep 17 00:00:00 2001 From: Twig6943 <119701717+Twig6943@users.noreply.github.com> Date: Fri, 6 Mar 2026 18:46:32 +0300 Subject: [PATCH] Update COMPILE.md --- COMPILE.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/COMPILE.md b/COMPILE.md index b62c95754..69655ebca 100644 --- a/COMPILE.md +++ b/COMPILE.md @@ -41,6 +41,20 @@ cd .\build\Debug Notes: - The CMake build is Windows-only and x64-only. -- Contributors on macOS or Linux need a Windows machine or VM to build the project. Running the game via Wine is separate from having a supported build environment. - Post-build asset copy is automatic for `MinecraftClient` in CMake (Debug and Release variants). - The game relies on relative paths (for example `Common\Media\...`), so launching from the output directory is required. + +## Building on Linux + +In order to build on linux you'll need git cmake & wine once you've installed those you can run this after cloning the repository which will build via [msvc-wine](https://github.com/mstorsjo/msvc-wine) + +```sh +export WINE=$(command -v wine64 || command -v wine || false) +$WINE wineboot +git clone https://github.com/mstorsjo/msvc-wine +./msvc-wine/vsdownload.py --accept-license --dest $(pwd)/my_msvc/opt/msvc +./msvc-wine/install.sh $(pwd)/my_msvc/opt/msvc +export PATH=$(pwd)/my_msvc/opt/msvc/bin/x64:$PATH +CC=cl CXX=cl cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows +make -j$(nproc) +```