我是一个真正的初学者,所以提前为明显的问题道歉。我正在尝试编译 ffmpeg 的自定义构建,它具有一些普通构建没有的额外依赖项。其中是libgcrypt
and libgpg-error
- 我知道这一点,因为当我运行时configure
,它失败了,并且日志包含:
C:/workspace/windows/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcrypt
C:/workspace/windows/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgpg-error
考虑到这一点,我克隆了 libgpg-error 的 repo,运行了make
and make install
,它创建了libgpg-error.dll.a
and libgpg-error.la
in /home/myuser/w64root/lib
。我已经尝试将此路径添加到我的$LIB
环境变量中,但配置运行仍然说它找不到库。
我怎样才能让它可见?我也pkg-config
可以在机器上使用 - 手动创建.pc
文件对我有帮助吗?
谢谢!