1: git clone https://github.com/EpicGames/UnrealEngine.git

2: ./Setup.sh

3:./GenerateProjectFiles.sh

4: make时报错

bash "/home/jackxjxiongp/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" UE4Editor Linux Development

Building UE4Editor...

Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch)

Creating makefile for UE4Editor (no existing makefile)

Performing full C++ include scan (no include cache file)

Building UnrealHeaderTool...

Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch)

Creating makefile for UnrealHeaderTool (no existing makefile)

Using bundled libc++ standard C++ library.

Target is up to date

Parsing headers for UE4Editor

Running UnrealHeaderTool UE4Editor "/home/jackxjxiong/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors

Refusing to run with the root privileges.

Error: UnrealHeaderTool failed for target 'UE4Editor' (platform: Linux, module info: /home/jackxjxiong/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/UE4Editor.uhtmanifest, exit code: Canceled (1)).

Makefile:183: recipe for target 'UE4Editor' failed

make: \*\*\* \[UE4Editor\] Error 1

5:解决方法

a: make ARGS=-clean

b: sudo chown -R jackxjxiong /home/jackxjxiong/UnrealEngine

c: make


熊晓杰
1 声望0 粉丝