Talk:Compiling Mudlet

From Mudlet
Revision as of 09:05, 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 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
  • run ./Mudlet/CI/setup-windows-sdk.sh - but not on windows arm64, pacman freezes
  • 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 qt creator. alternatively, copy/paste /mingw64/bin/qtcreator.exe and press enter. you must do this every time
  • press link with qt bottom right, choose C:/msys64/mingw64 as the location. restart qt creator
  • open 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.