【发布时间】:2020-05-30 20:20:22
【问题描述】:
我正在尝试使用 Go 和 Kagami/go-face 存储库制作面部识别应用程序。它需要 dlib 模型。我使用 MSYS 工具来获取 Windows 中的分布。
但是当我尝试使用 go get github.com/Kagami/go-face 命令获取 go 存储库时,它给出了一个错误:
# pkg-config --cflags -- dlib-1
以前任何人在 Windows 10 中都遇到过这个问题。
【问题讨论】:
-
我怀疑你的完整错误是
pkg-config: exec: "pkg-config": executable file not found in %PATH%(你把命令运行失败)?。这个包使用 CGO(pkg-config),所以构建它需要一些额外的工具。目前windows下推荐使用MSYS2。您需要关注build instructions。 This issue 有更多信息。 -
你得到什么错误?
-
我按照 Windows 安装的所有说明进行操作。但是我输入“go-face”它给出了 -: bash: go-face: command not found.
-
这个错误--# pkg-config --cflags -- dlib-1,当我尝试使用 go get 命令下载他们的存储库时给我
标签: go dlib pkg-config