You are not logged in.

#1 2017-08-18 12:44:23

Sirfanas
Member
Registered: 2017-08-18
Posts: 4

Can't compile Unreal Engine 4

Hello !
I try to compile Unreal Engine 4 but it's fail !

/usr/bin/ld: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Lib/Linux/x86_64-unknown-linux-gnu/libfreetype.a(type42.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Lib/Linux/x86_64-unknown-linux-gnu/libfreetype.a(winfnt.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Lib/Linux/x86_64-unknown-linux-gnu/libfreetype.a(autofit.c.o): relocation R_X86_64_32S against symbol `af_style_classes' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Lib/Linux/x86_64-unknown-linux-gnu/libfreetype.a(ftgzip.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Lib/Linux/x86_64-unknown-linux-gnu/libfreetype.a(ftlzw.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Source/ThirdParty/zlib/v1.2.8//lib//Linux/x86_64-unknown-linux-gnu/libz.a(uncompr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: UBT ERROR: Failed to produce item: /home/romain/UnrealEngineINstaller/UnrealEngine-4.17.1-release/Engine/Binaries/Linux/CrashReportClient
Total build time: 803,93 seconds (Local executor: 0,00 seconds)
make: *** [Makefile:252: CrashReportClient-Linux-Shipping] Error 5

There's a lot of recompile with -fPIC

If I compile Unreal Engine 4 DEBUG it's work but it always initialize when I start it, so it's not cool.

Thank's for help

Offline

#2 2017-08-18 13:14:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Can't compile Unreal Engine 4

Have you tried the unreal-engine package in the AUR?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-08-18 13:18:40

Sirfanas
Member
Registered: 2017-08-18
Posts: 4

Re: Can't compile Unreal Engine 4

I tried it but it fails too, I'l test it again I tell you the result.

Offline

#4 2017-08-19 12:22:54

Sirfanas
Member
Registered: 2017-08-18
Posts: 4

Re: Can't compile Unreal Engine 4

Well, It work, but the scene is full purple...
I had to start UE4 with -opengl3 caus I don't have 4.3, is it the reason of this bug ?
And how can I install opengl 4.3 ?

Screen :
https://img4.hostingpics.net/pics/86420 … 141700.png

Last edited by WorMzy (2017-08-19 12:28:37)

Offline

#5 2017-08-19 12:28:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: Can't compile Unreal Engine 4

Sirfanas, please read our Code of Conduct, in particular the section regarding acceptable image sizes. Thanks.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2017-08-19 12:31:55

Sirfanas
Member
Registered: 2017-08-18
Posts: 4

Re: Can't compile Unreal Engine 4

Woops sorry !

Last edited by Sirfanas (2017-08-19 12:33:46)

Offline

Board footer

Powered by FluxBB