Hello there!
Just came back from a lengthy vacation and wanted to see how UE was doing,
So I decided to compile the current master-branch with LUA scripting support,
but I ended up with some errors which did not exist in previous versions (a few months ago).
Here is what I did:
- Downloaded the current master-branch and extracted it to D:/unreal/UnrealEngine-master
- Applied required dependencies 1 & 2
- Applied optional dependencies
- Added lua-5.2.3 folder to /Engine/Plugins/Script/ScriptPlugin/Source/ScriptPlugin/
- removed luac.c
- Generated project files
- Built Solution.
It’s been a while, but if I recall correctly that is basically all I had to do to get it working.
And here are the errors which I’m getting:
------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
Build started 18.08.2014 21:36:04.
Build:
Performing 36 actions (max 4 parallel jobs)
lparser.c
ldebug.c
ldo.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lparser.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lcode.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ldebug.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lapi.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ldo.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lapi.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lcode.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lstate.c
lvm.c
ltable.c
llex.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lstate.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lvm.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\llex.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ltable.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lobject.c
lgc.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lobject.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lgc.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lundump.c
ltm.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lundump.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ltm.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lmem.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lmem.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)lfunc.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lfunc.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lstring.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lstring.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
ldump.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ldump.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lzio.c
lbaselib.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lbaselib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lzio.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
linit.c
loadlib.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\linit.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\loadlib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
liolib.c
lua.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\liolib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lua.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lmathlib.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lmathlib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
loslib.c
lopcodes.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\loslib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lopcodes.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
ltablib.c
lstrlib.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ltablib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lstrlib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
lbitlib.c
lcorolib.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lbitlib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lcorolib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
ldblib.c
lctype.c
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\ldblib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lctype.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
[34/36] link.exe UE4Editor-OculusRift.dll
lauxlib.c
LINK : fatal error LNK1181: cannot open input file 'libovr64.lib'
D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Source\ScriptPlugin\lua-5.2.3\src\lauxlib.c : fatal error C1853: 'D:\unreal\UnrealEngine-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\SharedPCHs\UnrealEd.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR : UBT error : Failed to produce item: D:\unreal\UnrealEngine-master\Engine\Plugins\Script\ScriptPlugin\Binaries\Win64\UE4Editor-ScriptPlugin.dll
Cumulative action seconds (4 processors): 0,00 building projects, 6,21 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,11 linking, 0,00 other
UBT execution time: 11,97 seconds
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.
Build FAILED.
Time Elapsed 00:00:12.27
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========