Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25537 - GRASS doesn't compile with gdal libs
Summary: GRASS doesn't compile with gdal libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-29 15:28 UTC by Gualter Barbas Baptista
Modified: 2005-10-05 08:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gualter Barbas Baptista 2003-07-29 15:28:15 UTC
GRASS 5.0.2 ebuild is not compiled with any gdal libs. Running r.in.gdal fails.


Reproducible: Always
Steps to Reproduce:
1. Use r.in.gdal
2.
3.

Actual Results:  

GBBridgeInitialize() failed to find an suitable GDAL .DLL/.so file.
The following filenames were searched for:
  o libgdal.1.1.so
  o gdal.1.0.so
  o gdal.so.1.0
  o libgdal.so.1

The following locations were searched:
  o /usr/local/grass5/lib
  o System default locations.


System default locations may be influenced by:
LD_LIBRARY_PATH = /usr/local/grass5/lib
ERROR: Unable to initialize GDAL bridge 

Expected Results:  
Import of a raster map.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-19 12:35:35 UTC
i just fixed the motif stuff in grass...
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-11-19 13:50:01 UTC
ok. mholzer bumped it last.
Comment 3 Markus Neteler 2004-01-26 08:29:36 UTC
The only recommended way to compile GRASS with GDAL support is
the use of the flag --with-gdal:

configure --with-gdal=/usr/local/bin/gdal-config

This flag disables the "GDAL bridge" code and uses the
functional interface. In recent GRASS versions (5.3-CVS, 5.7-CVS)
the "GDAL bridge" is already disabled and will be removed
completely.

Hope this helps

 Markus Neteler
 GRASS Development Team
Comment 4 Patrick Maue 2004-07-26 13:09:10 UTC
hmm, I'm waiting for the Grass 5.7 ebuild  ;-)
Comment 5 Steve Arnold archtester gentoo-dev 2005-07-22 19:26:27 UTC
This is fixed with the latest gdal and grass ebuilds; if I get the chance, I may 
go back and try some older grass versions (in between).
Comment 6 Heitzso 2005-10-05 08:49:09 UTC
in current stable gentoo, grass and gdal have a cross dependency
that breaks the emerge.  Specifically, if have grass and gdal in
make.conf then "emerge -u gdal" will attempt to first install
grass because of the grass flag, but grass cannot emerge because
the gdal flag tells it to go use gdal, which does not yet exist.

I find the earlier comments a little confusing re whether it is
recommended to NOT use the gdal flag for grass.  I'd appreciate
someone coming along and clearly noting what the recommended
setup/flags are.   Thanks.