CrashReportClient compile error
I am trying to build UnrealEngine and have hit a link error trying to compile CrashReportClient:
[49/49] Link CrashReportClient-Linux-Development
/usr/bin/ld: /home/fabian/Projects/DogFight/Build/UnrealEngine/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
it seems that it wants me to compile with the flag -fPIC. How do I resolve this issue? I do not know how to set this compile flag.
My OS is Manjaro arch.
I tried editing LinuxToolChain.cs to add it and re-ran ./GenerateProjectFiles.sh, but I get the same error. I see that LinuxToolChain.cs will use -fPIC if bIsBuildingDLL is set to true, perhaps this is the correct way to fix the problem? But how do I do that?
asked Feb 04 '18 at 11:46 AM in Linux
This is because Arch (and a number of related distros) configure clang and gcc to produce position-independent executables by default. You may attempt to fix that in LinuxToolChain.cs by adding -fno-PIE but the fix may not be as straightforward.
answered Feb 04 '18 at 05:46 PM
Thank you for your help, but it still does not work.
I added in the line:
Result += " -fno-PIE"; in GetCLArguments_Global
then ran ./GenerateProjectFiles.sh then make. I still have the same problem. If that is the correct way to do it, I will try setting up ubuntu in a VM if there are no other solutions.
Thats! that is perfect! I managed to get building on manjaro.
answered Feb 07 '18 at 10:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here