Can you link source files github/otland thread? If it's old engine, it will probably need multiple fixes from my thread:How to compile this server wether on WSL Ubutu or Windows?
I tried lots of suggestive steps but none seemed to achieve a result, thanks
It was taken from a Brazilian video on Youtube. Can you confirm if it is your mentioned methodology as:Can you link source files github/otland thread? If it's old engine, it will probably need multiple fixes from my thread:
to make it compile on modern Linux like Ubuntu 22.04.There are many threads with compilation errors, but I did not find any with full instruction how to fix all problems.
For people familiar with 'git compare':
1) All errors fixed one by one: gesior/tfs_0.4_on_debian_10 (https://github.com/gesior/tfs_0.4_on_debian_10/commits/main)
2) Total diff of TFS 0.4 rev 3777 update to compile it on Debian 10: gesior/tfs_0.4_on_debian_10 (https://github.com/gesior/tfs_0.4_on_debian_10/compare/c215d09...9664f12)
TFS 0.4 rev 3777 sources updated to compile on Debian 10: gesior/tfs_0.4_on_debian_10...
- Gesior.pl
- Replies: 71
- Forum: Miscellaneous
Rebuild started at 12:25 PM...
1>------ Rebuild All started: Project: TheOTXServer, Configuration: Release x64 ------
1>otpch.cpp
1>actions.cpp
1>baseevents.cpp
1>beds.cpp
1>chat.cpp
1>combat.cpp
1>condition.cpp
1>configmanager.cpp
1>connection.cpp
1>container.cpp
1>creature.cpp
1>creatureevent.cpp
1>cylinder.cpp
1>database.cpp
1>databasemanager.cpp
1>databasemysql.cpp
1>databasemysqlpp.cpp
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\house.h(26,10): error C1083: Cannot open include file: 'boost/tr1/unordered_set.hpp': No such file or directory
1>(compiling source file '/configmanager.cpp')
1>databasepgsql.cpp
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\connection.h(68,17): error C2039: 'io_service': is not a member of 'boost::asio'
1>(compiling source file '/connection.cpp')
1> C:\vcpkg\installed\x64-windows\include\boost\asio\impl\write_at.hpp(35,11):
1> see declaration of 'boost::asio'
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\connection.h(68,17): error C2061: syntax error: identifier 'io_service'
1>(compiling source file '/connection.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\databasemysql.h(27,10): error C1083: Cannot open include file: 'mysql.h': No such file or directory
1>(compiling source file '/databasemysql.cpp')
1>iologindata.cpp
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\connection.h(108,65): error C2039: 'io_service': is not a member of 'boost::asio'
1>(compiling source file '/chat.cpp')
1> C:\vcpkg\installed\x64-windows\include\boost\asio\impl\write_at.hpp(35,11):
1> see declaration of 'boost::asio'
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\connection.h(108,65): error C2061: syntax error: identifier 'io_service'
1>(compiling source file '/chat.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\server.h(97,48): error C2065: 'm_io_service': undeclared identifier
1>(compiling source file '/waitlist.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\server.h(97,21): error C2614: 'ServiceManager': illegal member initialization: 'm_io_service' is not a base or member
1>(compiling source file '/waitlist.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\server.h(110,15): error C2065: 'm_io_service': undeclared identifier
1>(compiling source file '/waitlist.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\server.h(97,48): error C2065: 'm_io_service': undeclared identifier
1>(compiling source file '/weapons.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\server.h(97,21): error C2614: 'ServiceManager': illegal member initialization: 'm_io_service' is not a base or member
1>(compiling source file '/weapons.cpp')
1>C:\Users\Kevin\Desktop\Darkera Game Development\Darkera\Darkera Server\sources\server.h(110,15): error C2065: 'm_io_service': undeclared identifier
1>(compiling source file '/weapons.cpp')
1>Done building project "TheOTXServer.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
========== Rebuild completed at 12:25 PM and took 07.498 seconds ==========
Again: you can't tell us some random name of server likehow to fix these family of errors as i shortened the total errors as they are similar
The SoftCores Version: (1.0.X.S - 4) - Codename: (LORD ZEDD). Link github/otland post or .zip/.rar with server files, so we can check how compilation in your files work.sh autogen.sh
./configure --enable-mysql --disable-dependency-tracking
sh build.sh
error C2039: 'io_service': is not a member of 'boost::asio'
Cannot open include file: 'boost/tr1/unordered_set.hpp':
Cannot open include file: 'mysql.h':
I'm trying to compile on Windows.Again: you can't tell us some random name of server likeThe SoftCores Version: (1.0.X.S - 4) - Codename: (LORD ZEDD). Link github/otland post or .zip/.rar with server files, so we can check how compilation in your files work.
What commands do you use to compile server?
or something else?Code:sh autogen.sh ./configure --enable-mysql --disable-dependency-tracking sh build.sh
About errors:
IDK, maybe use older Ubuntu like 20.04 to get older boost::asio lib.Code:error C2039: 'io_service': is not a member of 'boost::asio'
It looks like error no 1 from my tutorial ( [C++/Linux] Compiling old engine (sources) on Debian 10 / Ubuntu 20.04 (https://otland.net/threads/c-linux-compiling-old-engine-sources-on-debian-10-ubuntu-20-04.274654/) ), but somehow not detected on './configure' step (which checks, if all C++ libraries are installed), so it failed on compilation.Code:Cannot open include file: 'boost/tr1/unordered_set.hpp':
Missing library in Linux or you did not run `./configure', so it did not detect C++ libraries in your Linux and use them during compilation.Code:Cannot open include file: 'mysql.h':
Rest is related to previous errors or code is really bugged and use undefined variable (maybe use invalid variable name).
ok you can compile with the current version of Ubuntu, but you will have to edit the project to recent logic, as they use some old variables or as it says (deprecated), but this has already changed, so when you use the new version of boost you must change this variable, as the Boost-asio object is wrong no longer ::io_service is ::io_context.I'm trying to compile on Windows.
![]()
97.14 MB file on MEGA
mega.nz
This is the server, please check for me and teach me how to compile, i spent already 7 days trying, for hours
Check this:ok you can compile with the current version of Ubuntu, but you will have to edit the project to recent logic, as they use some old variables or as it says (deprecated), but this has already changed, so when you use the new version of boost you must change this variable, as the Boost-asio object is wrong no longer ::io_service is ::io_context.
I could help you but if you upload this project to github because there you will be able to understand where made the changes to be more transparent, i dont like downloading things that are not from github.
Up, anyone can help me?