paste.tuxfamily.org
Userdata
Name
xavier_g
Scriptlanguage
Plain Text
Tabwidth
4
Date
08/21/2010 11:44:09 pm
IP
82.225.0.64
Description
Compilation client TarotClub
Code (
Hide rownumbers
)
aptitude install liblua5.1-0 liblua5.1-0-dev
git clone http://github.com/Belegar/TarotClub.git
cd TarotClub/
vim prj/TarotClub.pro src/LuaBot.cpp
diff --git a/prj/TarotClub.pro b/prj/TarotClub.pro
index 4f35c1a..124611e 100644
--- a/prj/TarotClub.pro
+++ b/prj/TarotClub.pro
@@ -28,12 +28,14 @@ RESOURCES = $${PWD}/../src/data/data.qrc
CONFIG += qt \
warn_on
INCLUDEPATH += $${PWD}/include
-INCLUDEPATH += $${PWD}/../lib/lua/src
+INCLUDEPATH += /usr/include/lua5.1/
INCLUDEPATH += $${PWD}/../src/client
INCLUDEPATH += $${PWD}/../src/server
win32 {
LIBS += $${PWD}/../lib/win32/liblua.a
RC_FILE = icon.rc
+} else {
+ LIBS += -llua5.1
}
HEADERS += AboutWindow.h \
MainWindow.h \
diff --git a/src/LuaBot.cpp b/src/LuaBot.cpp
index f87b870..2f75455 100644
--- a/src/LuaBot.cpp
+++ b/src/LuaBot.cpp
@@ -39,7 +39,7 @@ LuaBot::LuaBot(lua_State *L)
/*****************************************************************************/
LuaBot::~LuaBot()
{
- cerr << "Deleted Lua object " << (int)this;
+ cerr << "Deleted Lua object " << (void *)this;
}
/*****************************************************************************/
int LuaBot::getCardNumber(lua_State *L)
cd prj/
qmake TarotClub.pro
time make -j 9
gnopaste submitter »
gnopaster.pl
|
nopaste.docs
« useful documents