• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to Compile The Forgotten Server on Ubuntu Server 24.04 Without vcpkg

Dundraren

The Original Pig
Joined
Sep 25, 2007
Messages
81
Reaction score
1

I had errors compiling following the guide for Linux at Github. I asked ChatGPT to make a guide without vcpkg. I've tried development version, hopefully it works with Release aswell.​

Follow these steps to compile The Forgotten Server from source on Ubuntu Server 24.04. This guide will show you how to build both the development and release version.

Prerequisites​

First, ensure your system is updated and install the necessary dependencies:

Bash:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake libboost-all-dev libssl-dev liblua5.3-dev libmysqlclient-dev libpugixml-dev libfmt-dev

Cloning the Source Code​

Clone The Forgotten Server's source code from GitHub:

Bash:
git clone https://github.com/otland/forgottenserver.git 
cd forgottenserver

Building the Development Version​

  1. Create and navigate to the build directory:
    Bash:
    mkdir -p ~/forgottenserver/buildcd ~/forgottenserver/build
  2. Configure the project with CMake:
    Bash:
    cmake ..
  3. Build the project:
    Bash:
    make -j$(nproc)

Building the Release Version​

To build the release version without removing the existing development build, follow these steps:

Using RelWithDebInfo​

  1. Create a new build directory for the release version:
    Bash:
    mkdir -p ~/forgottenserver/build-releasecd ~/forgottenserver/build-release
  2. Configure CMake for the release build with debugging information:
    Bash:
    cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
  3. Build the project:
    Bash:
    make -j$(nproc)

Summary​

You now have both the development and release versions of The Forgotten Server compiled on your Ubuntu Server 24.04. By following this guide, you can easily switch between different build types without having to remove or overwrite existing builds.
Post automatically merged:

I'm learning so if there's any errors feel free too correct me.
 
Last edited:
I had errors compiling following the guide for Linux at Github
I've created Issue reporting problems with compilation and possible fixes to Wiki ( Compiling on Ubuntu (https://github.com/otland/forgottenserver/wiki/Compiling-on-Ubuntu) ):
 
Back
Top