Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
gesior opened this issue Jul 11, 2024 · 1 comment
Open
1 task done

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

gesior opened this issue Jul 11, 2024 · 1 comment
Assignees
Labels
feature New feature or functionality

Comments

@gesior
Copy link
Contributor

gesior commented Jul 11, 2024

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

  • There is no existing issue for this feature (or similar) already

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
  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 gesior added the feature New feature or functionality label Jul 11, 2024
@ArturKnopik
Copy link
Contributor

Additionally, information how to build TFS 1.4.2 would be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or functionality
Projects
None yet
Development

No branches or pull requests

3 participants