Linker problem while building on Linux

I’ve followed the instructions about Building On Linux but I get the following error while compiling the test app SlateViewer and the Editor

/usr/bin/ld: /home/bruno/development/github.com/UnrealEngine/Engine/Source/ThirdParty/zlib/zlib-1.2.5/Lib/Linux/x86_64-unknown-linux-gnu/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a shared object; recompile with -fPIC

/home/bruno/development/github.com/UnrealEngine/Engine/Source/ThirdParty/zlib/zlib-1.2.5/Lib/Linux/x86_64-unknown-linux-gnu/libz.a: error adding symbols: Bad value

clang: error: linker command failed with exit code 1 (use -v to see invocation)

I’m using Arch Linux x86_64 with Clang 3.6.2. I’ve tried compiling with Clang 3.5 but I had no luck either. What should I do?

1 Like