graphia icon indicating copy to clipboard operation
graphia copied to clipboard

build fails without `-fPIC`

Open nsajko opened this issue 1 year ago • 3 comments

I just did a fresh checkout from Github, and the build fails unless I put -fPIC in CFLAGS/CXXFLAGS. This is on Archlinux with GCC v14.1.1, Binutils v2.42.

Ideally the Graphia build system would take care of -fPIC. Alternatively, it'd be nice if this was at least documented.

nsajko avatar Jun 07 '24 17:06 nsajko

-fPIC is present for me (where appropriate). What version of CMake are you using? That's what's mostly responsible for selecting compiler arguments.

timangus avatar Jun 10 '24 10:06 timangus

Cmake is at 3.29.5

nsajko avatar Jun 10 '24 18:06 nsajko

OK, that's fine. Qt is ultimately responsible for building the compiler flags that it needs, including -fPIC; which version of Qt are you using? I recommend 6.7.0 at the moment. If that doesn't resolve it paste your actual failure with verbose output turned on and we'll go from there.

timangus avatar Jun 13 '24 17:06 timangus