Novynn / ghostplusplus

Automatically exported from code.google.com/p/ghostplusplus
Other
0 stars 0 forks source link

Can't compile on Linux #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Referring to: 
http://code.google.com/p/ghostplusplus/issues/detail?id=114#makechanges . 
Thread was marked as fixed and so on. So i made a new issue.

Having still the problem:

g++ -o bnet.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c 
bnet.cpp
bnet.cpp: In member function 'void 
CBNET::ProcessChatEvent(CIncomingChatEvent*)':
bnet.cpp:1666: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1667: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1677: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1679: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1695: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1777: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1778: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1788: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1790: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
bnet.cpp:1806: error: 'struct std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >' has no member named 'string'
make: *** [bnet.o] Error 1

I also installed Boost 1.46.1 but i have still the problem. That s what i did.

1.Got the new svn ghost
2.Got the new Boost libary:
wget 
http://downloads.sourceforge.net/project/boost/boost/1.46.1/boost_1_46_1.tar.bz2
?r=&ts=1316903484&use_mirror=dfn
tar xjf boost_1_46_1.tar.bz2
cd boost_1_46_1.tar.bz2

 ./bootstrap.sh  --with-libraries=filesystem,program_options,system,regex,thread,date_time --libdir=/usr/lib/
 ./bjam
 ./bjam install

3. cd [...]ghost/bncsutil/src/bncsutil/
make
make install

cd [...]ghost/StormLib/stormlib/
make
make install

cd [...]ghost/ghost/
make

-> Problem, you see above
[...] means that i left there something

Things that may help to find a solution.

ls -l /usr/lib/libboost*.so
lrwxrwxrwx 1 root root 42 Aug 15 17:46 
/usr/lib/libboost_date_time-gcc44-mt-1_39.so -> 
libboost_date_time-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 42 Aug 15 17:46 /usr/lib/libboost_date_time-gcc44-mt.so 
-> libboost_date_time-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 28 Nov 12  2010 /usr/lib/libboost_date_time-mt.so -> 
libboost_date_time.so.1.42.0
lrwxrwxrwx 1 root root 28 Sep 25 02:01 /usr/lib/libboost_date_time.so -> 
libboost_date_time.so.1.46.1
lrwxrwxrwx 1 root root 43 Aug 15 17:46 
/usr/lib/libboost_filesystem-gcc44-mt-1_39.so -> 
libboost_filesystem-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 43 Aug 15 17:46 /usr/lib/libboost_filesystem-gcc44-mt.so 
-> libboost_filesystem-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 29 Nov 12  2010 /usr/lib/libboost_filesystem-mt.so -> 
libboost_filesystem.so.1.42.0
lrwxrwxrwx 1 root root 29 Sep 25 02:01 /usr/lib/libboost_filesystem.so -> 
libboost_filesystem.so.1.46.1
lrwxrwxrwx 1 root root 48 Aug 15 17:46 
/usr/lib/libboost_program_options-gcc44-mt-1_39.so -> 
libboost_program_options-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 48 Aug 15 17:46 
/usr/lib/libboost_program_options-gcc44-mt.so -> 
libboost_program_options-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 34 Sep 25 02:01 /usr/lib/libboost_program_options.so -> 
libboost_program_options.so.1.46.1
lrwxrwxrwx 1 root root 38 Aug 15 17:46 /usr/lib/libboost_regex-gcc44-mt-1_39.so 
-> libboost_regex-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 38 Aug 15 17:46 /usr/lib/libboost_regex-gcc44-mt.so -> 
libboost_regex-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 24 Nov 12  2010 /usr/lib/libboost_regex-mt.so -> 
libboost_regex.so.1.42.0
lrwxrwxrwx 1 root root 24 Sep 25 02:01 /usr/lib/libboost_regex.so -> 
libboost_regex.so.1.46.1
lrwxrwxrwx 1 root root 32 Nov 12  2010 /usr/lib/libboost_serialization-mt.so -> 
libboost_serialization.so.1.42.0
lrwxrwxrwx 1 root root 32 Nov 12  2010 /usr/lib/libboost_serialization.so -> 
libboost_serialization.so.1.42.0
lrwxrwxrwx 1 root root 39 Aug 15 17:46 
/usr/lib/libboost_system-gcc44-mt-1_39.so -> 
libboost_system-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 39 Aug 15 17:46 /usr/lib/libboost_system-gcc44-mt.so -> 
libboost_system-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 25 Nov 12  2010 /usr/lib/libboost_system-mt.so -> 
libboost_system.so.1.42.0
lrwxrwxrwx 1 root root 25 Sep 25 02:01 /usr/lib/libboost_system.so -> 
libboost_system.so.1.46.1
lrwxrwxrwx 1 root root 39 Aug 15 17:46 
/usr/lib/libboost_thread-gcc44-mt-1_39.so -> 
libboost_thread-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 39 Aug 15 17:46 /usr/lib/libboost_thread-gcc44-mt.so -> 
libboost_thread-gcc44-mt-1_39.so.1.39.0
lrwxrwxrwx 1 root root 25 Nov 12  2010 /usr/lib/libboost_thread-mt.so -> 
libboost_thread.so.1.42.0
lrwxrwxrwx 1 root root 25 Sep 25 02:01 /usr/lib/libboost_thread.so -> 
libboost_thread.so.1.46.1
lrwxrwxrwx 1 root root 33 Nov 12  2010 /usr/lib/libboost_wserialization-mt.so 
-> libboost_wserialization.so.1.42.0
lrwxrwxrwx 1 root root 33 Nov 12  2010 /usr/lib/libboost_wserialization.so -> 
libboost_wserialization.so.1.42.0

