Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compiling Img on macOS M1

89 views
Skip to first unread message

welle ozean

unread,
Jul 10, 2021, 1:40:04 PM7/10/21
to
Hello,

I need some help. I have moved to a macOS M1 machine. So far so good. I have a problem with the Img package, though.

Does somebody know where I can find a binary distribution for this platform?

Or has anybody compiled it from source?

If I try:

./configure --prefix=/Users/dan/Desktop/tcltk/Img-1.4.13/ --with-tcl=/opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib --with-tk=/opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib
make

I get the following:
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
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libpngtcl1.6.37.dylib] Error 1
make: *** [all] Error 2

Robert Heller

unread,
Jul 10, 2021, 3:00:14 PM7/10/21
to
I don't know the exact thing, but you I think you need something like the
development files for libpng.

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
hel...@deepsoft.com -- Webhosting Services

ALX

unread,
Jul 12, 2021, 8:47:49 AM7/12/21
to
Robert Heller schrieb am Samstag, 10. Juli 2021 um 21:00:14 UTC+2:

> > ld: symbol(s) not found for architecture arm64
> > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > make[1]: *** [libpngtcl1.6.37.dylib] Error 1

There is no arm64 code in the library, so it is not possible to link to it.

Robert Heller

unread,
Jul 12, 2021, 3:45:15 PM7/12/21
to
Then you will need to build the missing (libpng?) library from source.

Or you might need to get an earlier version of the Img package.
0 new messages