Hello everyone,
I’m trying to embed a scripting solution (lua or python) in my game.
So far i haven’t had any luck with python, so i’m trying Lua, which has lighter and simpler sources.
The plan is to follow this wiki.
But unfortunately, LuaBinaries doesn’t seem to give a VC17 static lib.
So i tried to create my own static lib in visual studio 17.
I created a static lib project, added the lua sources and built.
I got my static lib.
Then, following the wiki i put the lib and the includes in some dir, and declared them in the build.cs:
// lua
PublicAdditionalLibraries.Add("../ThirdParty/LUA/StaticLUA.lib");
PublicIncludePaths.AddRange(new string] { "../ThirdParty/LUA/Includes" });
But when rebuilding i get this message:
LINK : fatal error LNK1181: cannot open input file '..\ThirdParty\LUA\StaticLUA.lib'
I got this with any static lib i could get my hands on, and pretty much the same with doing more or less the same with python (trying the embedded distribution, compiling cpython, etc.).
I get the same message even if i specify a file that doesn’t exist.
So i can’t even tell whether the linker can’t find the file or find it and can’t read it.
Additionnal include dirs are specified in the project properties and compilation goes well, so i guess the headers are found.
But somehow, the linker doesn’t want to hear of any static lib i try to feed it.
Any ideas ?
Thanks
Cedric