Package Details: unreal-engine 4.15.0-1

Git Clone URL: https://aur.archlinux.org/unreal-engine.git (read-only)
Package Base: unreal-engine
Description: A 3D game engine by Epic Games which can be used non-commercially for free.
Upstream URL: https://www.unrealengine.com/
Keywords: 3D engine game UE4 Unreal
Licenses: custom:UnrealEngine
Conflicts: hardening-wrapper
Submitter: acerix
Maintainer: acerix (zerophase)
Last Packager: acerix
Votes: 14
Popularity: 2.101883
First Submitted: 2016-05-01 18:37
Last Updated: 2017-02-17 18:48

Required by (0)

Sources (4)

Latest Comments

rmolin88 commented on 2017-02-01 11:31

@zerophase Thank you very much for the quick reply. That did it!

zerophase commented on 2017-01-31 01:26

@rmolin88 create a group for Unreal, and add every unreal file to that group. I believe arch frowns upon adding groups through aur packages.

rmolin88 commented on 2017-01-31 01:23

Hello guys. Thanks for the package.
I'm getting this error when I want to create a new c++ project:
Running /opt/unreal-engine/Engine/Binaries/DotNET/UnrealBuildTool.exe -makefile -kdevelopfile -qmakefile -cmakefile -codelitefile -project="/home/reinaldo/Documents/UnrealProjects/MyProject2/MyProject2.uproject" -game -engine -progress
Discovering modules, targets and source code for project...
Discovering modules, targets and source code for project...
Discovering modules, targets and source code for project...
UnrealBuildTool Exception: System.UnauthorizedAccessException: Access to the path "/opt/unreal-engine/Engine/Source/ThirdParty/PhysX/Lib/Linux/arm-unknown-linux-gnueabihf/st0Ik7rX" is denied.

Here is a link to a screenshot: https://drive.google.com/open?id=0B65GtWgJn1tFcnBSUmJSTzF1eHc
The file doesnt even exist. Should I change the /opt/unreal-engine folder to my user? Thanks in advance

acerix commented on 2017-01-29 21:06

@labotsirc Thanks for the solution, the same worked for me. I added hardening-wrapper to conflicts for now, although it would be better to turn off "HARDENING_PIE" or whatever is giving these errors in the build step, let me know if anyone has a better fix.

@zerophase Yes, I have 4 cores and 4 jobs in /etc/makepkg.conf:

MAKEFLAGS="-j4"

"make -j1" overrides that to use 1 job since the Unreal build tool has it's own multi-threading.

zerophase commented on 2017-01-17 00:24

@labotsirc No idea. Have you tried installing in a bare bones vm? You most likely won't be able to run the engine, but it should be able to compile. (driver issue)

I have a feeling something with your system configuration might be causing issues.

@acerix how many jobs do you have makepkg configured to start? Does it match your core count?

labotsirc commented on 2017-01-09 10:30

@acerix and @zerophase,
EDIT: Solved. It was a problem with my machine, which for some reason had the hardening-wrapper, so doing "sudo pacman -R hardening-wrapper" solved the "recompile with -fPIC" linker problem.

I have tried the new package with the patch. Now I can go through that part but at the linker stage I am having the "recompile with -fPIC" problem, which I remember I had to fix by hand file by file. Any ideas why I get the error? I am using a default Arch Linux Installation.

...
...
[36/37] Compile CoreUObject.generated.cpp
[37/37] Link CrashReportClient
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(compress.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(deflate.o): relocation R_X86_64_32S against symbol `zcalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(inflate.o): relocation R_X86_64_32S against symbol `zcalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(inftrees.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cri[36/37] Compile CoreUObject.generated.cpp
[37/37] Link CrashReportClient
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(compress.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(deflate.o): relocation R_X86_64_32S against symbol `zcalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(inflate.o): relocation R_X86_64_32S against symbol `zcalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(inftrees.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/cristobal/.yaourt-tmp/yaourt-tmp-cristobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(inffast.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
stobal/aur-unreal-engine/src/UnrealEngine/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(inffast.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
...
...

zerophase commented on 2017-01-04 22:27

When I compile with make -j1 it compiled successfully without an error the first time. I believe compiling Unreal still uses multiple cores on the Unreal Build Tool side.

acerix commented on 2017-01-04 21:12

Yes, the first time I get an error (forgot to copy it) but second time seems to be working. I'll submit that to Epic if it's still happening with 4.15 which is coming in a couple weeks.

zerophase commented on 2017-01-04 20:14

Is the package still failing compilation the first time you try to compile for anyone else?

acerix commented on 2017-01-04 19:18

I added a patch to fix "unused return value" errors in newer clang, as recommended by Epic:

https://answers.unrealengine.com/questions/444012/errors-building-with-clang-38-ignoring-return-valu.html

All comments