error compiling with Irrlicht support

30 views
Skip to first unread message

Jason Thomas

unread,
Mar 13, 2024, 8:29:10 AM3/13/24
to ProjectChrono
I successfully built Irrlicht 1.8.4, but I get this error when I try to compile Chrono with Irrlicht support.  I'm not sure what this is asking me to recompile with -fPIC or if something else is wrong.  Thanks for any advice!

[ 36%] Linking CXX shared library ../../lib/libChronoEngine_irrlicht.so
/usr/bin/ld: /home/jason/irrlicht-1.8.4/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): warning: relocation against `_ZN3irr20PredicateIsEventTypeEP9_XDisplayP7_XEventPc' in read-only section `.text'
/usr/bin/ld: /home/jason/irrlicht-1.8.4/lib/Linux/libIrrlicht.a(png.o): relocation R_X86_64_PC32 against symbol `png_zalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
Reply all
Reply to author
Forward
0 new messages