• 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 do I prevent weapons.cpp as necessary sourcefile in cmake ..

CoolBuys1290

Member
Joined
Aug 23, 2018
Messages
80
Reaction score
8
How do I prevent weapons.cpp as necessary sourcefile in cmake ..
There is no weapons.cpp file in the src directory.

Here's what I get after cmake ..

Bash:
Make Error at CMakeLists.txt:41 (add_executable):
  Cannot find source file:

    /root/Nostalrius/src/weapons.cpp

Please help.

Thanks.

CoolBuys1290
 
OP
OP
CoolBuys1290

CoolBuys1290

Member
Joined
Aug 23, 2018
Messages
80
Reaction score
8
cmake says

Bash:
 Could NOT find LuaJIT (missing: LUA_INCLUDE_DIR)

However I set it in CMakeLists.txt: set(LUA_INCLUDE_DIR "/usr/include/luajit-2.1")
 

wizinx

Active Member
Joined
Jul 6, 2010
Messages
137
Solutions
2
Reaction score
30
Location
Chile, Santiago
cmake says

Bash:
 Could NOT find LuaJIT (missing: LUA_INCLUDE_DIR)

However I set it in CMakeLists.txt: set(LUA_INCLUDE_DIR "/usr/include/luajit-2.1")
sudo apt-get install -y liblua5.2-dev
Post automatically merged:

sudo apt-get install -y liblua5.2-dev
sudo apt install libluajit-5.1-dev
 
Top