Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use or to run tests on Apple Silicon #57

Open
jdesboeufs opened this issue Jun 27, 2022 · 2 comments
Open

Unable to use or to run tests on Apple Silicon #57

jdesboeufs opened this issue Jun 27, 2022 · 2 comments

Comments

@jdesboeufs
Copy link
Collaborator

jdesboeufs commented Jun 27, 2022

Hello!

I've some problems with my new Apple M1 CPU (as expected) 😬

When I use gdal-next or try to run make test I have the same error:

✖ ERROR: Error: dlopen(/Users/jerome/ban/node-gdal-next/lib/binding/node-v93-darwin-arm64/gdal.node, 0x0001): symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/jerome/ban/node-gdal-next/lib/gdal.js:22:31)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/jerome/ban/node-gdal-next/test/_common.js:1:14)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)

Since libpng is provided by this repository, maybe there is some configuration to update?

My environment:

  • M1 Pro
  • macOS Monterey
  • Python 3.7.13
  • Node 16.15.1
@jdesboeufs
Copy link
Collaborator Author

Probably fixed in GDAL 3.4.x:
OSGeo/gdal#3464

@yocontra
Copy link
Owner

yocontra commented Jul 6, 2022

@jdesboeufs Have you tried using the new node-gdal-async library? @mmomtchev has basically forked this project, and kept running with it (contributing more time/energy into keeping things updated, adding new features, etc.)

If his fork works for you on your M1 I would recommend using that. I'll probably deprecate this fork and point people at his as a successor, I don't see any need to keep working on divergent iterations when we're all trying to achieve the same goal.

juneidy pushed a commit to juneidy/node-gdal-next that referenced this issue Feb 27, 2023
* propagate errors in the multiplexer

* do not fail the test when GDAL does not open the file

* update the changelog

* propagate errors in calcAsync

* fix the codecov YAML syntax

* the the progress catch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants