telus-agcg / ffi-gdal

MIT License
80 stars 2 forks source link

Compilation error generating constants SRS_UL #74

Closed inkstak closed 2 months ago

inkstak commented 1 year ago

Hi, I've tried to install this gem in replacement of gdal gem and I've got the following error:

require "gdal"
GDAL::Driver

# [...]/gems/ffi-1.15.5/lib/ffi/tools/const_generator.rb:133:in `block in calculate': Compilation error generating constants SRS_UL: # (RuntimeError)
#   /var/folders/yg/3y5g9r6n2s58vht8yvdyv7480000gn/T/SRS_UL.const_generator20230828-74680-513c7o:3:10: error: # empty filename
#   #include <>
#            ^
#   1 error generated.

gdal 3.6.2 is installed through homebrew, on a MacOS Ventura.

Any thoughts ?

turboladen commented 1 year ago

I'm on the same OS with GDAL 3.7.1 via homebrew and get this as well. Initially, I'm tempted to say this could fall under #11 (no official 3.x support yet; I know, it's sorely out of date), but this seems fixable as a standalone issue (I wonder if there was a change in the homebrew packaging?).

turboladen commented 2 months ago

Fixed in gh-105.