• 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!

[Compiling] Linux errors (More will be added with time)

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
92
Location
Sweden, Stockholm
So here i will post compiling errors and compiling solutions that i find while hosting my servers.
Feel free too post your solutions also and i will add them.

First one:

When compilling 8.6 Rev 5845: (Or normal rev around that number)

And you recive this error:
Code:
luascript.cpp: In member function âbool LuaInterface::loadDirectory(std::string, bool, bool, Npc*)â:
luascript.cpp:769:39: error: conversion from âboost::filesystem::pathâ to non-scalar type âstd::string {aka std::basic_string<char>}â requested

Then go to line 769 in Lua script and find this:
Code:
std::string s = it->path().filename();

That you will have to change to this:
Code:
std::string s = it->path().filename().string();

Now go to scriptmanager.cpp
and locate:
Code:
std::string s = it->path().filename();
And change that also too
Code:
std::string s = it->path().filename().string();

Now you recompile your server and everything will work just fine!

_________________________________________________________________


My 3777 does not hangs on restart/shutdown!

This is the solution for that.

open up your game.cpp

Search for "exit()"

here you will see this:

2 lines, one below and one above with "IF DEF Win"

Remove these 2 lines.

____________________________________

Avesta 7.4 -> 7.72 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

This is the solution:
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:
Back
Top