Difference between revisions of "Talk:Compiling Mudlet"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* 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 in the opened terminal: |
− | * right-click and paste into msys: git clone --recursive -b development https://github.com/Mudlet/Mudlet.git | + | 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 ./Mudlet/CI/setup-windows-sdk.sh | + | |
− | * 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 | + | * right-click and paste into msys: |
− | * press link with qt bottom right, choose C:/msys64/mingw64 as the location. restart qt creator | + | git clone --recursive -b development https://github.com/Mudlet/Mudlet.git |
− | * open C:/msys64/home/<user>/Mudlet/src/mudlet.pro | + | * 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 <code>C:/msys64/mingw64</code> 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: | * in Build Environment details, set environment variables to this: | ||
WITH_MAIN_BUILD_SYSTEM=NO | WITH_MAIN_BUILD_SYSTEM=NO |
Revision as of 09:15, 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 --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.