• 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 [Compiling] TFS errors | Debian 7.1 Wheezy |

Ruhat

VIP User
Joined
May 4, 2009
Messages
404
Reaction score
16
Location
Swedie
Hi Otland,

So i've always been that windows guy and I thought about making a server three days ago on Debian Linux Wheezy 7.1 so I could get some experience there too.

I've managed to install iptables, firewall, a webserver and mysql with phpmyadmin.
So I got everything checked and secured except for this tfs compiling problem i've been having for the past two days.
I've checked every tutorial out there, from elf's tutorials to Dondaniello's tutorials about compiling my TFS.

I've tried almost everything and I also have all the packages I need for compiling but still I get the same error.
I've tried to compile the TFS both in /usr/local/src and in /usr/src/ but i get the same error on both of the directories.
And also I've tried to compile my old TFS 0.4 r3777.r19 (which i got from when i was a premium) and also TFS 0.3.6pl1 and still no success.


when I write this command: ./autogen.sh
I get this:
Code:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
when i write this command: ./configure --enable-mysql
Code:
configure: error: "Lua header not found."
In the end of the execution or what it's called.

And when i write this command: ./build.sh
Code:
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 2 cores, using 3 processes
make: *** No targets specified and no makefile found.  Stop.
I get this.

I'm really hopeless and if there's someone there to help me out I would appreciate it very much.
Also remote access would be possible and I would be really thankful for any kind of help.
Thanks in advance!

Rep+
 
You forgot the .string() I guess.

ohh, in scriptmanager.cpp there's both it->path().filename().string() and it->path().filename().
Added the .string() now will build and see if it works :)

EDIT: I think it worked.

Ended with: make[1]: Leaving directory `/usr/src/server'

Sorry, but how do i execute theforgottenserver to run?

Thanks.
 
Last edited:
i did follow you on al lsteps but i still got this error, can someone help me?
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const string&, Npc*, bool)’:
luascript.cpp:744:61: error: no match for ‘operator+’ in ‘boost::filesystem3::path::filename() const() + "/"’
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/ots/trunk.r3884'
make: *** [all] Error 2
 
Replace line 744 of luascript.cpp with:
Code:
if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))
and next time start a new thread instead of bumping an old one.
 
Back
Top