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
- Create and navigate to the build directory:
Bash:mkdir -p ~/forgottenserver/buildcd ~/forgottenserver/build
- Configure the project with CMake:
Bash:cmake ..
- 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
- Create a new build directory for the release version:
Bash:mkdir -p ~/forgottenserver/build-releasecd ~/forgottenserver/build-release
- Configure CMake for the release build with debugging information:
Bash:cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
- 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: