Menu Content/Inhalt
Home arrow Forum

Articles

Poker Tips

Login






Lost Password?
No account yet? Register
PokerTH - Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Compiling on Debain - works (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Compiling on Debain - works
#1329
skub (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Compiling on Debain - works 1 Year ago Karma: 0  
Hey guys...

as i had to do a lot of researching... i would like to share some hints how to compile under debian based systems... and how all this boost-stuf works...

lets start with the packages we need...:

Code:

pokerth@nyx:~/src$ aptitude search libboost p libboost-date-time-dev - set of date-time libraries based on generi c libboost-date-time1.33.1 - set of date-time libraries based on generi i libboost-date-time1.34.1 - set of date-time libraries based on generi p libboost-dbg - Boost C++ Libraries with debug symbols i libboost-dev - Boost C++ Libraries development files p libboost-doc - Boost.org libraries documentation p libboost-filesystem-dev - filesystem operations (portable paths, ite c libboost-filesystem1.33.1 - filesystem operations (portable paths, ite i libboost-filesystem1.34.1 - filesystem operations (portable paths, ite p libboost-graph-dev - generic graph components and algorithms in p libboost-graph1.33.1 - generic graph components and algorithms in i libboost-graph1.34.1 - generic graph components and algorithms in p libboost-iostreams-dev - Boost.Iostreams Library development files p libboost-iostreams1.33.1 - Boost.Iostreams Library i libboost-iostreams1.34.1 - Boost.Iostreams Library p libboost-program-options-dev - program options library for C++ c libboost-program-options1.33.1 - program options library for C++ i libboost-program-options1.34.1 - program options library for C++ p libboost-python-dev - Boost.Python Library development files p libboost-python1.33.1 - Boost.Python Library i libboost-python1.34.1 - Boost.Python Library p libboost-regex-dev - regular expression library for C++ c libboost-regex1.33.1 - regular expression library for C++ i libboost-regex1.34.1 - regular expression library for C++ p libboost-serialization-dev - serialization library for C++ i libboost-serialization1.34.1 - serialization library for C++ p libboost-signals-dev - managed signals and slots library for C++ p libboost-signals1.33.1 - managed signals and slots library for C++ i libboost-signals1.34.1 - managed signals and slots library for C++ p libboost-test-dev - components for writing and executing test p libboost-test1.33.1 - components for writing and executing test p libboost-test1.34.1 - components for writing and executing test p libboost-thread-dev - portable C++ multi-threading c libboost-thread1.33.1 - portable C++ multi-threading i libboost-thread1.34.1 - portable C++ multi-threading p libboost-wave-dev - C99/C++ preprocessor library p libboost-wave1.34.1 - C99/C++ preprocessor library
additionally i installed "libsdl1.2-dev" and "libsdl-mixer1.2-dev" not sure if you need them... Do not install the libboost-XXX-dev variants, as they istall the 1.33.1 packages and are linking them in /usr/lib... pokerth will not link correctly at end of compile-time (unresolved references errors) for whatever reason, the packages create no links for these 1.34.1 libs... you have to create them manually as root, so your /usr/lib should look like this:
Code:

pokerth@nyx:/usr/lib$ l | grep libboost_filesystem -rw-r--r-- 1 root root 47K 2007-08-15 07:27 libboost_filesystem-gcc41-1_34_1.so.1.34.1 -rw-r--r-- 1 root root 47K 2007-08-15 07:27 libboost_filesystem-gcc41-mt-1_34_1.so.1.34.1 [b]lrwxrwxrwx 1 root root 42 2007-11-19 10:38 libboost_filesystem.so -> libboost_filesystem-gcc41-1_34_1.so.1.34.1[/b] pokerth@nyx:/usr/lib$ l | grep libboost_thread -rw-r--r-- 1 root root 47K 2007-08-15 07:27 libboost_thread-gcc41-mt-1_34_1.so.1.34.1 [b]lrwxrwxrwx 1 root root 41 2007-11-19 10:37 libboost_thread.so -> libboost_thread-gcc41-mt-1_34_1.so.1.34.1[/b]
now lets grab the source:
Code:

pokerth@nyx:~/src$ svn co -r 1278 http://pokerth.svn.sourceforge.net/svnroot/pokerth/trunk/pokerth pokerth-1278
will put all revision 1278 files into a folder in ~/src/pokerth-1278 we still are lacking the include-files for boost. i have not figured out how to use the debian dev-packages for this, so i grab the boost_1_34_1.tar.bz2 from the libboost-website at extracted it also in ~/src/ you don't need to build anything from libboost !!! wich would be pain in the ass... so building-environment looks like:
Code:

pokerth@nyx:~/src$ l total 13M drwxr-xr-x 7 pokerth pokerth 4.0K 2007-11-19 11:18 . drwxr-xr-x 8 pokerth pokerth 4.0K 2007-11-19 11:18 .. drwxr-xr-x 11 pokerth pokerth 4.0K 2007-11-15 22:13 boost_1_34_1 -rw-r--r-- 1 pokerth pokerth 13M 2007-07-25 01:25 boost_1_34_1.tar.bz2 drwxr-xr-x 13 pokerth pokerth 4.0K 2007-11-19 10:56 pokerth-1013 drwxr-xr-x 13 pokerth pokerth 4.0K 2007-11-19 10:38 pokerth-1106 drwxr-xr-x 8 pokerth pokerth 4.0K 2007-11-19 11:18 pokerth-1278 drwxr-xr-x 13 pokerth pokerth 4.0K 2007-11-15 21:55 pokerth-latest
if you dont like to put boost-libs into "/usr/include" directory create a symbolic link to your downloaded boost files... like this:
Code:

pokerth@nyx:~/src$ cd pokerth-1278/ pokerth@nyx:~/src/pokerth-1278$ ln -s ../boost_1_34_1/boost boost pokerth@nyx:~/src/pokerth-1278$ l total 280K drwxr-xr-x 8 pokerth pokerth 4.0K 2007-11-19 11:23 . drwxr-xr-x 7 pokerth pokerth 4.0K 2007-11-19 11:18 .. lrwxrwxrwx 1 pokerth pokerth 21 2007-11-19 11:23 boost -> ../boost_1_34_1/boost [b][...][/b]
sometimes a normal
Code:

qmake make
does not work, dont know why... i instead use
Code:

pokerth@nyx:~/src/pokerth-1278$ qmake -makefile pokerth_lib.pro pokerth@nyx:~/src/pokerth-1278$ make
wich compiles (and links) the lib for you... afterwards a
Code:

pokerth@nyx:~/src/pokerth-1278$ qmake -makefile pokerth_server.pro pokerth@nyx:~/src/pokerth-1278$ make
provides you the server binary as bin/pokerth_server ...you dont need to "make install"... hope this information helps... if i had it before... it would have saved some headage... (especially the links in /usr/lib...)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1332
lotodore (Admin)
Admin
Posts: 262
graphgraph
User Offline Click here to see the profile of this user
Re:Compiling on Debain - works 1 Year ago Karma: 13  
While they do no harm , you do not need all boost packages. thread, datetime and filesystem are needed.
 
Report to moderator   Logged Logged  
 
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
designed by www.madeyourweb.com