Package Details: gdal-grass 1.0.2-1

Git Clone URL: https://aur.archlinux.org/gdal-grass.git (read-only, click to copy)
Package Base: gdal-grass
Description: GRASS raster and vector format support for GDAL.
Upstream URL: http://www.gdal.org
Licenses: X11/MIT
Submitter: czk
Maintainer: czk
Last Packager: czk
Votes: 2
Popularity: 0.000000
First Submitted: 2016-04-08 14:35 (UTC)
Last Updated: 2023-02-01 17:55 (UTC)

Latest Comments

« First ‹ Previous 1 2

dreieck commented on 2019-03-21 21:06 (UTC) (edited on 2019-03-21 21:08 (UTC) by dreieck)

I get a compilation problem related to -fPIC (-fPIC is in my CFLAGS and CXXFLAGS):

[...]
g++ -Wall -fPIC -DUSE_CPL -DGRASS_GISBASE=\"/opt/grass\" -I/usr/include -I/opt/grass/include   -O3 -g0 -march=native -ftree-vectorize -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -fPIC -pie -fPIE -fstack-protector  -c -o grass57dataset.o grass57dataset.cpp
g++ -shared  -Wl,-O1,-z,relro,-z,now,--strip-all,--as-needed,--relax,--sort-common,--hash-style=gnu grass57dataset.o -L/opt/grass/lib -lgrass_vector -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_raster -lgrass_imagery -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_btree2 -lgrass_ccmath -L/usr/lib -lgdal  -o gdal_GRASS.so
/sbin/ld: grass57dataset.o: relocation R_X86_64_PC32 against symbol `_ZTV15GRASSRasterBand' can not be used when making a shared object; recompile with -fPIC
/sbin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:37: gdal_GRASS.so] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build gdal-grass.

czk commented on 2019-01-30 17:33 (UTC) (edited on 2019-01-30 17:37 (UTC) by czk)

Kunda flagged gdal-grass out-of-date on 2019-01-30 for the following reason:
http://download.osgeo.org/gdal/2.4.0/gdal-grass-2.4.0.tar.gz

@Kunda

This release requires gdal 2.4.0. The latest gdal version in Arch repos is community/gdal 2.3.2-8. For a similar reason I have skipped http://download.osgeo.org/gdal/2.3.3/gdal-grass-2.3.3.tar.gz.

dreieck commented on 2018-01-22 21:30 (UTC)

@czk: Also, grass from the AUR can be built with more options enabled ... seems to be the same upstream source ... so a custimizepkg-hook to grass would do it as well ;).

Maybe you can address the maintainer of 'grass' with your improvement suggestions?

czk commented on 2017-01-02 16:56 (UTC)

@dreieck This package was not meant to work with the AUR `grass` package as it is currently. Please see my pinned comment dated 2016-04-13. Of course technically there's nothing preventing you from building it against AUR `grass` package, given you tweak the PKGBUILD as you described.

dreieck commented on 2017-01-02 12:12 (UTC)

AUR grass package now defaults to version 7 and installs to /opt/grass, not /opt/grass7. So, you need to adapt your PKGBUILD: * Change in the depends-array "grass7" to "grass>=7", * change in the build-function "--with-grass=/opt/grass7" to "--with-grass=/opt/grass". (Error message is: configure: error: --with-grass=/opt/grass7 requested, but libraries not found!) With that changes it works fine for me.

czk commented on 2016-06-08 08:35 (UTC)

@dickoa > I think that you need to build gdal without grass support GDAL in Arch repository comes without GRASS support. There's no need to rebuild it before building gdal-grass. See this: Before installing gdal-grass: $ gdalinfo --formats | grep -i grass GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid $ ogrinfo --formats | grep -i grass (no output) After installing gdal-grass: $ gdalinfo --formats | grep -i grass GRASS -raster- (ro): GRASS Rasters (5.7+) GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid $ ogrinfo --formats | grep -i grass OGR_GRASS -vector- (ro): GRASS Vectors (5.7+) Or did you mean something else? You are correct about the extra `/' in --prefix. I'll remove it in a next release. It doesn't do any harm though - GNU/Linux doesn't mind double leading slash `//' in a path. It treats it identical to a single leading slash `/'.

dickoa commented on 2016-06-07 20:57 (UTC)

Nice work but to make it work, I think that you need to build gdal without grass support according to https://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin On line 20 of your PKGBUILD you have: --prefix=/${pkgdir}/usr I am not sure but I think that it should be replaced by (without "/" at the beginning): --prefix=${pkgdir}/usr Thanks again

czk commented on 2016-04-13 15:05 (UTC) (edited on 2019-01-30 16:35 (UTC) by czk)

@all

In case you wondered, you can fetch the grass7 PKGBUILD that gdal-grass depends on from https://github.com/czka/AUR-grass7.