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

Compiling Compiling Newest Revision Error "lua.h"

Extrodus

|| Blazera.net ||
Premium User
Joined
Dec 22, 2008
Messages
2,740
Solutions
7
Reaction score
541
Location
Canada
Hey there, I am trying to compile the lastest revision from the GitHub and I am coming across multiple errors.

I can compile all the revs from 8.6-9.86, but for some reason these new revs are bringing up an error for me. Take a look, any help is greatly appreciated - it's time to do an update to the latest client!

Code:
Error   2   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\actions.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   3   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\admin.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   4   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\ban.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   1   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\baseevents.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   5   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\beds.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   6   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\chat.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   8   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\combat.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   9   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\commands.cpp)  \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   11   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\condition.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   7   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\configmanager.cpp)   \forgottenserver-master\src\configmanager.h   27   1   theforgottenserver
Error   17   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\connection.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver
Error   14   error C1083: Cannot open include file: 'lua.h': No such file or directory (..\src\container.cpp)   \forgottenserver-master\src\luascript.h   32   1   theforgottenserver

The list goes on, but I can't go past 10k characters in a post.

The tutorial I used to set up my compiler = http://otland.net/f479/compiling-ho...msvc-under-windows-64-bit-184022/#post1781242
 
Last edited:
Bump again.. tried compiling the 0.3 10.10 release and get the same error. Download 9.86 - can compile it fine.. any help would be greatly appreciated.
 
It says "cannot find lua.h" (you dont have lua.h). If you use windows, and your compiler needs lua header 5.1,
here is a link: http://www.lua.org/source/5.1/lua.h.html
or (5.2 lua.h) http://www.lua.org/source/5.2/lua.h.html

Put lua.h inside include folder, if there is such folder.

If you have other errors, just look at them. Says libboost not found? Download libboost library, move header files. Says unidentified reference to a libboost function? You need .lib file, go to the boost.org compile tutorial, compile yourself. Theres usually an easy tutorial.

Theres not many libraries / headerfiles, if you see many errors, its because the functions of the libraries / headerfiles is missing.
So 1000 errors is not 1000 libraries. Go fix them.

Bye.
 
I have lua.h 5.1 already in the Include folder, so theres no reason why this should be popping up. Are you suggesting I should change to 5.2, but how would that get rid of a "not found" error when everything is linked correctly.

Edit: Well I had to link it with the inner folders - you can't link the outter folders anymore for it just to read the folders inside. I don't know why it worked before, but anyways.. it goes all the way through now only to leave me with this.

Error: module machine type 'x86' conflicts with target machine type 'x64'
 
Last edited:
Back
Top