【发布时间】:2020-11-28 00:09:28
【问题描述】:
为了使用 git2go,我通过 vcpkg vcpkg.exe install libgit2:x64-windows --recurse 安装 libgit2 并成功安装。
不幸的是,vcpkg 没有为 pkg-config 提供 openssl.pc,因此 git2go 在运行任何代码时都会失败
# pkg-config --cflags -- libgit2
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'libgit2', not found
pkg-config: exit status 1
如果我无法通过 vcpkg 安装 libgit2,如何使其与 git2go 一起使用?有没有办法告诉 vcpkg 提供 openssl.pc?运行 vcpkg.exe install openssl:x64-windows 表明该软件包已安装。运行 vcpkg.exe integrate install 也无济于事。
【问题讨论】: