【问题标题】: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?有没有人有补丁或kludge技巧,以便我能够用gnutls-2.12.5交叉编译climm-0.6.4?
【发布时间】:2011-08-05 11:32:43
【问题描述】:

我正在尝试使用以下命令将climm-0.6.4 交叉编译到 Ubuntu 下的 windows:

./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.**

在网上查了一下,发现了一个提示here

包的 ./configure 脚本正在尝试调用 libgnutls-config 和/或 libgnutls-extra-config 来搜索 gnutls 库。较新 gnutls 版本不再提供这些脚本。

我正在使用 gnutls-2.12.5

有没有人有补丁或 kludge 技巧让我能够交叉编译 climm-0.6.4 和 gnutls-2.12.5?

提前谢谢你!

干杯

丹尼尔

【问题讨论】:

    标签: linux security makefile cross-compiling autotools


    【解决方案1】:

    尝试在 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 文件所在的目录。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-06
      • 1970-01-01
      • 1970-01-01
      • 2011-11-29
      • 1970-01-01
      • 1970-01-01
      • 2019-12-11
      • 2010-10-20
      相关资源
      最近更新 更多