How to build libssl.a for iOS from source code?

ccnyou

I have a project referenced to libSSL.a in xcode 5,so I try to build it myself. error message of make command is this: enter image description here

What I have done:

1, Download and install Command Line Tools (download from here)

2, Download source code from openssl.net ,4509212 Jan 6 15:39:19 2014 openssl-1.0.1f.tar.gz (MD5) (SHA1) (PGP sign) [LATEST]

3, Change file crypto/ui/ui_openssl.c from static volatile sig_atomic_t intr_signal; to static volatile int intr_signal;

4, Make Dirs with command:

mkdir ssllibs
cd openssl-1.0.0a
mkdir openssl_armv6 openssl_armv7 openssl_i386

5, Configure: ./configure BSD-generic32 --openssldir=/Users/ccnyou/openssl-1.0.0a/openssl_i386 6, Edit Makefile, CC= gcc to CC= gcc -arch i386 7, Add this after CFLAG -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk (may be wrong here) 8, make, just get error messages like I mentioned above.

I wonder if it is the clangs and ar's compatibilty problems ? How to build libssl.a ? I'll be appreciated to anyone who give me suggestions for it.

jww

What I have done: 1, Download and install Command Line Tools (download from here) 2, Download source code from openssl.net ,4509212 Jan 6 15:39:19 2014 openssl-1.0.1f.tar.gz (MD5) (SHA1) (PGP sign) [LATEST] 3, Change file crypto/ui/ui_openssl.c from static volatile sig_atomic_t intr_signal; to static volatile int intr_signal; 4, Make Dirs with command: ...

OpenSSL has instructions for building for iOS. The instructions include a build script to set the environemnt so the proper target is set. You can find the instructions in the OpenSSL FIPS User Guide 2.0, Appendix E.2.

If you don't want to go through the step-by-step guide, try out this Github account. Its got OpenSSL pre-built for iOS 6.0 and 7.0 (arch ARMv7, ARMv7s, i386, and ARM64) for OpenSSL 1.0.1e and 1.0.1f. The Github offering also offers the script to set the environment.

(Sorry about the link answers. There's no way to digest all the information into a couple of paragraphs).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I build KDE Dolphin from its source code?

From Dev

How to build Compiz from source?

From Dev

'Decimal' source code from Microsoft - will it build?

From Dev

Can't build Cassandra from source code

From Dev

build a cordova plugin for android from source code

From Dev

How to build wil6210 driver from source code from Git

From Dev

How to build docker source code after modifying it?

From Dev

how to specify search directory for source code build

From Dev

How do I build libcurl from source?

From Dev

How to build a .deb file for CMake from source?

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to build Chromium from source on OpenBSD?

From Dev

How do I build Unity from source?

From Dev

How do I build libcurl from source?

From Dev

Fullcalendar js how to build from source

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to build the GDB documentation from source?

From Dev

How to build Firefox from 4.0 source and optimize it?

From Dev

How to build gnuradio without the documentation (from source)

From Dev

Can't build json.me from the available source code

From Dev

SoapUI. Build from source code fails with "unresolved dependencies"

From Dev

Can't build SceneBuild from openjfx source code and setup

From Dev

Hide source code from build executable in electron-app

From Dev

Can't build json.me from the available source code

From Dev

Hide source code from build executable in electron-app

From Dev

How to generate on the fly Java source code to build with Gradle in Android Studio?

From Dev

How can I build ejabberd source code in eclipse

From Dev

SBT: How to refer to other project source code in build.sbt?

From Dev

How to make a maven build fail if source code contains a keyword / regex

Related Related

  1. 1

    How can I build KDE Dolphin from its source code?

  2. 2

    How to build Compiz from source?

  3. 3

    'Decimal' source code from Microsoft - will it build?

  4. 4

    Can't build Cassandra from source code

  5. 5

    build a cordova plugin for android from source code

  6. 6

    How to build wil6210 driver from source code from Git

  7. 7

    How to build docker source code after modifying it?

  8. 8

    how to specify search directory for source code build

  9. 9

    How do I build libcurl from source?

  10. 10

    How to build a .deb file for CMake from source?

  11. 11

    How to build Chameleon bootloader from SVN source?

  12. 12

    How to build Chromium from source on OpenBSD?

  13. 13

    How do I build Unity from source?

  14. 14

    How do I build libcurl from source?

  15. 15

    Fullcalendar js how to build from source

  16. 16

    How to build Chameleon bootloader from SVN source?

  17. 17

    How to build the GDB documentation from source?

  18. 18

    How to build Firefox from 4.0 source and optimize it?

  19. 19

    How to build gnuradio without the documentation (from source)

  20. 20

    Can't build json.me from the available source code

  21. 21

    SoapUI. Build from source code fails with "unresolved dependencies"

  22. 22

    Can't build SceneBuild from openjfx source code and setup

  23. 23

    Hide source code from build executable in electron-app

  24. 24

    Can't build json.me from the available source code

  25. 25

    Hide source code from build executable in electron-app

  26. 26

    How to generate on the fly Java source code to build with Gradle in Android Studio?

  27. 27

    How can I build ejabberd source code in eclipse

  28. 28

    SBT: How to refer to other project source code in build.sbt?

  29. 29

    How to make a maven build fail if source code contains a keyword / regex

HotTag

Archive