有没有人有补丁或拼凑技巧,以便我能够交叉编译 climm-0.6.4 和 gnutls-2.12.5?

发布于 2024-11-28 14:19:10 字数 1000 浏览 1 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弃爱 2024-12-05 14:19:10

尝试在 configure 脚本中使用 --with-libgnutls-prefix=PFX 选项来告知库的位置。

将环境变量 LIBGNUTLS_CONFIG 设置为仅输出编译/链接库所需的参数的程序的其他选项。

更新:
尝试以下脚本,将其命名为 mygnutls_config:

#!/bin/bash
if [ "$1" == "--version" ]
then
    shift
    EXTRA="--modversion"
else
    EXTRA=""
fi
pkg-config gnutls $EXTRA "$@"

然后

$ chmod a+x mygnutls_config
$ LIBGNUTLS_CONFIG=`pwd`'/mignutls_config' ./configure --enable-ssl=gnutls

请注意,要使其正常工作,您需要 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:

#!/bin/bash
if [ "$1" == "--version" ]
then
    shift
    EXTRA="--modversion"
else
    EXTRA=""
fi
pkg-config gnutls $EXTRA "$@"

And then

$ chmod a+x mygnutls_config
$ LIBGNUTLS_CONFIG=`pwd`'/mignutls_config' ./configure --enable-ssl=gnutls

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文