[GRASSLIST:9908] Re: Procedure that I followed for installing GRASS mapserver

Siddhesh Bhatkar sid_grass at yahoo.com
Thu Jan 19 00:51:01 EST 2006


Hello Stephan,

I added the non-standard location of  grass library
(in my case  ~bnagesh/grass-6.0.0/lib) to the
Enviroment variable  LD_LIBRARY_PATH in my .bashrc
file.

./configure --with-gdal=/usr/local/bin/gdal-config
--with-grass=/home/bnagesh/grass-6.0.0/
now creates the Makefile Successfully.


But when i run the "make" command i get the following
error:


g++ -Wall -fPIC  -DUSE_CPL
-DGRASS_GISBASE=\"/home/bnagesh/grass-6.0.0/\"
-I/usr/local/include
-I/home/bnagesh/grass-6.0.0//include   -c -o
ogrgrassdatasource.o ogrgrassdatasource.cpp
ogrgrassdatasource.cpp: In member function `int
OGRGRASSDataSource::Open(const char*, int, int, int)':
ogrgrassdatasource.cpp:212: error: cannot allocate an
object of type `OGRGRASSLayer'
ogrgrassdatasource.cpp:212: error:   because the
following virtual functions are abstract:
/usr/local/include/ogrsf_frmts.h:176: error:   
virtual OGRGeometry* OGRLayer::GetSpatialFilter()
make: *** [ogrgrassdatasource.o] Error 1

Does this error need to be debugged?
Kindly Help




Siddhesh,









--- Stephan Holl <holl at gdf-hannover.de> wrote:

 Hello Siddhesh,
 Make sure, that the dynmic linker finds your
 GRASS-libs in the
 non-standard location. perhaps you need to add the
 grass-libs-path
 to the env-variable LD_LIBRARY_PATH.


Best
Stephan

 

 
 On Wed, 18 Jan 2006 04:28:35 -0800 (PST) Siddhesh
 Bhatkar
<sid_grass at yahoo.com> wrote:
 
Hello,
 These are the Steps Followed by me.
  1. Installed gdal *without* GRASS support
    cd gdal-1.3.1
    ./configure
    make
    su
    make install
 
 2. Installed GRASS 6.0 in my home directory.
    cd grass-6.0.0
 
    ./configure --prefix=/home/bnagesh
 --bindir=/home/bnagesh/bin 
 --with-postgres-includes=/usr/include/pgsql 
 --without-odbc --without-fftw
    
 3. While Installing gdal-grass-1.3.1 error
 encountered.
    steps as follows
    a.  ln -s /usr/local/lib   
 /home/bnagesh/grass-6.0.0/lib/*.so
    b. ./configure
 --with-gdal=/usr/local/bin/gdal-config
 --with-grass=/home/bnagesh/grass-6.0.0
 
 configure: error:
 --with-grass=/home/bnagesh/grass-6.0.0/ requested,
 but
libraries not found!

Why does this error occur? whats the name of the
libraries its looking for? and where are these
libraries located?

Siddhesh,


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the grass-user mailing list