1
0
Fork 0
minetest-engine-multicraft2/Windows/Manual.md

1.0 KiB

The SHIITTT of Guindows

This is reduced set for stupid windosers:

  1. Download MSYS2 from https://www.msys2.org/

    https://github.com/msys2/msys2-installer/releases/download/2023-03-18/msys2-x86_64-20230318.exe

  2. After installation open "MSYS2 MINGW64" from Menu Start

  3. Install required packages with

    pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-autotools git

  4. Browse to MultiCraft directory, for example

    cd /c/Users/username/Documents/MultiCraft

  5. Build inside build/windows directory with

    ./Start cmake --build . -j

  6. Check libraries linked with multicraft.exe using command below. It should show only system libraries.

    objdump -x ../../bin/multicraft.exe | grep dll


The "make -j" and even "make -jnproc" eats a lot of memory (when building libcurl). If it's a problem, then change NPROC to 1 or so.

Also, don't install any other packages that are not for mingw because then some libraries search headers in /usr/include rather than /mingw64/include and fail to compile.