[GRASS-dev] [bug #5028] (grass) simwe needs indirectly linked
vector libs
Request Tracker
grass-bugs at intevation.de
Sun Aug 20 12:32:51 EDT 2006
this bug's URL: http://intevation.de/rt/webrt?serial_num=5028
-------------------------------------------------------------------------
Subject: simwe needs indirectly linked vector libs
Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.1+
Some of the libraries needed by the simwe/simlib themselves use the vector libraries, but the vector
libraries are not directly linked into simlib. This causes a build failure in many cases because the
linker can't find those indirectly linked libraries (at least with the Mac OS X linker).
When it's a first-time build or a version upgrade, there is no GRASS installed. Or in a SDK build (ie
on Mac OS X), the SDK overrides the usual system paths, and GRASS does not exist in the SDK.
Another possible problem is if the vector libs get new functions, a previously installed GRASS' vector
libs will be used and not have those functions.
A quick fix is to install GRASS after simwe build failed, so at least the libraries are available, then
rebuild simwe. But this is not good - it doesn't work for the SDK case, and it's possible the build will
go directly into a distribution install, and not a normal install at all.
To fix, edit simwe/simlib/makefile: add $(VECTLIB) to EXTRA_LIBS, and add $(VECTDEP) to
DEPENDENCIES. At least that's what I do for now.
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list