Score:0

libpng.a(pngerror.o): requires dynamic R_X86_64_PC32 reloc against 'stderr'

in flag

I'm on Ubuntu 20 focal and I am trying to build Blender as a Python module. The final step of the build instructions is where I am having problems.

My building gets to 100%, but then fails with the following output:

/usr/bin/ld.gold: error: /usr/lib/x86_64-linux-gnu/libpng.a(pngerror.o): requires dynamic R_X86_64_PC32 reloc against 'stderr' which may overflow at runtime; recompile with -fPIC

I have tried sudo make bpy -fPIC, but this throws another error:

make: pic: No such file or directory
make: *** No rule to make target 'pic'. Stop.

I assume the -fPIC error is because I'm stupid, and I am supposed to compile libpng with fpic support (or something like that), rather than tack it on to the end of the above command, but I don't know really...

I've searched for a while now, and the closest answer I've come to is this one, which says to download and compule libpng and then to do something with libpng.a (what exactly, I've no idea).

How can I fix this issue?

djdomi avatar
za flag
why you're not using apt to install all requirements? moreover `cd ~/blender-git ./blender/build_files/build_environment/install_deps.sh`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.