Difference between revisions of "Talk:Compiling Mudlet"

From Mudlet
Jump to navigation Jump to search
Line 1: Line 1:
 
== MSYS2 ==
 
== MSYS2 ==
install msys2
+
* install msys2
uncheck run msys2 now, hit finish
+
* uncheck run msys2 now, hit finish
run msys2 mingw64 from start
+
* 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
+
* 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
+
* right-click and paste into msys: git clone --recursive -b development https://github.com/Mudlet/Mudlet.git
cd Mudlet/CI
+
* run ./Mudlet/CI/setup-windows-sdk.sh - but not on windows arm64, pacman freezes
CI/setup-windows-sdk.sh - but not on arm64
+
* 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  
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
ignore the clang-format error
+
* open C:/msys64/home/<user>/Mudlet/src/mudlet.pro
press link with qt, choose C:/msys64/mingw64 as the location. restart qt creator
+
* in Build Environment details, set environment variables to this:
open C:/msys64/home/<user>/Mudlet/src/mudlet.pro
+
WITH_MAIN_BUILD_SYSTEM=NO
in Build Environment details, set to this:
+
MINGW_BASE_DIR=C:\msys64\mingw64
WITH_MAIN_BUILD_SYSTEM=NO
+
* in General - Build directory, disable Shadow build
MINGW_BASE_DIR=C:\msys64\mingw64
+
* build Mudlet
in General - Build directory, disable Shadow build
+
* click Run
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.
 
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.

Revision as of 08:05, 27 July 2024

MSYS2

  • install msys2
  • 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.