• 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 this TFS in ubuntu?

Currently there is no sol2 to install on Ubuntu, you have to do it manually by cloning the sol2 repository and then compiling it. Then you have to link a path to find sol.hpp and you will have it. Honestly, I worked on the project in Windows and I did not imagine that it would be complicated for Linux, so I have not updated any tutorial on how to do it.

For now the easiest way to test the project is in Windows, in fact you should do it, since the project is not yet designed to be used in production. I invite you to try it first in Windows to see if you like it.
 
Hello, for Ubuntu 22.04, Install dependencies
LUA:
sudo apt update && sudo apt upgrade
sudo apt install cmake g++ make git libboost-all-dev libpugixml-dev \
libcrypto++-dev libssl-dev zlib1g-dev libmariadb-dev-kompatybilność \
libmariadb-dev libfmt-dev libspdlog-dev libluajit-5.1-dev

LUA:
git clone https://github.com/ThePhD/sol2.git

LUA:
cd /usr/local/src
sudo wget https://www.lua.org/ftp/lua-5.4.6.tar.gz
sudo tar -xzvf lua-5.4.6.tar.gz


LUA:
cd /usr/local/src
sudo wget https://www.lua.org/ftp/lua-5.4.6.tar.gz
sudo tar -xzvf lua-5.4.6.tar.gz
cd lua-5.4.6

sudo make linux
sudo make install

Command:
lua -v

You can set it before running cmake:
Depending on where you have the directory with sol and lua.
You need to provide the correct paths to the directories
LUA:
export CPLUS_INCLUDE_PATH="/usr/local/include:/home/user/sol2/include:$CPLUS_INCLUDE_PATH"
export LIBRARY_PATH="/usr/local/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PAT
H"
 
Last edited:
Hello, for Ubuntu 22.04, Install dependencies
Project was updated 11 months ago:
Now it works with Lua 5.4 (Ubuntu 22.04+) without sol2:
Code:
apt update && \
    apt install -yq cmake build-essential ninja-build \
    libcrypto++-dev libfmt-dev liblua5.4-dev libmysqlclient-dev \
    libboost-iostreams-dev libboost-locale-dev libboost-system-dev libpugixml-dev

cmake --preset default && cmake --build --config RelWithDebInfo --preset default
 
Back
Top