From 76a5e19e9b59eef95ef49142c43ee3f5dcc579e8 Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Sun, 15 Mar 2026 21:47:57 +0200 Subject: [PATCH] Update build instruction --- README.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bebbeaa..9a00fdb 100644 --- a/README.md +++ b/README.md @@ -27,15 +27,36 @@ This project aims to preserve and improve this early version of Minecraft PE. # Build ## CMake +### Linux +1. Install dependiences + +(Debian-like) + +``sudo apt install build-essentials git cmake libgl-dev libwayland-dev xorg-dev libxkbcommon-dev`` + +(Arch-like) + +``sudo pacman -S base-devel git cmake libglvnd wayland xorg-server-devel xorgproto libxkbcommon`` + +2. Create build folder +``mkdir build && cd build`` + +3. Generate CMake cache and build the project ``` -mkdir build && cd build cmake .. -B . -make -j4 +cmake --build . ``` -or + +### Windows +1. Install [Visual studio Build Tools](https://aka.ms/vs/stable/vs_BuildTools.exe) and [CMake](https://github.com/Kitware/CMake/releases/download/v4.3.0-rc3/cmake-4.3.0-rc3-windows-x86_64.msi) + +2. Create build folder +``mkdir build && cd build`` + +3. Generate CMake cache and build the project ``` -mkdir build && cd build -cmake --build . --config Release -j 10 +cmake .. +cmake --build . ``` ## Visual Studio