SwiftGD icon indicating copy to clipboard operation
SwiftGD copied to clipboard

Apple Silicon M1 compatibility

Open n3d1117 opened this issue 3 years ago • 8 comments

Hello! I'm having trouble compiling this project on a mac with M1 processor. I successfully installed gd with brew install gd.

When compiling I get the error 'gd.h' file not found; it looks like SPM is not picking up headers correctly

$ pkg-config --cflags gdlib                                   
-I/opt/homebrew/Cellar/gd/2.3.2/include
$ ls /usr/local/include | grep gd 
gd.h
gd_color_map.h
gd_errors.h
gd_io.h
gdcache.h
gdfontg.h
gdfontl.h
gdfontmb.h
gdfonts.h
gdfontt.h
gdfx.h
gdpp.h

Is there any workaround available or am I doing something wrong?

n3d1117 avatar Apr 16 '21 18:04 n3d1117