有没有人有补丁或拼凑技巧,以便我能够交叉编译 climm-0.6.4 和 gnutls-2.12.5?
我正在尝试将 climm-0.6.4 交叉编译到 Windows 下Ubuntu 使用以下命令:
./configure --host=i686-pc-mingw32 --enable-ssl=gnutls
,我收到此错误消息:
**checking for libgnutls-config... no
checking for libgnutls - version >= 0.8.8... no
*** The libgnutls-config script installed by LIBGNUTLS could not be found
*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the LIBGNUTLS_CONFIG environment variable to the
*** full path to libgnutls-config.**
经过在互联网上的一些研究,我发现了一个提示此处:
包的 ./configure 脚本正在尝试调用 libgnutls-config 和/或 libgnutls-extra-config 来搜索 gnutls 库。较新 gnutls 版本不再提供这些脚本。
我正在使用 gnutls-2.12.5
有谁有补丁或拼凑技巧,以便我能够使用 gnutls-2.12.5 交叉编译 climm-0.6.4 吗?
先感谢您!
欢呼
丹尼尔
I am trying to cross-compile climm-0.6.4 to windows under Ubuntu with the following command:
./configure --host=i686-pc-mingw32 --enable-ssl=gnutls
and I get this error message:
**checking for libgnutls-config... no
checking for libgnutls - version >= 0.8.8... no
*** The libgnutls-config script installed by LIBGNUTLS could not be found
*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the LIBGNUTLS_CONFIG environment variable to the
*** full path to libgnutls-config.**
After some research on the Internet I found a hint here:
The package's ./configure script is trying to invoke libgnutls-config
and/or libgnutls-extra-config to search for the gnutls library. Newer
versions of gnutls do not ship these scripts anymore.
and I am using gnutls-2.12.5
Does anybody have a patch or a kludge trick so that I am able to cross-compile climm-0.6.4 with gnutls-2.12.5?
Thank you in advance!
cheers
Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在 configure 脚本中使用 --with-libgnutls-prefix=PFX 选项来告知库的位置。
将环境变量 LIBGNUTLS_CONFIG 设置为仅输出编译/链接库所需的参数的程序的其他选项。
更新:
尝试以下脚本,将其命名为 mygnutls_config:
然后
请注意,要使其正常工作,您需要 pkg-config 来检测交叉编译配置,而不是本机配置。因此,您可能需要 PKG_CONFIG_LIBDIR 环境变量来指向相应 gnutls.pc 文件所在的目录。
Try the --with-libgnutls-prefix=PFX option to the configure script telling where the library is.
Other option in to set the environment variable LIBGNUTLS_CONFIG to a program that outputs just the parameters you need to compile/link the library.
Update:
Try the following script, name it mygnutls_config:
And then
note that for this to work you need pkg-config to detect the crosscompilation configuration, not the native one. So you may need the PKG_CONFIG_LIBDIR environment variable to point to the directory where the appropriate gnutls.pc file is.