Hello Everyone,
Basically when I build the Unreal Editor, on Linux, two errors occur: file Core.h is missing and files have been modified since a precompiled header was built.
The first error, the missing Core.h file, was asked in another UE4 AnswerHub question - https://answers.unrealengine.com/questions/412038/linux-build-coreh-file-not-found.html - and therefore the focus of this question will be on the second error, the precompiled header.
I believe these errors are not interrelated.
Context:
Unreal Engine: 4.11
OS: Ubuntu 14.04
IDE: Qt Creator v 3.6.0; Qt v 5.5.1
Unreal Engine has been successfully built on Linux, following the wiki guide (https://wiki.unrealengine.com/Building_On_Linux)
Qt Creator plugin has been built (GitHub - fire/QtCreatorSourceCodeAccess) and “Salamander Rake’s” video guide has been followed (- YouTube).
I’m following the tutorial on the Github - Epic - UnrealEngine 4.11 - Readme: https://github.com/EpicGames/UnrealEngine/blob/4.11/Engine/Build/BatchFiles/Linux/README.md
I’m using this tutorial to import the generated project file (UE4.pro) into an IDE, in this case Qt Creator, but I do not believe the IDE is the cause of the problem below.
Objective
Establish an environment to develop a modified version of the Unreal Engine (modify the source code on github) on and for Linux.
Problem
When I try to follow the following steps, from the tutorial on the Github Readme (as mentioned above):
"
Alternatively, build the following targets:
make CrashReportClient ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor
"
Two errors occur.
Compile Output/Error
make argument: CrashReportClient
fatal error: file ‘/usr/include/x86_64-linux-gnu/asm/unistd.h’ has been modified since the precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Development/Core/CorePrivatePCH.h.gch’ was built
note: please rebuild precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Development/Core/CorePrivatePCH.h.gch’
make: *** [CrashReportClient] Error 5
16:40:46: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project UE4 (kit: Unreal Engine 4_Kit)
When executing step “Make”
This error is directly an effect of the make arguments. If I remove the CrashReportClient from the make argument (Therefore leaving it to be: ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor UE4Game), the error which appears is:
make argument: ShaderCompileWorker
fatal error: file ‘/usr/include/linux/sysctl.h’ has been modified since the precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/Core/CorePrivatePCH.h.gch’ was built
note: please rebuild precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/Core/CorePrivatePCH.h.gch’
make: *** [ShaderCompileWorker] Error 5
18:16:33: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project UE4 (kit: Unreal Engine 4_Kit)
When executing step “Make”
For Completeness, here are the other errors that appear for the other make arguments:
make argument: UnrealLightmass
fatal error: file ‘/usr/include/linux/sysctl.h’ has been modified since the precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealLightmass/Development/Core/CorePrivatePCH.h.gch’ was built
note: please rebuild precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealLightmass/Development/Core/CorePrivatePCH.h.gch’
make: *** [UnrealLightmass] Error 5
18:29:51: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project UE4 (kit: Unreal Engine 4_Kit)
When executing step “Make”
make argument: UnrealPak
fatal error: file ‘/usr/include/linux/version.h’ has been modified since the precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealPak/Development/Core/CorePrivatePCH.h.gch’ was built
note: please rebuild precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealPak/Development/Core/CorePrivatePCH.h.gch’
make: *** [UnrealPak] Error 5
18:31:20: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project UE4 (kit: Unreal Engine 4_Kit)
When executing step “Make”
make argument: UE4Game
fatal error: file ‘/usr/include/linux/version.h’ has been modified since the precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4/Development/Core/CorePrivatePCH.h.gch’ was built
note: please rebuild precompiled header ‘/home/mynewuser/Downloads/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4/Development/Core/CorePrivatePCH.h.gch’
make: *** [UE4Game] Error 5
18:33:41: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project UE4 (kit: Unreal Engine 4_Kit)
When executing step “Make”
These errors do not occur only when the make argument is solely: UE4Editor
These errors are occur independent of being single (i.e. make argument: UnrealPak) or composed arguments (i.e. make argument: UnrealPak UE4Game …).
Full Compile Output of one of these errors is in attachment. I believe there isn’t a reason to put all logs here because what changes between them are the lines of error shown above.
Similar Questions (but answers not applicable to this problem)
- Mageia forum • View topic - Unreal Engine 4.9 On Linux [SOLVED]
- info.plist - Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode - Stack Overflow
Obs 1 - The answer offered here was to switch hard drives, but I doubt this is the solution because in the case presented the developer upgraded to an 120GB HDD and my HD is 500GB.
Obs 2 - This one seems like a possible solution, but I would need to know which folder cache to empty out. If possible I would like to use the ARGS = “-clean” argument because it deletes almost all of the editor, as shown here - https://answers.unrealengine.com/questions/403173/linux-qt-creator-hanging-when-debugging.html
If there is any additional information that must be provided, please let me know and I will provide it.
Thank you very much for your inputs.
Ivan