• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ Problem with compiling at ubuntu 22.04 tfs 1.2

Gofrion

Rookgaard RPG
Premium User
Joined
May 1, 2017
Messages
223
Solutions
1
Reaction score
99
Location
/home/tfs/
Hello everyone. I have a problem with compilation at Ubuntu 22.04.

This is error:

1754826104887.webp

Can someone tell me how to fix this error?
Big thank you! :)
 
Solution
Hello everyone. I have a problem with compilation at Ubuntu 22.04.

This is error:

View attachment 94231

Can someone tell me how to fix this error?
Big thank you! :)
Could you provide what engine you're using?

Going after TFS 1.2, as the title says:

If you want to try otherwise if that post does not solve it:
LUA:
sudo apt update
sudo apt install -y build-essential cmake pkg-config git \
  libluajit-5.1-dev libmysqlclient-dev \
  libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
  libpugixml-dev libcrypto++-dev libgmp-dev

# build it fresh to avoid old complications
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=ON \
  -DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 \...
Hello everyone. I have a problem with compilation at Ubuntu 22.04.

This is error:

View attachment 94231

Can someone tell me how to fix this error?
Big thank you! :)
Could you provide what engine you're using?

Going after TFS 1.2, as the title says:

If you want to try otherwise if that post does not solve it:
LUA:
sudo apt update
sudo apt install -y build-essential cmake pkg-config git \
  libluajit-5.1-dev libmysqlclient-dev \
  libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
  libpugixml-dev libcrypto++-dev libgmp-dev

# build it fresh to avoid old complications
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=ON \
  -DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 \
  -DLUA_LIBRARY=/usr/lib/x86_64-linux-gnu/libluajit-5.1.so
cmake --build build -j"$(nproc)"

If you prefer using stock Lua 5.1 instead of JIT, do:
LUA:
sudo apt install -y liblua5.1-0-dev
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=OFF \
  -DLUA_INCLUDE_DIR=/usr/include/lua5.1 \
  -DLUA_LIBRARY=/usr/lib/x86_64-linux-gnu/liblua5.1.so
cmake --build build -j"$(nproc)"

"Sanity checks", does it exist?:
LUA:
ls /usr/include/luajit-2.1/lua.h        # does LuaJIT exist?
ls /usr/include/lua5.1/lua.h             # does Lua 5.1 exist?
 
Last edited:
Solution
Could you provide what engine you're using?

Going after TFS 1.2, as the title says:

If you want to try otherwise if that post does not solve it:
LUA:
sudo apt update
sudo apt install -y build-essential cmake pkg-config git \
  libluajit-5.1-dev libmysqlclient-dev \
  libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
  libpugixml-dev libcrypto++-dev libgmp-dev

# build it fresh to avoid old complications
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=ON \
  -DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 \
  -DLUA_LIBRARY=/usr/lib/x86_64-linux-gnu/libluajit-5.1.so
cmake --build build -j"$(nproc)"

If you prefer using stock Lua 5.1 instead of JIT, do:
LUA:
sudo apt install -y liblua5.1-0-dev
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=OFF \
  -DLUA_INCLUDE_DIR=/usr/include/lua5.1 \
  -DLUA_LIBRARY=/usr/lib/x86_64-linux-gnu/liblua5.1.so
cmake --build build -j"$(nproc)"

"Sanity checks", does it exist?:
LUA:
ls /usr/include/luajit-2.1/lua.h        # does LuaJIT exist?
ls /usr/include/lua5.1/lua.h             # does Lua 5.1 exist?
Thank you very much, all works!
 
Back
Top