I am attempting to import Lua 5.3 as a static library into my current game project. I have followed [this][1] to the letter, and to no avail. When I try to build the solution, I get these errors:
I have both downloaded and tried lua-5.3_Win64_vc12_lib.zip
and lua-5.3_Win32_vc12_lib.zip
from [here][3], as well as building lua myself and trying that. All to no avail. Here is my module implementation code:
public bool LoadLua(TargetInfo Target)
{
bool isLibrarySupported = false;
if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
{
isLibrarySupported = true;
string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "x64" : "x86";
string LibrariesPath = Path.Combine(ThirdPartyPath, "Lua", "Libraries");
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "lua53." + PlatformString + ".lib"));
}
if (isLibrarySupported)
{
// Include path
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "Lua", "Includes"));
}
Definitions.Add(string.Format("WITH_LUA_BINDING={0}", isLibrarySupported ? 1 : 0));
return isLibrarySupported;
}
It was mostly copied from the tutorial, but I laid out the directory structure to meet their requirements as well.
Please also note I am not trying to use lua to code my game instead of C++, or anything like that, I am just trying to implement lua into the game because there will be programmable parts in it (all done in lua).
Thankyou for your time.