• 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 Was compiling and! (OSX)

StreamSide

Joseluis Gonzalez
Staff member
Support Team
Joined
Aug 31, 2007
Messages
3,608
Solutions
51
Reaction score
1,224
Location
Arica - Chile
well I was compiling the last rev of tfs1.0 and a wild error appears


Code:
[ 47%] Building CXX object CMakeFiles/tfs.dir/src/luascript.cpp.o
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12046:32: error:
      'reinterpret_cast' to class 'CombatSpell *' from its base at non-zero
      offset 'BaseSpell *' behaves differently from 'static_cast'
      [-Werror,-Wreinterpret-base-class]
  ...reinterpret_cast<CombatSpell*>(spellBlock.spell));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12046:32: note: use
      'static_cast' to adjust the pointer correctly while downcasting
                pushUserdata<CombatSpell>(L, reinterpret_cast<CombatSpel...
                                             ^~~~~~~~~~~~~~~~
                                             static_cast
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12076:32: error:
      'reinterpret_cast' to class 'CombatSpell *' from its base at non-zero
      offset 'BaseSpell *' behaves differently from 'static_cast'
      [-Werror,-Wreinterpret-base-class]
  ...reinterpret_cast<CombatSpell*>(spellBlock.spell));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12076:32: note: use
      'static_cast' to adjust the pointer correctly while downcasting
                pushUserdata<CombatSpell>(L, reinterpret_cast<CombatSpel...
                                             ^~~~~~~~~~~~~~~~
                                             static_cast
2 errors generated.
make[2]: *** [CMakeFiles/tfs.dir/src/luascript.cpp.o] Error 1
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
make: *** [all] Error 2
MacBook-Pro-de-Camila:build CamilaGonzalez$

dont know what is happening and i hope you guys could help and teach me how to fix it :)
 
What version of OSX are you using? Is this TFS 1.0 or 1.1?
Mavericks and i did git clone to https://github.com/otland/forgottenserver.git i guess thats 1.1 ya? will test downloading 1.0 and will edit

edited:
compile was fine now i got this error and idk why

Code:
Last login: Wed Nov 26 01:07:20 on ttys001
MacBook-Pro-de-Camila:~ CamilaGonzalez$ /Users/CamilaGonzalez/forgottenserver1/tfs ; exit;
The Forgotten Server - Version 1.0
Compiled with: Clang version 6.0 (clang-600.0.54)
Compiled on Nov 26 2014 01:02:30 for arch x64

A server developed by Mark Samman
Visit our forum for updates, support, and resources: http://otland.net/.
>> Loading config
[Error - ConfigManager::load] cannot open config.lua: No such file or directory
> ERROR: Unable to load config.lua!
>> No services running. The server is NOT online.
logout
[Proceso completado]

btw @dominique120
Code:
drwxrwxrwx@  17 CamilaGonzalez  staff   578 Nov 26 01:04 forgottenserver1

EDIT2:
ok i fixed it by my own anyways thanks @dominique120 and if anyone got questions im here to answer
 
Last edited:
Back
Top