Difference between revisions of "Talk:Compiling Mudlet"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== MSYS2 == | == MSYS2 == | ||
− | * | + | * Install MSYS2: https://www.msys2.org |
− | * uncheck run msys2 now | + | |
− | * | + | * At the end of installation uncheck '''run msys2 now''' and click '''finish''' |
− | * | + | |
+ | * Run '''MSYS2 MINGW64''' from the start menu | ||
+ | |||
+ | * Run the following in the opened MSYS2 terminal: | ||
pacman --files --refresh | 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 | 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 | ||
− | * | + | * Run the following from the MSYS2 terminal: |
git clone --recursive -b development https://github.com/Mudlet/Mudlet.git | git clone --recursive -b development https://github.com/Mudlet/Mudlet.git | ||
− | * | + | |
+ | * Setup the development environment (~5-10min) by running: | ||
./Mudlet/CI/setup-windows-sdk.sh | ./Mudlet/CI/setup-windows-sdk.sh | ||
− | + | ||
+ | {{note}} This might not work on windows arm64, pacman freezes. | ||
+ | |||
* Open Qt Creator. You will need to open it via MSYS2 every time: | * Open Qt Creator. You will need to open it via MSYS2 every time: | ||
/mingw64/bin/qtcreator.exe | /mingw64/bin/qtcreator.exe | ||
− | * | + | |
+ | * Press '''link with Qt''' on the bottom right of Qt Creator | ||
[[File:Link with qt.png|500px|center]] | [[File:Link with qt.png|500px|center]] | ||
− | * | + | |
+ | * Choose <code>C:/msys64/mingw64</code> as the location then restart Qt Creator | ||
[[File:Qt location.png|500px|center]] | [[File:Qt location.png|500px|center]] | ||
− | * | + | |
+ | * Open a '''new project''' C:/msys64/home/<user>/Mudlet/src/mudlet.pro | ||
[[File:Open new project - qtcreator.png|500px|center]] | [[File:Open new project - qtcreator.png|500px|center]] | ||
− | * | + | |
+ | * In Build Environment details, set environment variables to the following: | ||
WITH_MAIN_BUILD_SYSTEM=NO | WITH_MAIN_BUILD_SYSTEM=NO | ||
MINGW_BASE_DIR=C:\msys64\mingw64 | MINGW_BASE_DIR=C:\msys64\mingw64 | ||
+ | |||
[[File:Build environment details.png|500px|center]] | [[File:Build environment details.png|500px|center]] | ||
− | * | + | * In General - Build directory, disable '''Shadow build''' |
[[File:Disable shadow build.png|500px|center]] | [[File:Disable shadow build.png|500px|center]] | ||
− | * | + | * Build Mudlet (Ctrl+B) |
− | * | + | * Run Mudlet (Ctrl+R) |
− | |||
− | Mudlet |
Revision as of 15:37, 28 July 2024
MSYS2
- Install MSYS2: https://www.msys2.org
- At the end of installation uncheck run msys2 now and click finish
- Run MSYS2 MINGW64 from the start menu
- Run the following in the opened MSYS2 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
- Run the following from the MSYS2 terminal:
git clone --recursive -b development https://github.com/Mudlet/Mudlet.git
- Setup the development environment (~5-10min) by running:
./Mudlet/CI/setup-windows-sdk.sh
Note: This might not work on windows arm64, pacman freezes.
- Open Qt Creator. You will need to open it via MSYS2 every time:
/mingw64/bin/qtcreator.exe
- Press link with Qt on the bottom right of Qt Creator
- Choose
C:/msys64/mingw64
as the location then restart Qt Creator
- Open a new project C:/msys64/home/<user>/Mudlet/src/mudlet.pro
- In Build Environment details, set environment variables to the following:
WITH_MAIN_BUILD_SYSTEM=NO MINGW_BASE_DIR=C:\msys64\mingw64
- In General - Build directory, disable Shadow build
- Build Mudlet (Ctrl+B)
- Run Mudlet (Ctrl+R)