Building with MacOSX 11
Closed this issue · 4 comments
Running through your instructions I get the following error:
sed: /usr/local/lib/pkgconfig/dlib-1.pc: in-place editing only works for regular files
after that tring to build I get an error:
go build github.com/Kagami/go-face: invalid flag in pkg-config --libs: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libz.tbd
Any help will be appreciated.
I have the same problem...
I think this may be fixed by: 4c3eb8d which removes the requirement of pkg-config.
After installing dlib with brew install dlib
on macOS 11.1, pkg-config shows .tbd
files in the output:
$ pkg-config --cflags --libs dlib-1
-I/usr/local/Cellar/dlib/19.21/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -L/usr/local/Cellar/dlib/19.21/lib -ldlib /usr/local/lib/libpng.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd /usr/local/lib/libjpeg.dylib /usr/local/opt/openblas/lib/libopenblas.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libsqlite3.tbd
golang prohibits unrecognized linker flags, and does not currently match .tbd
https://github.com/golang/go/blob/c7233dd063cd8bf24460b280e3929458e64f4315/src/cmd/go/internal/work/security.go#L211
I believe that is the cause of the error.
But 4c3eb8d changes the cgo flags to no longer rely on pkg-config, so I think this may be resolved.
I updated to the latest version and was able to build it.
I think the problem has already been solved for me too.
No interest