paste.tuxfamily.org

Name
xavier_g
Scriptlanguage
Plain Text
Tabwidth
4
Date
08/21/2010 11:44:09 pm
IP
82.225.0.64

Compilation client TarotClub

  1. aptitude install liblua5.1-0 liblua5.1-0-dev
  2.  
  3. git clone http://github.com/Belegar/TarotClub.git
  4. cd TarotClub/
  5.  
  6. vim prj/TarotClub.pro src/LuaBot.cpp
  7.  
  8. diff --git a/prj/TarotClub.pro b/prj/TarotClub.pro
  9. index 4f35c1a..124611e 100644
  10. --- a/prj/TarotClub.pro
  11. +++ b/prj/TarotClub.pro
  12. @@ -28,12 +28,14 @@ RESOURCES = $${PWD}/../src/data/data.qrc
  13. CONFIG += qt \
  14.     warn_on
  15. INCLUDEPATH += $${PWD}/include
  16. -INCLUDEPATH += $${PWD}/../lib/lua/src
  17. +INCLUDEPATH += /usr/include/lua5.1/
  18. INCLUDEPATH += $${PWD}/../src/client
  19. INCLUDEPATH += $${PWD}/../src/server
  20. win32 {
  21.     LIBS += $${PWD}/../lib/win32/liblua.a
  22.     RC_FILE = icon.rc
  23. +} else {
  24. +      LIBS += -llua5.1
  25. }
  26. HEADERS += AboutWindow.h \
  27.     MainWindow.h \
  28. diff --git a/src/LuaBot.cpp b/src/LuaBot.cpp
  29. index f87b870..2f75455 100644
  30. --- a/src/LuaBot.cpp
  31. +++ b/src/LuaBot.cpp
  32. @@ -39,7 +39,7 @@ LuaBot::LuaBot(lua_State *L)
  33. /*****************************************************************************/
  34. LuaBot::~LuaBot()
  35. {
  36. -  cerr << "Deleted Lua object " << (int)this;
  37. +  cerr << "Deleted Lua object " << (void *)this;
  38. }
  39. /*****************************************************************************/
  40. int LuaBot::getCardNumber(lua_State *L)
  41.  
  42. cd prj/
  43. qmake TarotClub.pro
  44. time make -j 9
  45.