【发布时间】:2017-11-02 10:08:55
【问题描述】:
在运行 build-openssl-libraries.sh 时,我遇到了以下问题:
运行时发出警告。/在第 48 行配置 dist:
The library could not be configured for supporting multi-threaded
applications as the compiler options required on this system are not known.
See file INSTALL for details if you need multi-threading.
The options 'shared', 'pic' and 'dynamic-engine' aren't supported on this
platform, so we will pretend you gave the option 'no-pic', which also disables
'shared' and 'dynamic-engine'. If you know how to implement shared libraries
or position independent code, please let us know (but please first make sure
you have tried with a current version of OpenSSL).
运行 build/tools/make-standalone-toolchain.sh @line 75 时出错:
HOST_OS=darwin
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=darwin-x86_64
HOST_NUM_CPUS=4
BUILD_NUM_CPUS=8
ERROR: Failed to create toolchain.
由于此错误,.c 文件的后续编译失败,提示找不到 stdlib.h。
请帮助我了解如何成功构建它...在 Android 上我需要多线程支持。
- 忽略这两个 ./Configure 警告有什么影响
- 如何让Make toolchain成功?
我在 macOS Sierra 10.12.6 上运行。这是构建 SQLCipher 的一部分。
【问题讨论】:
-
您使用什么过程来构建适用于 Android 的 OpenSSL 库?请提供文档链接。
-
@jww git clone github.com/sqlcipher/android-database-sqlcipher.git
-
@jww 请参阅此链接:zetetic.net/sqlcipher/open-source。基本上按照上面的方法克隆并按照 README.org 中的说明进行操作。但这并不顺利。但是,如果您只想要 Android 的 SQLCipher 而无需更改,您可以根据zetetic.net/sqlcipher/sqlcipher-for-android 包含 compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
-
@jww 如果您询问是否仅构建 OpenSSL,则克隆上述 git 后会有一个 shell 脚本 build-openssl-libraries.sh ..
标签: macos build openssl sqlcipher