x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Master-branch error (C & C++ PCH clash)

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:

1) Downloaded the current master-branch and extracted it to D:/unreal/UnrealEngine-master
2) Applied required dependencies 1 & 2
3) Applied optional dependencies
4) Added lua-5.2.3 folder to /Engine/Plugins/Script/ScriptPlugin/Source/ScriptPlugin/
5) removed luac.c
6) Generated project files
7) 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 ==========

Product Version: Not Selected
Tags:
more ▼

asked Aug 18 '14 at 08:07 PM in Installation & Setup

avatar image

real
16 2 6 9

avatar image real Aug 20 '14 at 01:07 PM

Nobody that knows how to fix this issue? Is it impossible to use the compile the current master-branch with the ScriptPlugin?

avatar image real Aug 20 '14 at 07:12 PM

I thought perhaps the issue was related to the current master-branch, so I tried the lastest-preview and the same issue appeared.

I can build the engine just fine, but trying to compile the ScriptPlugin with LUA causes these very annoying errors.

If it didn't take 3 hours to build the freaking solution I would try other versions as well, but this is just ridiculous and a complete waste of my time.

avatar image DrHobo Aug 20 '14 at 09:49 PM

Hi. I just had a LINK : fatal error LNK1181: cannot open input file 'libovr64.lib' on my compile after an upgrade to the last 4.4.1 commit (2 days ago). Is it related ? Seems to be a problem with Oculus 0.4.1 integration.

EDIT: Found this post to be helpful for the libovr64 link error: https://answers.unrealengine.com/questions/85773/undefined.html

avatar image real Aug 21 '14 at 06:54 PM

Thank you DrHobo :) yes, that did indeed fix the LINK error! unfortunately, the other errors still remain.

avatar image real Aug 24 '14 at 10:30 PM

I understand there's no help to get on the subject, so just wondering if anyone has been able to compile the latest-preview or master-branch with LUA support? Y/N

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This is currently broken in the master branch due to huge refactor of UnrealBuildTool, sorry about that. I'd suggest setting up a 3rd Party module with Lua source code or pre-compiling Lua as a static library and adding it as the plugin dependency.

more ▼

answered Sep 03 '14 at 04:41 PM

avatar image

robert.manuszewski STAFF
318 8 3 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question