From 3172f4d04489323fd711d4a8a0b58f8829952c9e Mon Sep 17 00:00:00 2001 From: Robbie Morgan <67983181+DwifteJB@users.noreply.github.com> Date: Thu, 12 Mar 2026 14:17:15 +0000 Subject: [PATCH] add linux instructions to README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 122157ba8..513457d18 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,19 @@ cmake -S . -B build -G "Visual Studio 17 2022" -A x64 cmake --build build --config Debug --target MinecraftClient ``` +### CMake (Linux Cross-compilation) + +MinecraftConsoles does not support Linux but can cross-compile a Windows build from Linux. + +You will need a Windows x64 MSVC SDK. You can get one from [msvc-wine](https://github.com/mstorsjo/msvc-wine). + +```bash +mkdir build && cd build +cmake .. -B . -G Ninja -DWINDOWS_SDK_PATH= -DCMAKE_TOOLCHAIN_FILE=../cmake/LinuxCrosscompile.cmake -DCMAKE_BUILD_TYPE=Debug +ninja +wine MinecraftClient.exe +``` + For more information, see [COMPILE.md](COMPILE.md). ## Known Issues