我是一个真正的初学者,所以提前为明显的问题道歉。我正在尝试编译 ffmpeg 的自定义构建,它具有一些普通构建没有的额外依赖项。其中是libgcryptand 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,运行了makeand make install,它创建了libgpg-error.dll.aand libgpg-error.lain /home/myuser/w64root/lib。我已经尝试将此路径添加到我的$LIB环境变量中,但配置运行仍然说它找不到库。
我怎样才能让它可见?我也pkg-config可以在机器上使用 - 手动创建.pc文件对我有帮助吗?
谢谢!