Turul
New Member
- Joined
- Sep 24, 2013
- Messages
- 12
- Reaction score
- 0
I just got the source from github, and I'm having trouble getting it TFS to compile.
I'm using lua, not luajit, if it's any help.
Starting to wonder whether I'll ever be able to get an OpenTibia server to work.
Code:
[ 1%] Building CXX object CMakeFiles/tfs.dir/src/actions.cpp.o
In file included from /usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c++/cctype:42:0,
from /usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c++/bits/localefwd.h:42,
from /usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c++/string:43,
from /usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c++/stdexcept:39,
from /usr/include/boost/asio/io_service.hpp:20,
from /usr/include/boost/asio/basic_io_object.hpp:19,
from /usr/include/boost/asio/basic_socket.hpp:19,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /usr/include/boost/asio.hpp:20,
from /home/Dan/Tibia/forgottenserver/src/otpch.h:30,
from /home/Dan/Tibia/forgottenserver/src/actions.cpp:20:
/home/Dan/Tibia/forgottenserver/src/configmanager.h:115:49: error: expected ‘,’ or ‘...’ before numeric constant
static std::string getGlobalString(lua_State* _L, const std::string& _identifier, const std::string& _default = "");
^
/home/Dan/Tibia/forgottenserver/src/configmanager.h:116:45: error: expected ‘,’ or ‘...’ before numeric constant
static int32_t getGlobalNumber(lua_State* _L, const std::string& _identifier, const int32_t _default = 0);
^
/home/Dan/Tibia/forgottenserver/src/configmanager.h:117:54: error: expected ‘,’ or ‘...’ before numeric constant
static std::string getGlobalStringField(lua_State* _L, const std::string& _identifier, const int32_t _key, const std::string& _default = "");
^
In file included from /home/Dan/Tibia/forgottenserver/src/player.h:37:0,
from /home/Dan/Tibia/forgottenserver/src/game.h:31,
from /home/Dan/Tibia/forgottenserver/src/actions.cpp:27:
/home/Dan/Tibia/forgottenserver/src/town.h: In member function ‘Town* Towns::getTown(const string&) const’:
/home/Dan/Tibia/forgottenserver/src/town.h:81:66: error: ‘strcasecmp’ was not declared in this scope
if (strcasecmp(townName.c_str(), it.second->getName().c_str()) == 0) {
^
CMakeFiles/tfs.dir/build.make:57: recipe for target 'CMakeFiles/tfs.dir/src/actions.cpp.o' failed
make[2]: *** [CMakeFiles/tfs.dir/src/actions.cpp.o] Error 1
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
I'm using lua, not luajit, if it's any help.
Starting to wonder whether I'll ever be able to get an OpenTibia server to work.