Hi, I’m building ue5 as library on ubuntu 20.04, according to this guide: https://docs.unrealengine.com/5.0/en-US/building-unreal-engine-as-a-library/ , but when compile complete with many errors like this:
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol ogg_stream_reset; recompile with -fPIC
>>> defined in /mnt/data/projects/ue/UnrealEngine-release/Engine/Source/ThirdParty/Ogg/libogg-1.2.2/lib/Unix/x86_64-unknown-linux-gnu/libogg.a(framing.o)
>>> referenced by framing.c:945
>>> framing.o:(ogg_stream_reset_serialno) in archive /mnt/data/projects/ue/UnrealEngine-release/Engine/Source/ThirdParty/Ogg/libogg-1.2.2/lib/Unix/x86_64-unknown-linux-gnu/libogg.a
How to relove this problem? should I rebuild all thirdparty library with -fPIC option? I think it’s a big work for me…, Is there some simple solution about this? thank you!!!