forgottenserver icon indicating copy to clipboard operation
forgottenserver copied to clipboard

[Feature]: Update wiki/Compiling-on-Ubuntu

Open gesior opened this issue 1 year ago • 2 comments

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.

  1. 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.

  2. To compile newest TFS on Ubuntu 24.04 you have to install 2 new boost libraries:

apt install libboost-locale-dev libboost-json-dev
  1. 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

gesior avatar Jul 11 '24 14:07 gesior

Additionally, information how to build TFS 1.4.2 would be useful

ArturKnopik avatar Jul 11 '24 16:07 ArturKnopik

Refresh! Additionally I would also move the wiki to gitbook, where docs are located.

This way everyone can participate with documentation, through PRs etc.

slawkens avatar Apr 18 '25 21:04 slawkens