Difference between revisions of "Compiling Mudlet"

From Mudlet
Jump to navigation Jump to search
Line 17: Line 17:
 
  cd mudlet/src
 
  cd mudlet/src
  
'''5. edit src.pro like so:'''
+
'''5.a edit src.pro like so (for 32bit):'''
  
 
replace the corresponding part near the beginning of the file with this:
 
replace the corresponding part near the beginning of the file with this:
Line 26: Line 26:
 
  # automatically link to LuaJIT if it exists
 
  # automatically link to LuaJIT if it exists
 
  exists(/usr/lib/i386-linux-gnu/libluajit-5.1.a):LIBLUA = -L/usr/lib/i386-linux-gnu/ -lluajit-5.1
 
  exists(/usr/lib/i386-linux-gnu/libluajit-5.1.a):LIBLUA = -L/usr/lib/i386-linux-gnu/ -lluajit-5.1
 +
 +
 +
'''5.b edit src.pro like so (for 64bit):'''
 +
 +
replace the corresponding part near the beginning of the file with this:
 +
 +
LIBLUA = -llua5.1
 +
!exists(/usr/lib/x86_64-linux-gnu/liblua5.1.a):LIBLUA = -llua
 +
 +
# automatically link to LuaJIT if it exists
 +
exists(/usr/lib/x86_64-linux-gnu/libluajit-5.1.a):LIBLUA = -L/usr/lib/x86_64-linux-gnu/ -lluajit-5.1
  
 
'''6. run the following commands'''
 
'''6. run the following commands'''

Revision as of 04:03, 5 November 2011

Compiling on Ubuntu 11.10

1. Install GIT

sudo apt-get install git

2. Installing the needed packages

sudo apt-get install build-essential qt4-dev-tools lua5.1 liblua5.1-0-dev libpcre3-dev libboost1.46-dev zlib1g-dbg zlib1g-dev libyajl1 libyajl-dev libyajl1-dbg liblua5.1-rex-pcre0 liblua5.1-sql-sqlite3-2 liphonon-dev libhunspell-dev libzzip-dev

3. get mudlet source

git clone git://mudlet.git.sourceforge.net/gitroot/mudlet/mudlet

4. goto the mudlet src folder

cd mudlet/src

5.a edit src.pro like so (for 32bit):

replace the corresponding part near the beginning of the file with this:

LIBLUA = -llua5.1
!exists(/usr/lib/i386-linux-gnu/liblua5.1.a):LIBLUA = -llua

# automatically link to LuaJIT if it exists
exists(/usr/lib/i386-linux-gnu/libluajit-5.1.a):LIBLUA = -L/usr/lib/i386-linux-gnu/ -lluajit-5.1


5.b edit src.pro like so (for 64bit):

replace the corresponding part near the beginning of the file with this:

LIBLUA = -llua5.1
!exists(/usr/lib/x86_64-linux-gnu/liblua5.1.a):LIBLUA = -llua

# automatically link to LuaJIT if it exists
exists(/usr/lib/x86_64-linux-gnu/libluajit-5.1.a):LIBLUA = -L/usr/lib/x86_64-linux-gnu/ -lluajit-5.1

6. run the following commands

qmake-qt4
make
sudo make install


7. enjoy