Open sdmaclea opened 3 years ago
Thanks @sdmaclea -- @akoeplinger @directhex what should we do to get a libgdiplus for Apple Silicon published to homebrew?
Here's the log of the test failures: test-suite.log
JPEG: no (Get it from http://freshmeat.net/projects/libjpeg)
in configure)GIF: no (See http://sourceforge.net/projects/libgif)
)There seems to be more issues with locating the dependent libraries:
checking for visibility __attribute__... no
checking for jpeg_destroy_decompress in -ljpeg... no
configure: WARNING: *** JPEG loader will not be built (JPEG library not found) ***
checking for TIFFReadScanline in -ltiff... no
checking for TIFFWriteScanline in -ltiff... no
checking for TIFFFlushData in -ltiff34... no
configure: WARNING: *** TIFF plug-in will not be built (TIFF library not found) ***
checking for DGifOpenFileName in -lgif... no
configure: WARNING: *** GIF loader will not be built (giflibrary not found) ***
checking for DGifOpenFileName in -lungif... no
configure: WARNING: *** GIF loader will not be built (ungiflibrary not found) ***
I did not know what to put for the --prefix flag so I left it blank, does that matter? Some tests failed similar to @filipnavara After following instructions libgdiplus still does not work. In the code which uses it I still get error message "The type initializer for 'Gdip' threw an exception." Any ideas? I also get lots of warnings like this during the make
ld: warning: ignoring file /opt/X11/lib/libcairo.dylib, missing required architecture arm64 in file /opt/X11/lib/libcairo.dylib (2 slices)
ld: warning: ignoring file /opt/X11/lib/libfontconfig.dylib, missing required architecture arm64 in file /opt/X11/lib/libfontconfig.dylib (2 slices)
ld: warning: ignoring file /opt/X11/lib/libfreetype.dylib, missing required architecture arm64 in file /opt/X11/lib/libfreetype.dylib (2 slices)
ld: warning: ignoring file /opt/X11/lib/libpng16.dylib, missing required architecture arm64 in file /opt/X11/lib/libpng16.dylib (2 slices)
ld: warning: ignoring file /opt/X11/lib/libX11.dylib, missing required architecture arm64 in file /opt/X11/lib/libX11.dylib (2 slices)
Hello I try to compile libgdiplus for macOS arm64 (using this way to put into a nuget package : https://github.com/Whiletru3/libgdiplus-packaging ) and it should be the version 6.0.5. I tried this way but I get this error :
CC testjpegcodec.o
testjpegcodec.c:24:10: fatal error: 'jpeglib.h' file not found
#include <jpeglib.h>
^~~~~~~~~~~
1 error generated.
make[2]: *** [testjpegcodec.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Making check in src
make[1]: Nothing to be done for `check'.
Making check in tests
CC testjpegcodec.o
testjpegcodec.c:24:10: fatal error: 'jpeglib.h' file not found
#include <jpeglib.h>
^~~~~~~~~~~
1 error generated.
make[1]: *** [testjpegcodec.o] Error 1
make: *** [check-recursive] Error 1
libjpeg is installed with brew (in /opt/homebrew/... )
Do you have an idea on how to fix this ? Thanks
FWIW, I managed to enable JPEG support by running ./autogen.sh with
LDFLAGS="-L/opt/homebrew/opt/jpeg/lib" CPPFLAGS="-I/opt/homebrew/opt/jpeg/include"
dotnet/runtime#49111 notes a .NET Core dependency on libgdiplus.
I was able to get a build completed by
Apply patch to work around autogen.sh not finding libpng16
Run tests
Check binary is Apple native