Compiling Mudlet on Linux
March 8th, 2009
Linux:
- Install
- g++ and the company
- QT 4.4 development tools (4.3 not enough)
- Qt 4.4 webkit module (some distributions may not ship it with qt)
- qscintilla version 2.2.3 or higher (earlier versions may crash when deleting newlines)
- lua version 5.1 or higher
- libpcre development package (7.6 and above is preferred, but earlier will work)
- note: if you install any libraries from source code, you need to do “ldconfig” as user root to register the libraries. This should be done by the install scripts of the respective libraries, but this is often forgotten.
Ubuntu users can do: sudo apt-get install build-essential libqscintilla2-dev lua5.1 liblua5.1-0-dev qt4-dev-tools libpcre3-dev. Others, see your distribution details for the said packages.
- Download the latest Mudlet source code
- Navigate to the Mudlet directory, through the terminal, and do: “cmake . ” (minus the quotes)
- If cmake fails, then it usually means that you are missing the header files which you can get if you install the corresponding -dev packages from your distribution e.g. liblua51-dev, libqt4.4-dev.
- If cmake still doesn’t work, try qmake-qt4
- If qmake can’t find anything, edit the mudlet/src/src.pro file and adjust the paths to point to your mudlet folder location
- Then try qmake-qt4 again.
- If it doesn’t still work, let us know on the forums.
- Now do make to compile Mudlet
- And install Mudlet with sudo make install
- Run mudlet by entering: mudlet
