Open Kjir opened 7 years ago
This issue also occurs on Ubuntu 17.04.
osr.cpp:2476:59: error: cannot convert ‘const char*’ to ‘const char* const*’ for argument ‘2’ to ‘OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char* const*)’
return OSRImportFromOzi( self, datum, proj, projParms );
We had a similar issue, and we did first tried to solve it by updating the g++ and make binaries. But i think the issue was gone after we've ensured to match the GDAL version which were used to generate the ruby bindings in this gem to the GDAL version of the includes and libs installed on the system. Any GDAL source version can be downloaded from https://trac.osgeo.org/gdal/wiki/DownloadSource.
Judging from the CHANGELOG.md of this repository, gdal 1.10.1 was last used to generate swig ruby gdal bindings. I've created a 1.11.5 (last before 2.x) branch with regenerated bindings at: github.com/svilenkov/gdal-ruby/tree/gdal-1.11.5 in case you are interested in that version, but keep in mind that it's not tested fully yet.
confirming I am having the same issue with any version of GDAL > 2.x, so ended up installing 1.11.5 . Any hope that the gem could be regenerated with the swig ruby bindings using GDAL > 2.x?
@mauroc I think they have removed ruby bindings due to lack of a maintainer from GDAL version 2.X. Not sure which exact version, but there are bindings up to some 2.x version. see https://trac.osgeo.org/gdal/wiki/GdalOgrInRuby
You might wanna try this: https://github.com/aleksejleonov/gdal-ruby/wiki/GDAL-Ruby-SWIG-bindings
I'm trying to install
ruby-gdal
on a Docker container based on Alpine Linux, but the build fails with a compiler error:Here are the compiler versions:
Here is the full error log: