rgeo / rgeo-proj4

Proj4 extension for rgeo.
MIT License
13 stars 14 forks source link

M1 proj 6.2+ proj4.rb::create::_create method - Error: dyld[xxxxxx]: missing symbol called #41

Closed w20k closed 10 months ago

w20k commented 10 months ago

Hey,

I'm trying to start/fix an old project that's using the 6.2+ proj, and for some reason proj4.rb::create::_create method throws an error which is impossible to debug at the moment.

Just curios if you could help me with debugging main.c file? Is there an option to do so from the Ruby?

Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [arm64-darwin22] Proj: 6.3.2

It depends on SRSDatabase (which was removed), so cannot migrate it to the latest version of rgeo and rgeo-proj4 at the moment.

  spec.add_dependency 'rgeo', '~> 2.0'
  spec.add_dependency 'rgeo-geojson', '~> 2.0'
  spec.add_dependency 'rgeo-proj4', '~> 3.0'`
irb(main):001:0> RGeo::CoordSys::Proj4.supported?
=> true

Configs (might be an issue here, mb):

checking for proj.h... yes
checking for proj_create() in proj.h... yes
checking for proj_create_crs_to_crs_from_pj() in proj.h... yes
checking for proj_normalize_for_visualization() in proj.h... yes
checking for rb_gc_mark_movable()... no
creating Makefile

Part which fails: Screenshot 2023-10-10 at 11 18 08

Thanks a lot for any help you could provide!

PS: I'd like to fix it without re-installing homebrew or anything with Rosetta terminal support. I know it might help, but I'd have to spend days to reinstall (remember also) everything that I have 😄 PS2: Found out that proj context is throwing an error PJ_CONTEXT *c = proj_context_create();;