gdal: Error building on mac

Since a couple of days ago, homebrew updated gdal and this package no longer compiles:

thread 'main' panicked at '"OGRField_struct_(unnamed_at_/Users/home/vcpkg/installed/arm64-osx/include/ogr_core_h_873_5)" is not a valid Ident', /Users/home/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.49/src/fallback.rs:756:9

This error in particular happens with vcpkg, but same thing happens with brew version.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

When we put out a new release and you upgrade, you’ll have to fix the same set of errors.

You can see the pending changes at https://github.com/georust/gdal/blob/master/CHANGES.md#unreleased. Feel free to ask here or on Discord if you need help upgrading! I’ll try to find the time for another Lynch fan 😃.

I had the same issue as @milosimr and this solution worked for me as well. Thank you @lnicola and I’m looking forward to future releases. Really enjoying the whole georust suite.