【问题标题】:Error cross-compiling openconnect-8.08 for android为 android 交叉编译 openconnect-8.08 时出错
【发布时间】:2020-04-17 15:27:06
【问题描述】:

当我按照指令here 运行时,我在运行最新指令“make”时收到此错误:

make[1]: Entering directory '/home/fasegiar/Downloads/openconnect-8.08'
  CC       libopenconnect_la-ssl.lo
In file included from ssl.c:41:
In file included from ./openconnect-internal.h:102:
In file included from /usr/include/libxml2/libxml/tree.h:1307:
In file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
In file included from /usr/include/libxml2/libxml/threads.h:35:
In file included from /usr/include/libxml2/libxml/globals.h:18:
In file included from /usr/include/libxml2/libxml/parser.h:810:
/usr/include/libxml2/libxml/encoding.h:31:10: fatal error: 'unicode/ucnv.h' file not found
#include <unicode/ucnv.h>
         ^~~~~~~~~~~~~~~~
1 error generated.
Makefile:1037: recipe for target 'libopenconnect_la-ssl.lo' failed
make[1]: *** [libopenconnect_la-ssl.lo] Error 1
make[1]: Leaving directory '/home/fasegiar/Downloads/openconnect-8.08'
Makefile:749: recipe for target 'all' failed
make: *** [all] Error 2

我使用的目标是:armv7a-linux-androideabi

我的工具链是:/home/fasegiar/Documents/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64

Here is the output of the config.log after ./configure call

【问题讨论】:

  • 请显示您的配置的完整输出并拨打电话。 “Make error 1”是无用的诊断。
  • @Botje 我用完整输出更新
  • 这是调用 configure 和 make 的全部输出吗?我对此表示怀疑。
  • 编辑您的问题。请添加FULL INVOCATION AND OUTPUT OF CONFIGURE AND MAKE,而不仅仅是最后几行。
  • @Botje 我根据您的需要更新了我的问题

标签: android android-ndk cross-compiling openconnect


【解决方案1】:

从您发布的 sn-p 中,我已经可以告诉您这是行不通的。 交叉编译时,您需要首先为您的目标平台(即 Android)交叉编译所有依赖项,然后告诉配置脚本在哪里可以找到已安装的依赖项。对于openconnect,依赖项是:

必填:

  • libxml2(这又需要 libicu,正如您的错误指出的那样)
  • zlib(这是bundled
  • OpenSSL 或 GnuTLS (v3.2.10+)(请参阅 NDKPorts

可选:

  • p11-kit(用于 PKCS#11 支持)
  • libp11(如果使用 OpenSSL,PKCS#11 支持也需要)
  • libproxy
  • 裤子(用于 TPMv1 支持,如果使用 GnuTLS)
  • libtasn1 和 tss2-esys 或 IBM 的 TPM 2.0 TSS。 (如果使用 GnuTLS,则支持 TPMv2)
  • libstoken(用于 SecurID 软件令牌支持)
  • libpskc(用于 HOTP/TOTP 密钥的 RFC6030 PSKC 文件存储)
  • libpcsclite(用于 Yubikey 硬件 HOTP/HOTP 支持)

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2014-01-18
  • 1970-01-01
  • 1970-01-01
  • 2020-12-05
  • 1970-01-01
  • 1970-01-01
  • 2014-02-02
  • 1970-01-01
相关资源
最近更新 更多