Closed kiletic closed 1 month ago
I would rather recommend Debian and other outdated distro users to use vcpkg instead, so that they can get up-to-date versions of all dependencies, not only Boost. We will add a page with instructions on using vcpkg in Linux/OS X, but meanwhile with vcpkg installed you can run cmake --preset vcpkg
followed by cmake --build --preset vcpkg
and you're golden.
Alternatively, you can disable the HTTP server by passing -DHTTP=OFF
when generating makefiles.
I added a page to the wiki documenting how to use vcpkg on Linux:
https://github.com/otland/forgottenserver/wiki/Compiling-on-Linux-%26-Mac-OS-X-%28vcpkg%29
With the introduction of
boost-json
and/orboost-beast
dependency from #4706 the project no longer compiles properly following the wiki for Debian 12 while using bookworm (stable). This is due to outdatedlibboost-all-dev
which is at version 1.74.0.3 on apt:bookworm, as far as I knowboost-json
is introduced in version 1.75.I tried to solve it by removing the installed
libboost-all-dev
from apt and manually building the 1.75 version, however it was also outdated --- missing some header files for boost-beast. Then I tried the newest version 1.85 and it also failed because the code is using some deprecated features lolAnyways, I then picked 1.83 since it is also used on sid (unstable) and the project compiled successfully. Updating the wiki might be a good idea? I'll leave the steps I used to resolve this issue as a temporary solution for anyone else that might have the same issue.
Note: If you're getting missing libraries errors from boost when running tfs you might need to run
sudo ldconfig
to update the cache.