[gdal-dev] Problems compiling GDAL in ARM + NEON + libpng

Javier Jimenez Shaw j1 at jimenezshaw.com
Fri Dec 10 03:29:49 PST 2021


Hi

I am trying to compile GDAL 3.3.2 for ARM (apple M1), and I have problems
with the included libpng. There is a missing "arm" folder in libpng. Is
that intentional? How can I build it?

NEON support is detected, so libpng try to use NEON optimized functions,
but the implementation of those is missing, so I get

Undefined symbols for architecture arm64:
  "_png_do_expand_palette_rgb8_neon", referenced from:
      _png_do_read_transformations in pngrtran.o
  "_png_do_expand_palette_rgba8_neon", referenced from:
      _png_do_read_transformations in pngrtran.o
  "_png_init_filter_functions_neon", referenced from:
      _png_read_filter_row in pngrutil.o
  "_png_riffle_palette_neon", referenced from:
      _png_do_read_transformations in pngrtran.o

Thanks
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
Entre dos pensamientos racionales
hay infinitos pensamientos irracionales.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211210/165a1425/attachment.html>


More information about the gdal-dev mailing list