Download

Setup.sh fails on Gentoo

Greetings everyone.

Does anyone have a working UE4 development environment on Gentoo?

I’m following the guide at https://wiki.unrealengine.com/Building_On_Linux

The following steps are outlined:



$ git clone https://github.com/3dluvr/UnrealEngine.git
$ cd UnrealEngine
$ ./Setup.sh
$ ./GenerateProjectFiles.sh 


This procedure fails on my system when executing the Setup.sh script with the following error:



$ ./Setup.sh 
Registering git hooks... (this will override existing ones!)
./Setup.sh: line 33: lsb_release: command not found
./Setup.sh: line 33: lsb_release: command not found
./Setup.sh: line 33: lsb_release: command not found

Github build
Checking / downloading the latest archives
Missing method System.Environment::get_CurrentManagedThreadId() in assembly /usr/lib64/mono/4.0/mscorlib.dll, referenced in assembly /home/co/unreal_engine_4/UnrealEngine/UnrealEngine/Engine/Binaries/DotNET/GitDependencies.exe

Unhandled Exception: System.MissingMethodException: Method not found: 'System.Environment.get_CurrentManagedThreadId'.
  at GitDependencies.Program.ParseParameters (System.Collections.Generic.List`1 ArgsList, System.String Prefix) [0x00000] in <filename unknown>:0 
  at GitDependencies.Program.Main (System.String] Args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: 'System.Environment.get_CurrentManagedThreadId'.
  at GitDependencies.Program.ParseParameters (System.Collections.Generic.List`1 ArgsList, System.String Prefix) [0x00000] in <filename unknown>:0 
  at GitDependencies.Program.Main (System.String] Args) [0x00000] in <filename unknown>:0 
Result: 1
Fixing inconsistent case in filenames.
find: `Content/Editor/Slate': No such file or directory
find: `Content/Slate': No such file or directory
find: `Documentation/Source/Shared/Icons': No such file or directory

Building ThirdParty libraries

If you don't see SUCCESS message in the end, then building did not finish properly.
In that case, take a look into /home/cwo/9_archive_main/unreal_engine_4/UnrealEngine/UnrealEngine/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.
==&gt; BuildLND
**********  SUCCESS ****************


I have dev-lang/mono-2.10.9-r2::gentoo installed.

Mono 2.x is too old, install the latest first. Also - GitDependencies.exe in master have been recently rebuilt to target 4.0 framework instead of 4.5. I’ll ping amigo (3dluvr) to make sure this (https://github.com/EpicGames/UnrealEngine/commit/8709c61b235481dc57864017fd7f219ae7c7e0bf) gets merged to his branch.

Installed dev-lang/mono-3.2.8::gentoo and the Setup.sh script now proceeds with downloading files. Thanks, I’ll see how this turns out.

I am now at this step:



$ make ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor


My system locks up when performing this. I’ve tried this twice, and I’ve noticed that my RAM usage is at 100% with 50% swap usage when this occurs. I have 6 GiB RAM and 2 GiB swap. Even after waiting it doesn’t appear the kernel OOM killer works correctly (namely by killing the compilation process).

Is there some way to limit the amount of memory consumed by this process so that I can avoid this issue?

You will need to edit the UBT source code and change the total number of cores available…

But 6GB is just not enough to do anything, really.

What is the minimum RAM requirement?

Official Epic requirements are 8GB. (https://www.unrealengine.com/faq)

help me, pliase.

run ./Setup.sh - success

http://www.pasteall.org/57351

run ./GenerateProjectFiles.sh - success

http://www.pasteall.org/57352

run make SlateViewer

  • ERROR: UBT ERROR: Failed to produce item: /home/sungreen/_SOFT/ue4/UnrealEngine/Engine/Binaries/Linux/libUnrealHeaderTool-Core.so
    Cumulative action seconds (8 processors): 0.00 building projects, 16.67 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
    UBT execution time: 3.38 seconds
    UnrealHeaderTool failed for target ‘SlateViewer’ (platform: Linux, module info: /home/sungreen/_SOFT/ue4/UnrealEngine/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/SlateViewer/Development/UnrealHeaderTool.manifest).

http://www.pasteall.org/57350