Talk:Compiling Mudlet

From Mudlet
Revision as of 09:15, 27 July 2024 by Vadi (talk | contribs)
Jump to navigation Jump to search

MSYS2

  • install msys2: https://www.msys2.org
  • uncheck run msys2 now, hit finish
  • run msys2 mingw64 from start
  • run in the opened terminal:
pacman --sync git mingw-w64-x86_64-qt-creator mingw-w64-x86_64-cmake mingw-w64-x86_64-qt-ninja mingw-w64-x86_64-clang-libs --noconfirm
  • right-click and paste into msys:
git clone --recursive -b development https://github.com/Mudlet/Mudlet.git
  • Afterwards run the following. This will take 5-10min:
./Mudlet/CI/setup-windows-sdk.sh 

Note: this might not work on windows arm64, pacman freezes

  • Open Qt Creator:
/mingw64/bin/qtcreator.exe
  • Alternatively, find and drag C:/msys64/mingw64/bin/qtcreator.exe (or another location if mingw64 is elsewhere) onto the msys2 window and press enter to launch
  • press link with qt bottom right, choose C:/msys64/mingw64 as the location. restart qt creator
  • open new project C:/msys64/home/<user>/Mudlet/src/mudlet.pro
  • in Build Environment details, set environment variables to this:
WITH_MAIN_BUILD_SYSTEM=NO
MINGW_BASE_DIR=C:\msys64\mingw64
  • in General - Build directory, disable Shadow build
  • build Mudlet
  • click Run

Mudlet will run, but it won't find any of the Lua DLL's so scripts within the profile won't work correctly. Working on finding a solution.