otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.57k stars 1.05k forks source link

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

Open gesior opened 1 month ago

gesior commented 1 month ago

By submitting this feature issue, you agree to the following.

Pull Requests or Links to add this feature

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

ArturKnopik commented 1 month ago

Additionally, information how to build TFS 1.4.2 would be useful