[GRASS-dev] re: python grass problems on OSX (Incompatible
library version for module)
massimo di stefano
massimodisasha at yahoo.it
Mon May 11 03:49:51 EDT 2009
I tried :
cd /Users/Shared/source/grass_trunk/
svn up
make distclean
export CXXFLAGS="-arch ppc -arch i386 -Os" ; export CFLAGS="-arch ppc -
arch i386 -Os" ; export LDFLAGS="-arch ppc -arch i386 -Os" ; export
GDAL_BIN=/Library/Frameworks/gdal.framework/unix/bin/ ; export
NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
./configure .. .. .. --prefix=/usr/local/
make
sudo make install
then i copied the the script i.img2rr inside the scripts directory :
cp i.img2rr /usr/local/grass-7.0.svn/scripts
chmod a+x /usr/local/grass-7.0.svn/scripts/i.img2rr
run grass70
GRASS 7.0.svn (spearfish60):~ > i.img2rr image1=geology
MPI running with 1 processors...
ERROR: Incompatible library version for module. You need to rebuild
GRASS
or untangle multiple installations.
GRASS 7.0.svn (spearfish60):~ >
i tried the command "ldd"
but it is not found on my system
a google search tell me about "otool" as an osx "ldd" replacment
inside grass shell :
otool -L `which i.img2rr`
/usr/local/grass-7.0.svn/scripts/i.img2rr: is not an object file
so itried it directly on the executable, but i haven't clue if these
can help :
GRASS 7.0.svn (spearfish60):~ > otool -L /private/var/tmp/XcodeBuilds/
Release/img2rr
/private/var/tmp/XcodeBuilds/Release/img2rr:
@executable_path/../Frameworks/ossim.framework/Versions/A/ossim
(compatibility version 1.0.0, current version 1.0.0)
@executable_path/../Frameworks/OpenThreads.framework/Versions/A/
OpenThreads (compatibility version 0.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.3.10)
GRASS 7.0.svn (spearfish60):~ >
-------------- parte successiva --------------
Un allegato non testuale è stato rimosso....
Nome: i.img2rr
Tipo: application/octet-stream
Dimensione: 839 bytes
Descrizione: non disponibile
Url: http://lists.osgeo.org/pipermail/grass-dev/attachments/20090511/77bafa2a/i.obj
-------------- parte successiva --------------
note.:
i'm doing these for the google summer of code project.
on osx machine to try it out:
to have ossim able to load and work on grass data on osx i'm using the
William Kyngesbury gdal framework to build both ossim and grass (it
has gdal-grass included in the binaries).
^^^ maybe there come up the problem,
but i've tried to run the i.img2rr inside a grass64 session .. it
gived me the same problem.
To have ossim build against the W.K. framework, i had to replace the
gdal.framework that comes withi ossim_dependencies packages (provided
by ossim dev team) with the new one from kingKaos (W.K) (i just
renemed it from GDAL.framework to gdal.framework)
After buld ossim with the new framework, i'm able to load grass data
in ossim/ossimplanet.
it works for vector files and raster data with a colortable <= 255
entries.
The colortable > 255, is a problem i'm discussing with FrankW on irc,
i'll make the irc log avaiable on the wiki page for the gsoc project,
i'm preparing that page and in the nex hours i'll post a link to it on
the dev-lists (ossim+grass)).
To have ossim installed on linux (i've installed it on a "sidux" linux
distro)
i'll add to the wiki page some notes for the installation steps and
i'll provide a patch to the ossim source beacouse as it is the svn
code fails to build.
.. on my linux box where all works fine i've grass64 installed using
the binary package from the repository +
grass70 installed from source.
to build grass70 i used a custom gdal build (svn version) + gdal-grass
compiled from source using grass7 as grass version.
Il giorno 11/mag/09, alle ore 06:19, Hamish ha scritto:
>
>> ERROR: Incompatible library version for module
>
>
> GRASS gives that error when you try and run a grass module which was
> compiled for a different version of the grass library than you are
> trying
> to run it with. I've just updated the error message in SVN to be a bit
> more obvious as to what it means.
>
>
> run 'make distclean' after full 'svn up' if the include/ files change.
>
> "ldd `which g.module`" is your friend.
>
>
>
> Hamish
>
>
>
>
>
More information about the grass-dev
mailing list