In the Makefile of ghost:

DFLAGS = -DGHOST_MYSQL
OFLAGS = -O3
LFLAGS = -L. -L../bncsutil/src/bncsutil/ -L../StormLib/stormlib/ -lbncsutil 
-lpthread -ldl -lz -lStorm -lmysqlclient_r -libboost_date_time -libboost_thread 
-libboost_system -libboost_filesystem
CFLAGS =

If you need some other details tell me :)

Would be very pleased about help :)

Original issue reported on code.google.com by Dragonof...@googlemail.com on 24 Sep 2011 at 10:48

GoogleCodeExporter commented 8 years ago
I made change r566 reverse and renamed in the Makelist the stuff from 
-libboost_thread to -lboost_thread and so an as it was before. Now i was able 
to compile it. But i don t understand why. I thought r566 changed that ghost++ 
worked with 1.46+ boost filesystem. But i had boost 1.46.1 so i should have 
worked? I don t understand why changing back was the solution. 

Then i hosted a game with that compiled version, but my game was nowhere in the 
list ( i watched the list a long time). I don t understand that.

Does anybody has a solution? I don t demand a zero hack but i think still 
without such a thing the game should appear after some time... ? Anybody has an 
idea????

Original comment by Dragonof...@googlemail.com on 25 Sep 2011 at 11:18

GoogleCodeExporter commented 8 years ago
I would like to add, that my bot will not be autohosting games. It is just for 
when i am online and want to play a map, that isn t in the game list.

Original comment by Dragonof...@googlemail.com on 25 Sep 2011 at 11:29

GoogleCodeExporter commented 8 years ago
This should solve your problem
http://www.codelain.com/forum/index.php?topic=16462.0

Original comment by Serp...@gmail.com on 21 Oct 2011 at 6:25

GoogleCodeExporter commented 8 years ago
Try to use recommenden boost libs from downloads tab.

Original comment by alim.gro...@gmail.com on 3 Apr 2012 at 12:01

GoogleCodeExporter commented 8 years ago
root@debian:/bot/ghost/ghost# make
g++ -o bnet.o  -O3 -DGHOST_MYSQL -DBOOST_FILESYSTEM_VERSION=3 -I. 
-I../bncsutil/src/ -I../StormLib/ -c bnet.cpp
bnet.cpp: In member function âvoid 
CBNET::ProcessChatEvent(CIncomingChatEvent*)â:
bnet.cpp:1666: error: âclass boost::filesystem::directory_entryâ has no 
member named âfilenameâ
bnet.cpp:1667: error: conversion from âboost::filesystem::pathâ to non-scalar 
type âstd::stringâ requested
bnet.cpp:1677: error: âclass boost::filesystem::directory_entryâ has no 
member named âfilenameâ
bnet.cpp:1679: error: âclass boost::filesystem::directory_entryâ has no 
member named âfilenameâ
bnet.cpp:1695: error: conversion from âboost::filesystem::pathâ to non-scalar 
type âstd::stringâ requested
bnet.cpp:1777: error: âclass boost::filesystem::directory_entryâ has no 
member named âfilenameâ
bnet.cpp:1778: error: conversion from âboost::filesystem::pathâ to non-scalar 
type âstd::stringâ requested
bnet.cpp:1788: error: âclass boost::filesystem::directory_entryâ has no 
member named âfilenameâ
bnet.cpp:1790: error: âclass boost::filesystem::directory_entryâ has no 
member named âfilenameâ
bnet.cpp:1806: error: conversion from âboost::filesystem::pathâ to non-scalar 
type âstd::stringâ requested
make: *** [bnet.o] Error 1

and i checked this :
lrwxrwxrwx   1 root     root           28 Mar  2 04:09 
/usr/lib/libboost_date_time.so -> libboost_date_time.so.1.53.0
lrwxrwxrwx   1 root     root           29 Mar  2 04:09 
/usr/lib/libboost_filesystem.so -> libboost_filesystem.so.1.53.0
lrwxrwxrwx   1 root     root           34 Mar  2 04:09 
/usr/lib/libboost_program_options.so -> libboost_program_options.so.1.53.0
lrwxrwxrwx   1 root     root           24 Mar  2 04:09 
/usr/lib/libboost_regex.so -> libboost_regex.so.1.53.0
lrwxrwxrwx   1 root     root           25 Mar  2 04:09 
/usr/lib/libboost_system.so -> libboost_system.so.1.53.0
lrwxrwxrwx   1 root     root           25 Mar  2 04:09 
/usr/lib/libboost_thread.so -> libboost_thread.so.1.53.0

whats the problem ? i dont understand and really need help please..

Original comment by 45R...@gmail.com on 2 Mar 2013 at 5:39