- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试构建 iOS AllJoyn 项目,但我在 OpenSSL 集成方面遇到了问题。
我一直按照 Xcode IDE Build 的说明进行操作,但现在我收到一条错误消息:“找不到 lcrypto 的库”。
在线查看似乎与 Makefile 有关,但我不太确定 lcrypto 是什么以及我应该引用哪个库。
编辑我注意到它说这是一个 Shell Script Invocation Error
还有痕迹:
ld: warning: directory not found for option '-L/PATH/alljoyn/alljoyn/common/crypto/openssl/build/Debug-iphoneos'
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [build/darwin/arm/iphoneos/debug/obj/test/bbcclient] Error 1
scons: building terminated because of errors.
Command /usr/local/bin/scons failed with exit code 2
最佳答案
为了成功使用 AllJoyn SDK,您需要有可用的 openssl 库的编译版本(即 libcrypto.a)。
构建openssl库的细节可以在SDK中/alljoyn_objc下的README-INSTALLING.txt文件中找到,我已经复制了下面的相关说明。创建 openssl 库后,您需要将其放在项目可访问的目录中(在您的例子中为“/PATH/alljoyn/alljoyn/common/crypto/openssl/build/Debug-iphoneos”)。
大部分信息都包含在 AllJoyn Programming Guide for Objective-C 中
README-INSTALLING.txt 文件中的相关文本:
- OpenSSL is required for iOS development and is available at the following web address: www.openssl.org AllJoyn has been tested with version 1.0.1 of OpenSSL.
- Download the Xcode project that can be used to build OpenSSL for iOS from GitHub, at the following web address: https://github.com/sqlcipher/openssl-xcode/
Installation
Copy the OpenSSL source into a separate folder on your development system, not under the AllJoyn SDK.
Navigate to the OpenSSL source top folder in Finder, and copy the openssl.xcodeproj folder you downloaded from GitHub into this folder.
Open the openssl.xcodeproj in Xcode.
In Xcode, build the crypto target (libssl.a and libcrypto.a) for each combination of configuration (debug|release) and platform (iphoneos|iphonesimulator) that you need for your iOS project by selecting Product->Build For->(your desired configuration).
关于ios - 找不到 lcrypto 的库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20624584/
除了 32 位版本之外,我还安装了 libcrypto++-dev 和 crypto1(因为我认为我尝试编译的程序需要它们)。但我仍然收到以下错误: /usr/bin/ld: Cannot find
我正在尝试构建 iOS AllJoyn 项目,但我在 OpenSSL 集成方面遇到了问题。 我一直在看这些方向:https://allseenalliance.org/docs-and-downloa
我正在使用 GNU 编译 C++ 应用程序 g++ .该项目利用了 OpenSSL 库。 背景 在我的机器(64 位 CentOS 四核)上编译和链接我的文件。 g++ -g -c -L/usr/lo
我已经完成了搜索,看到很多关于不带强制转换的指针的警告的问题得到了解决,但之后我无法解决我的问题,而且我仍然无法理解我的警告。 所以这是我代码的一部分: RSA *rsa_private;
我正在努力在系统范围内或在安装了 MariaDB 10 的 Ubuntu 14.04 上的 venv 中安装 mysql-python pip。还尝试使用 MariaDB 5.5 并得到相同的错误。我
Rust 和 Cargo 从 2014 年 12 月 30 日开始。海湾合作委员会 4.8.3。 我在项目目录中的 cargo run 上收到以下消息。 error: linking with `gc
我在 Ubuntu Linux 上运行 openssl 基准测试。最初,缺少库存在一些问题。后来我通过使用安装命令 sudo apt-get install libssl-dev 安装库来修复它。当我
添加链接选项:-lssl 和 -lcrypto 后,我的程序已正确编译。但是我发现GCC不包含这两个选项,那么这些选项从哪里来呢? 最佳答案 GCC documentation告诉我们 -l 是链接库
我正在努力在系统范围内或在安装了 MariaDB 10 的 Ubuntu 14.04 上的 venv 中安装 mysql-python pip。还尝试使用 MariaDB 5.5 并得到相同的错误。安
首先我尝试使用 #include 我遇到了常见的链接器错误: undefined reference to `EVP_CIPHER_CTX_new' 我知道可以在编译时使用 -lcrypto 来解决
这个问题在这里已经有了答案: Cannot find libcrypto library error (2 个答案) 关闭 9 年前。 我正在尝试在(64 位)Windows 7 上使用 OpenS
当我尝试构建我的项目时,我遇到了以下问题。 ld: library not found for -lcrypto clang: error: linker command failed with ex
尝试 openssl 的 c 代码,在命令提示符下编译时出现此错误。 c:\openssl>gcc -lssl -lcrypto -o test test.c -IC:\openssl\include
当我尝试在不支持 SSL 的情况下编译 cUrl 时,没有问题。我使用这样的命令: mingw32-make mingw32 我按照 cUrl INSTALL 文件中的说明使其支持 SSL,并尝试以这
我目前正在尝试将 ruby on rails 与 MariaDB 连接起来。但是出于某种原因,当我尝试安装 mysql2 gem 时,出现了这个错误: /usr/bin/ld: cannot fi
我是一名优秀的程序员,十分优秀!