Hi Huidae, let me give you short progress report I have. I managed to configure, make and make install the grass-gdal plugin with the patch you provided in your last mail without problems:
./configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/grass-7.1.svn/ make g++ -shared grass57dataset.o -L/usr/local/grass-7.1.svn//lib -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vector -lgrass_dbmibase -lgrass_dbmiclient -lgrass_dgl -lgrass_dig2 -lgrass_rtree -lgrass_linkm -L/usr/local/lib -lgdal -o gdal_GRASS.so g++ -shared ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o -L/usr/local/grass-7.1.svn//lib -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vector -lgrass_dbmibase -lgrass_dbmiclient -lgrass_dgl -lgrass_dig2 -lgrass_rtree -lgrass_linkm -L/usr/local/lib -lgdal -o ogr_GRASS.so sudo make install install -d /usr/local/lib/gdalplugins cp gdal_GRASS.so /usr/local/lib/gdalplugins cp ogr_GRASS.so /usr/local/lib/gdalplugins testing: gdalinfo --formats|grep GRASS GRASS (ro): GRASS Database Rasters (5.7+) GRASSASCIIGrid (rov): GRASS ASCII Grid ogrinfo --formats|grep GRASS -> "GRASS" (readonly) So it seems to be working. However, runing gdalinfo on certain raster file produces following error :-( gdalinfo /home/grass/grassdata/prg/interpolations/cellhd/dmt gdalinfo: symbol lookup error: /usr/local/lib/gdalplugins/gdal_GRASS.so: undefined symbol: Rast_get_cellhd Strange thing: vectors (ogr2ogr, ogrinfo) on GRASS vectors works perfectly I would say, that it's related to dynamic linker, thought, I have $ cat /etc/ld.so.conf.d/grass-7.1.conf /usr/local/grass-7.1.svn/lib/ and ldconfig -p |grep grass_raster gives libgrass_raster.7.1.svn.so (libc6,x86-64) => /usr/local/grass-7.1.svn/lib/libgrass_raster.7.1.svn.so libgrass_raster.so (libc6,x86-64) => /usr/local/grass-7.1.svn/lib/libgrass_raster.so Any hint? Thank you 2014-06-30 10:12 GMT+02:00 Jachym Cepicky <[email protected]>: > Worked, but had to add -I/usr/include/postgresql/ to CPPFLAGS > > seems to be compiled and in gdal > > thank you > > 2014-06-27 12:13 GMT+02:00 Huidae Cho <[email protected]>: >> Try the attached patches. The GRASS plugin works for me. >> >> ./configure --with-autoload=/usr/lib/gdalplugins >> --with-grass=/your/grass/path >> >> Huidae >> >> >> On Fri, Jun 27, 2014 at 3:11 AM, Jachym Cepicky <[email protected]> >> wrote: >>> >>> Hi Martin, >>> >>> ok, sorry, but I'm a bit confused from amount of patches, which are >>> attached to the ticket and none of them seems to be working on >>> gdal-grass-1.4.3. >>> >>> I'm using GRASS 7.1 btw, so I hope, that is ok in general. >>> >>> Could you point me please to patches, which should work with >>> http://download.osgeo.org/gdal/gdal-grass-1.4.3.tar.gz ? >>> >>> Thanks >>> >>> 2014-06-24 22:27 GMT+02:00 Martin Landa <[email protected]>: >>> > Hi, >>> > >>> > 2014-06-24 22:09 GMT+02:00 Jachym Cepicky <[email protected]>: >>> > >>> >> I wanted to publish some maps via MapServer, using GDAL, like the old >>> >> days. But I did not succeed to get it compiled with GRASS (at first >>> >> try). What is the best way you would propose to approach? >>> >> >>> >> 1 - compile gdal withnout grass >>> >> 2 - compile grass 7.1 with gdal support >>> >> 3 - compile gdal again with grass support? >>> >> >>> >> It worked some years back, but does it still apply? >>> > >>> > best is to compile GRASS driver as a plugin, anyway GRASS 7 support in >>> > GDAL is still open issue [1]. >>> > >>> > Martin >>> > >>> > [1] http://trac.osgeo.org/gdal/ticket/2953 >>> > >>> > -- >>> > Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa >>> >>> >>> >>> -- >>> Jachym Cepicky >>> e-mail: jachym.cepicky gmail com >>> URL: http://les-ejk.cz >>> GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp >>> _______________________________________________ >>> grass-dev mailing list >>> [email protected] >>> http://lists.osgeo.org/mailman/listinfo/grass-dev >> >> > > > > -- > Jachym Cepicky > e-mail: jachym.cepicky gmail com > URL: http://les-ejk.cz > GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
