Difference between revisions of "Talk:Compiling Mudlet"

From Mudlet
Jump to navigation Jump to search
(→‎MX 4.19: new section)
Line 1: Line 1:
Simplest guide to compiling yet. Good job. Fixed a typo in your apt-get.
+
== 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
 +
cd Mudlet/CI
 +
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
 +
ignore the clang-format error
 +
press link with qt, choose C:/msys64/mingw64 as the location. restart qt creator
 +
open C:/msys64/home/<user>/Mudlet/src/mudlet.pro
 +
in Build Environment details, set to this:
 +
WITH_MAIN_BUILD_SYSTEM=NO
 +
MINGW_BASE_DIR=C:\msys64\mingw64
 +
in General - Build directory, disable Shadow build
 +
build Mudlet
 +
click Run
  
== Compiling on Windows 7 ==
+
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.
 
 
Can we assume that this is also applicable to Windows XP?
 
- I'm working my way through the process to put together a Windows build environment for testing and XP is what I've got.
 
 
 
CMake?
 
- There could be an issue with compiling YAJL, it uses cmake but it is not clear that we have set up a cmake system to do so...?
 
 
 
 
 
----
 
 
 
I had to change gstreamer0.10-fluendo-mp3 to gstreamer1.0-fluendo-mp3 in the apt install - Seems 0.10 is no longer available. In the Compiling on Ubuntu 16.04 section
 
--[[User:Phoenix|Phoenix]] 09:18, 2 April 2017 (EDT)
 
 
 
----
 
 
 
Going through the Windows Installation I came up with a couple of issues / suggestions:
 
 
 
* As stated above cmake is used to compile yajl but it's not stated anywhere before that.
 
* Windows has issues with whitespaces in paths, worth a mention if someone wants to deviate from default installation paths (ln -s is a decent workaround).
 
* all commands after the clone give the <code>~/src/Mudlet</code> for granted, since they invite you to copy paste all of it, a reminder to check the path could be useful, the same applies for includes and linking. Just let them know they will get errors with copy paste before they start googling for that ld error.
 
* qmake <code>INCLUDEPATH</code> example didn't work for me, had to change <code>/f/<path></code> to <code>F:/<path></code>.
 
* <code>gcc -shared -o zip.dll src/luazip.o -Lc:\mingw32\lib -lzzip -lz c:/mingw32/bin/lua51.dll -lm</code> in the zip.dll compile shouldn't work, <code>-Lc:\mingw32\lib -lzzip</code> should be <code>-Lc:/mingw32/lib -lzzip</code>
 
 
 
Hope this helps.
 
--[[User:Gilmo|Gilmo]] ([[User talk:Gilmo|talk]]) 00:19, 14 October 2017 (UTC)
 
 
 
----
 
 
 
== MX 4.19 ==
 
 
 
The process for compiling mudlet on MX 4.19 follows identical to compiling for debian 10 Buster, except you also need the dependencies:
 
libsecret-1-dev
 
libqt5opengl5-dev
 
 
 
Installing those should let qmake run without errors.
 

Revision as of 08:03, 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 cd Mudlet/CI 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 ignore the clang-format error press link with qt, choose C:/msys64/mingw64 as the location. restart qt creator open C:/msys64/home/<user>/Mudlet/src/mudlet.pro in Build Environment details, set 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.