mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
133 stars 26 forks source link

Build for macOS arm fails: png format doesn't support arm #38

Closed khrushjing closed 2 years ago

khrushjing commented 2 years ago

Gdal's png driver does not support modules related to the arm architecture. Refer to the following issue. So the following changes need to be added to the compilation:

$(CC) -c $(CPPFLAGS) $(CFLAGS_NOFTRAPV) -DPNG_ARM_NEON_IMPLEMENTATION=0 -DPNG_ARM_NEON_OPT=0 $< -o $@