Created
April 11, 2011 06:21
-
-
Save smellman/913133 to your computer and use it in GitHub Desktop.
opensslを使うやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this document user name is 'kbmj', replace your account. | |
1. create openssl project | |
$ sudo mkdir -p /opt/smartphone/lib | |
$ sudo chown -R kbmj:staff /opt/smartphone | |
$ cd /opt/smartphone/lib | |
$ git clone git://github.com/smellman/openssl-xcode.git | |
$ curl -O ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/openssl/source/openssl-1.0.0a.tar.gz | |
$ tar zxf openssl-1.0.0a.tar.gz | |
$ cp -fr openssl-xcode/openssl.xcodeproj openssl-1.0.0a/ | |
$ mv openssl-1.0.0a openssl | |
2. create Pantomine project | |
$ cd /opt/smartphone/lib | |
$ git clone [email protected]:smellman/Pantomime.git | |
3. Xcode setting | |
Open xcode's Preference, On Source Trees Tab, add 2 setting. | |
1: openssl setting | |
Setting Name: OPENSSL_SRC | |
Display Name: OPENSSL_SRC | |
Path: /opt/smartphone/lib/openssl | |
2: Pantomime setting | |
Setting Name: PANTOMIME_SRC | |
Display Name: PANTOMIME_SRC | |
Path: /opt/smartphone/lib/Pantomime | |
4. Drag to your xcode project | |
Open your xcode project, and drag openssl.xcodeproj and Pantomime.xcodeproj | |
to your project. | |
When dialog open, "Copy items into destination group's folder (if needed)" is not check, and select "Recursively create groups for any added folders". | |
5. openssl.xcodeproj's setting | |
Right click openssl.xcodeproj, and see Info, and change "Path Type:" to "Relative to OPENSSL_SRC" | |
6. Pantomime.xcodeproj's setting | |
Right click Pantomime.xcodeproj, and see Info, and change "Path Type:" to "Relative to PANTOMIME_SRC" | |
7. Your xcode project setting | |
Right click your project and see Info. | |
Switch to the Build tab, and open "All Configurations"'s "Header Search Paths" setting and add references "$(OPENSSL_SRC)" and "$(PANTOMIME_SRC)" and check "Recursive" on both. | |
on Build tab, open "All Configurations"'s "Other Linker Flags" setting, and add "-all_load". | |
8. Add Framework | |
Pantomime for iOS is depend on Objective-C++. | |
on your project, right click project and add -> framework, and add "libstdc++.dylib". | |
9. add Link Binary With Libraries | |
Expend the openssl.xcodeproj and Pantomime.xcodeproj references and select libssl.a, libcrypto.a and libPantomime.a. | |
Drag and drop them on "Link Binary With Libraries". | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment