• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Linux Avesta74

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
92
Location
Sweden, Stockholm
I am trying to compile Avesta (Never done this o_O) for linux.

And i get this error message:

Code:
make  all-am
make[1]: Entering directory `/home/jocce/trunk/src'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__                   tainer.cpp
In file included from cylinder.h:25:0,
                 from container.h:25,
                 from container.cpp:22:
thing.h: In member function âvirtual std::string Thing::getXRayDescription() con
thing.h:121:21: error: aggregate âstd::stringstream retâ has incomplete type and
thing.h:125:2: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [container.o] Error 1
make[1]: Leaving directory `/home/jocce/trunk/src'
make: *** [all] Error 2

Anyone know o_O? Am i missing any lib or something?
 
In thing.h under
Code:
#include "position.h"
add
Code:
#include <sstream>

This should fix error
EDIT:
You will encounter another error so in otserv.cpp under
Code:
#include <boost/asio.hpp>

add
Code:
#include <sys/signal.h>
 
Last edited:
Thanks!: )

Now i get:

Code:
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking asio.hpp usability... no
checking asio.hpp presence... no
checking for asio.hpp... no
configure: error: "boost::asio header not found."
make: *** [config.status] Error 1

And asio headern didn't exist in game.cpp so i added it, still the same problem
 
OMG, i'm so sorry. Not game.cpp, it's otserv.cpp . I was editing something there and i mistaken file name. Remove changes from game.cpp and do it in otserv.cpp
 
Back
Top