[GRASS-dev] xganim compilation on GRASS 7
Glynn Clements
glynn at gclements.plus.com
Mon Jan 4 20:16:03 EST 2010
Markus Neteler wrote:
> I also have a (different) problem compiling xganim in GRASS 7:
>
> [neteler at north grass70]$ cd /home/neteler/grass70/visualization/xganim
> [neteler at north xganim]$ make
[snip]
> LC_ALL=C /home/neteler/grass70/dist.x86_64-unknown-linux-gnu/bin/xganim
> --html-description < /dev/null | grep -v '</body>\|</html>' >
> xganim.tmp.html ; fi
> /home/neteler/grass70/dist.x86_64-unknown-linux-gnu/bin/xganim: error
> while loading shared libraries: libwx_gtk2u-2.8.so.0: cannot open
> shared object file: No such file or directory
> make: *** [xganim.tmp.html] Error 1
This isn't a problem compiling it, but running it.
> But it is existing:
>
> [neteler at north xganim]$ locate libwx_gtk2u-2.8.so.0
> /usr/lib/wxPython/lib/libwx_gtk2u-2.8.so.0
> /usr/lib/wxPython/lib/libwx_gtk2u-2.8.so.0.5.0
>
> How to tell GRASS where it is without adding nasty links?
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wxPython/lib
before running "make".
Or add /usr/lib/wxPython/lib to /etc/ld.so.conf then run ldconfig (as
root).
-L switches only tell the linker where to look for libraries. The
loader uses $LD_LIBRARY_PATH and ld.so.cache (generated by ldconfig).
Or you can manually hack the definition of WXWIDGETSLIB in
Platform.make to include -Wl,-rpath,/usr/lib/wxPython/lib. This will
embed the path into the executable.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list