Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with MacOSX 11 #64

Closed
golanshy opened this issue Nov 24, 2020 · 4 comments
Closed

Building with MacOSX 11 #64

golanshy opened this issue Nov 24, 2020 · 4 comments

Comments

@golanshy
Copy link

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.

@imishinist
Copy link

I have the same problem...

@kevinAlbs
Copy link

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.

@imishinist
Copy link

I updated to the latest version and was able to build it.
I think the problem has already been solved for me too.

@golanshy
Copy link
Author

No interest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants