archlinux: building LOS trick

archlinux: building LOS trick

Postby gruntunbur » 15 Jul 2013, 20:36

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
gruntunbur
 
Posts: 45
Joined: 27 Jul 2011, 21:04

Re: archlinux: building LOS trick

Postby amuzen » 15 Jul 2013, 20:46

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
User avatar
amuzen
LoS Moderator
 
Posts: 327
Joined: 05 Dec 2009, 02:49

Who is online

Users browsing this forum: Google [Bot] and 1 guest