Difference between revisions of "Talk:Compiling Mudlet"

From Mudlet
Jump to navigation Jump to search
(→‎MSYS2: add refresh packages to fresh install)
Line 15: Line 15:
 
  /mingw64/bin/qtcreator.exe
 
  /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
 
* 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 <code>C:/msys64/mingw64</code> as the location. restart qt creator
+
* press link with qt bottom right
 +
[[File:Link with qt.png|500px|center]]
 +
* choose <code>C:/msys64/mingw64</code> as the location. restart qt creator
 +
[[File:Qt location.png|500px|center]]
 
* open new project C:/msys64/home/<user>/Mudlet/src/mudlet.pro  
 
* open new project C:/msys64/home/<user>/Mudlet/src/mudlet.pro  
 +
[[File:Open new project - qtcreator.png|500px|center]]
 
* in Build Environment details, set environment variables to this:
 
* in Build Environment details, set environment variables to this:
 
  WITH_MAIN_BUILD_SYSTEM=NO
 
  WITH_MAIN_BUILD_SYSTEM=NO

Revision as of 13:39, 27 July 2024

MSYS2

  • install msys2: https://www.msys2.org
  • uncheck run msys2 now, hit finish
  • run msys2 mingw64 from start
  • run in the opened terminal:
pacman --files --refresh
pacman --sync git mingw-w64-x86_64-qt-creator mingw-w64-x86_64-cmake mingw-w64-x86_64-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
Link with qt.png
  • choose C:/msys64/mingw64 as the location. restart qt creator
Qt location.png
  • open new project C:/msys64/home/<user>/Mudlet/src/mudlet.pro
Open new project - qtcreator.png
  • 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.