Page 1 of 1

archlinux: building LOS trick

PostPosted: 15 Jul 2013, 20:36
by gruntunbur
got this error linking LOS ?
{l Code}: {l Select All Code}
    usr/bin/ld: src/lipsofsuna/render/render-light.cpp.1.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
    /usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib/libboost_system.so.1.54.0 so try adding it to the linker command line
    /usr/lib/libboost_system.so.1.54.0: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status


then do the following:
(sudo) open /usr/lib/pkgconfig/OGRE.pc
change:
{l Code}: {l Select All Code}
Libs: -L${libdir} -lOgreMain  -lpthread

into:
{l Code}: {l Select All Code}
Libs: -L${libdir} -lOgreMain  -lpthread -lboost_system

save and LOS should compile

Re: archlinux: building LOS trick

PostPosted: 15 Jul 2013, 20:46
by amuzen
This workaround should also do it if you don't want to manually edit the broken pkg-config file:

{l Code}: {l Select All Code}
LDFLAGS=-lboost_system ./waf configure