• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Missing header in source

Turul

New Member
Joined
Sep 24, 2013
Messages
12
Reaction score
0
Since MinGW was giving me more trouble than it was worth, I resolved to use Cygwin. After a fun little trip through dependency hell, I have the following issue when compiling the latest source from https://github.com/opentibia/server/

Code:
/home/$USER/OTServ/src/actor.cpp:20:19: fatal error: otpch.h: No such file or directory
compilation terminated
src/CMakeFiles/otserv.dir/build.make:57: recipe for target 'src/CMakeFiles/otserv.dir/actor.cpp.o' failed
make[2]: *** [src/CMakeFiles/otserv.dir/actor.cpp.o] Error 1
CMakeFiles/Makefile2:78: recipe for target 'src/CMakeFiles/otserv.dir/all' failed
make[1]: *** [src/CMakeFiles/otserv.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

Any help getting this to finally compile would be appreciated.
 
I have recently made a lot of commits to fix this issue since apparently one of us (developers) removed important files some time ago.

Also, the repository is registered at Travis which is now compiling the server each time new commit is made to make sure no one makes such mistake again.

https://travis-ci.org/opentibia/server

Please, clone the server and give it a try (it will compile with MySQL database driver as default)
 
The original error is gone, thanks a lot!

However, I'm getting the following:

Code:
[  1%] Building CXX object src/CMakeFiles/otserv.dir/actor.cpp.o
In file included from /home/Angelos/OpenTibia/OpenTibia/src/actor.cpp:29:0:
/home/user/OpenTibia/OpenTibia/src/configmanager.h:154:57: error: expected ‘,’ or ‘...’ before numeric constant
/home/user/OpenTibia/OpenTibia/src/configmanager.h:165:41: error: expected ‘,’ or ‘...’ before numeric constant
/home/user/OpenTibia/OpenTibia/src/configmanager.h:166:37: error: expected ‘,’ or ‘...’ before numeric constant
/home/user/OpenTibia/OpenTibia/src/configmanager.h:167:35: error: expected ‘,’ or ‘...’ before numeric constant
/home/user/OpenTibia/OpenTibia/src/configmanager.h:168:35: error: expected ‘,’ or ‘...’ before numeric constant
src/CMakeFiles/otserv.dir/build.make:57: recipe for target `src/CMakeFiles/otserv.dir/actor.cpp.o' failed
make[2]: *** [src/CMakeFiles/otserv.dir/actor.cpp.o] Error 1
CMakeFiles/Makefile2:78: recipe for target `src/CMakeFiles/otserv.dir/all' failed
make[1]: *** [src/CMakeFiles/otserv.dir/all] Error 2
Makefile:75: recipe for target `all' failed
make: *** [all] Error 2

I used CMake 2.8.9-2, if that information is any use. If I should make a new thread for the error, or go elsewhere more OpenTibia-centric, please let me know.
 
Back
Top