go-face icon indicating copy to clipboard operation
go-face copied to clipboard

macOS build errors

Open danieldouglas1 opened this issue 4 years ago • 4 comments

When i run go get github.com/Kagami/go-face, I get a bunch of errors pertaining to the files in the go-face folder

danieldouglas1 avatar Mar 27 '20 15:03 danieldouglas1

Its normal behavior. go get builds the library after fetching it. As go-face its a cgo library you need to install additional softwate which described within requirements https://github.com/Kagami/go-face#requirements.

tpoxa avatar Mar 27 '20 16:03 tpoxa

I have installed all the necessary requirements. The errors show, but the go-face folder is copied to my GOPATH. When I run main.go, I get the same errors.

danieldouglas1 avatar Mar 27 '20 17:03 danieldouglas1

The first couple lines are: ''' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:134:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:134:25: note: insert '_Nonnull' if the pointer should never be null /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:135:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:135:22: note: insert '_Nullable' if the pointer may be null /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:135:22: note: insert '_Nonnull' if the pointer should never be null /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/us '''

danieldouglas1 avatar Mar 27 '20 17:03 danieldouglas1

Actually I was not unable to build this library on MacOS either. But I had completely different error list. So I decided to make builds in Docker. I published docker files here https://github.com/Kagami/go-face/issues/3

tpoxa avatar Mar 27 '20 20:03 tpoxa