Difference between revisions of "Talk:Compiling Mudlet"

From Mudlet
Jump to navigation Jump to search
Line 18: Line 18:
 
Take note of the message at the end to add the variables to your environment once you have opened the project in Qt Creator.
 
Take note of the message at the end to add the variables to your environment once you have opened the project in Qt Creator.
 
(WITH_MAIN_BUILD_SYSTEM, MINGW_BASE_DIR, LUA_PATH, LUA_CPATH)
 
(WITH_MAIN_BUILD_SYSTEM, MINGW_BASE_DIR, LUA_PATH, LUA_CPATH)
 +
[[File:Windows environment variables.png|500px|center]]
  
 
{{note}} This might not work on windows arm64, pacman freezes.
 
{{note}} This might not work on windows arm64, pacman freezes.
Line 25: Line 26:
  
 
* Press '''link with Qt''' on the bottom right of Qt Creator
 
* 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
 
* 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 project'''; C:/msys64/home/<user>/Mudlet/src/mudlet.pro  
 
* '''Open 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 what was stated in the sdk-setup script above. For example;
+
* In Build Environment details, set environment variables to what was stated in the sdk-setup script above.
 
 
WITH_MAIN_BUILD_SYSTEM=NO
 
MINGW_BASE_DIR=C:\msys64\mingw64
 
 
 
  
[[File:Build environment details2.png|500px|center]]
+
[[File:Build environmental variables.png|500px|center]]
  
 
* In General - Build directory, disable '''Shadow build'''
 
* In General - Build directory, disable '''Shadow build'''

Revision as of 09:13, 29 July 2024

MSYS2

  • 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 

Take note of the message at the end to add the variables to your environment once you have opened the project in Qt Creator. (WITH_MAIN_BUILD_SYSTEM, MINGW_BASE_DIR, LUA_PATH, LUA_CPATH)

Windows environment variables.png

Note 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
Link with qt.png
  • Choose C:/msys64/mingw64 as the location then restart Qt Creator
Qt location.png
  • Open project; C:/msys64/home/<user>/Mudlet/src/mudlet.pro
Open new project - qtcreator.png
  • In Build Environment details, set environment variables to what was stated in the sdk-setup script above.
Build environmental variables.png
  • In General - Build directory, disable Shadow build
Disable shadow build.png
  • Build Mudlet (Ctrl+B)
  • Run Mudlet (Ctrl+R)