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. |
|