[Feature]: Update wiki/Compiling-on-Ubuntu
By submitting this feature issue, you agree to the following.
- [X] There is no existing issue for this feature (or similar) already
Pull Requests or Links to add this feature
- https://github.com/otland/forgottenserver/wiki/Compiling-on-Ubuntu
Request
Ubuntu compilation wiki is not up to date.
-
Add information that newest TFS can be compiled with system packages only on Ubuntu 24.04. It won't on 22.04, libboost required is 1.75 and Ubuntu 22.04 boost packages are 1.74.
-
To compile newest TFS on Ubuntu 24.04 you have to install 2 new boost libraries:
apt install libboost-locale-dev libboost-json-dev
- Package listed in instruction:
libluajit-5.1-dev
is for LuaJIT compilation and default option ( https://github.com/otland/forgottenserver/blob/master/CMakeLists.txt#L27 ) is to use Lua, not LuaJIT. So to compile you have to run:
cmake -DUSE_LUAJIT=1 ..
or first install Lua:
apt install liblua5.3-dev
In old version of CMakeLists.txt there was detection if Lua/LuaJIT is installed and it picked version installed in system by default. Now it's always Lua by default, so Ubuntu compilation instruction should contain liblua5.3-dev in place of libluajit-5.1-dev.
There are be also added instruction how to compile with LuaJIT.
Possible Solutions
No response
Additionally, information how to build TFS 1.4.2 would be useful
Refresh! Additionally I would also move the wiki to gitbook, where docs are located.
This way everyone can participate with documentation, through PRs etc.