2024-10-21 02:32 PM - edited 2024-10-21 02:45 PM
Hello,
I'm trying to build a simulator on Linux x64 platform. But unfortunately, getting a weird error.
/usr/bin/ld: ../Middlewares/ST/touchgfx/lib/linux/libtouchgfx.a(AbstractPartition.o): relocation R_X86_64_32 against symbol `_ZTVN8touchgfx17AbstractPartitionE' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
Seems that library was not compiled with -fPIC. Or, I'm doing something wrong.
TouchGFX v4.24.1
Please help with this.
Solved! Go to Solution.
2024-10-22 03:22 AM
2024-10-22 03:22 AM
2024-10-22 03:36 AM
Thank you Mohammad,
Missed that part.
Had to add "-no-pie" linker option.
Now it is linking OK.
2024-10-23 02:59 AM
You're very welcome!
Glad to hear it is working now :D