[gdal-dev] gdal-grass fail to build

Frank Warmerdam warmerdam at pobox.com
Wed Dec 9 15:01:01 EST 2009


Alfredo Alessandrini wrote:
> Hi,
> 
> The build failed when I try to compile gdal-grass.
> 
> alfredo at astore:~/alfredo/grass_install/gdal-grass-1.4.3$ ./configure
> --with-gdal=/usr/local/bin/gdal-config
> --with-grass=/usr/local/grass-7.0.svn
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for ranlib... ranlib
> checking for g++ -shared ... yes
> user supplied gdal-config (/usr/local/bin/gdal-config)
> using /usr/local/lib/gdalplugins as GDAL shared library autoload directory
> checking for G_asprintf in -lgrass_gis... no
> configure: error: --with-grass=/usr/local/grass-7.0.svn requested, but
> libraries not found!  Perhaps you need to set LD_LIBRARY_PATH to
> include /usr/local/grass-7.0.svn/lib?

Alfredo,

I'll assume you read the last message and considered that before
emailing the 1000 people on this list.

The next usual step is to examine the config.log file.  Try searching it
for G_asprintf().  You will hopefully find the results of a failed link
attempt of a small test program that calls G_asprintf(), and hopefully
those errors will provide a clue as to what is missing.

It could be an issue where a newer GRASS depends on a different set of
libraries, or where something is missing on your system.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list