Compiling Mudlet on Windows

February 4th, 2009

These instructions outline how to compile Mudlet on Windows. If you’d just like to download an already compiled version for you, you can get it from here.

Step 1: Download everything

Step 2: Install stuff

  • Install Qt in the C:\Mudlet\Qt\4.4.3 folder
  • When installing, make sure to select “Download and install minimal MinGW installation” to C:\Mudlet\MinGW
  • Don’t “download MinGW source code”
  • Install CMake
    • Select “Add CMake to the system path for the current user”
    • Install in C:\Mudlet\CMake 2.6


Step 3: Set paths

  • Go to the Control PanelSystemAdvanced → Enviroment Variables → and double-click on Path under Enviroment Variables
  • Now add the path to include paths to zlib, cmake, Qt and Lua. Assuming you downloaded all sources to your C:\Mudlet folder (as demonstrated here), they will be the following (otherwise, adjust as necessary:
    • ;C:\Mudlet\CMake 2.6\bin;C:\Mudlet\MinGW\bin;C:\Mudlet\MinGW\mingw32\bin;C:\Mudlet\Qt\4.4.3\bin;C:\Mudlet\zlib123-dll\lib;C:\Mudlet\zlib123-dll\include;C:\Mudlet\lua-5.1.4\src;C:\Mudlet\Qt\4.4.3\qmake;C:\Mudlet\pcre-7.8
    • To set this, double-click on PATH under System Variables, and append the line above to it.

Step 2: Start building

  • Build QScintilla2
    • Open cmd (Start → Run… → cmd) and use cd to navigate to qscintilla’s directory. Then do:
    • cd Qt4
    • qmake qscintilla.pro
    • make
    • make install
  • Build Lua
    • cd to lua’s directory and then:
    • make mingw
  • Build PCRE
    • cd to PCRE’s directory and then:
    • cmake -DBUILD_SHARED_LIBS:BOOL=ON -G “MinGw Makefiles”
    • make


Step 4: Finish building

  • Now lets build Mudlet itself
    • cd mudletsrc
    • cmake -G “MinGW Makefiles”
    • make
  • Or you can use CMake’s gui (start → program files → cmake) to find the Mudlet .cmake file and choose the “MinGW Makefiles” option.

That’s it! Enjoy your mudlet.exe :)



Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Subscribe without commenting