• 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!

I have this problem compiling the tfs 1.2 10.98 from the official repository UBUNTU 22.04

Vintage ROX

New Member
Joined
Nov 6, 2023
Messages
21
Solutions
1
Reaction score
3
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of "tfs":

"LUA_INCLUDE_DIR-NOTFOUND"

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of "tfs":

"LUA_INCLUDE_DIR-NOTFOUND"

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of "tfs_pch":

"LUA_INCLUDE_DIR-NOTFOUND"

This warning is for project developers. Use -Wno-dev to suppress it.

-************************

In addition to this problem, I have this other one



In file included from /tfs12/src/baseevents.h:23,
from /tfs12/src/actions.h:23,
from /tfs12/src/actions.cpp:22:
/tfs12/src/luascript.h:23:10: fatal error: lua.hpp: No such file or directory
23 | #include <lua.hpp>
| ^~~~~~~~~
compilation terminated.


------------
I'm using the ubuntu 22.04
 
Last edited:
Code:
/tfs12/src/luascript.h:23:10: fatal error: lua.hpp: No such file or directory
try replace in luascript.h include lua.hpp to
Code:
include luajit/lua.hpp
or
Code:
include lua/lua.hpp

also make sure u have luajit or lua installed developer packages.
 
Go to configmanager.h and luascript.h

#if __has_include("luajit/lua.hpp")
#include <luajit/lua.hpp>
#else
#include <lua.hpp>
#endif
 

Similar threads

Back
Top