我已经按照指示一直到Xcode IDE Build,但现在我收到一个错误,上面写着:“找不到lcrypto的库”.
在线查看看起来可能与Makefile有关,但我不确定lcrypto是什么以及我应该引用什么库.
这里还有跟踪:
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
解决方法
有关构建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: 07001Installation
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).