[Gdal-dev] cannot build grass plugin in gdal - still
Markus Neteler
neteler at itc.it
Mon Jul 18 09:20:27 EDT 2005
On Fri, Jul 15, 2005 at 08:28:38PM +0200, Maciek Sieczka wrote:
> Hi
>
> Still I can't build the gdal-grass plugin in gdal. I'm following what the
> README says - and nothing.
>
> I have GDAL and GRASS61 (both fresh cvs) installed properly in their
> standard locations.
> GRASS61 in /usr/local/grass-6.1.cvs and GDAL in /usr/local.
>
> I enter the GRASS format dir in GDAL:
>
> [trawiarz at quercus src]$ cd gdal/frmts/grass/pkg
>
> Configure like the README ther says:
>
> [trawiarz at quercus pkg]$
> ./configure --with-gdal=/usr/local/bin/gdal-config
> --with-grass=/usr/local/grass-6.1.cvs
> 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 as GDAL shared library autoload directory
> checking for G_asprintf in -lgrass_gis... yes
> configure: creating ./config.status
> config.status: creating Makefile
>
> Commit make:
>
> [trawiarz at quercus pkg]$ make
> make: *** No rule to make target `grass57dataset.o', needed by
> `gdal_GRASS.so'. Stop.
>
> Where's my error?
What I do (maybe not ideal, but works):
You have to link the C files from ../ into the current directory:
ln -sf ../*.cpp .
make
make install
Markus
More information about the Gdal-dev
mailing list