Skip to content

a4tech/GnuTLS-GMP-Nettle-for-iOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GnuTLS-GMP-Nettle-for-iOS

####Overview:#### GnuTLS 3.1.* build scripts for iPhoneOS and iPhoneSimulator using official XCode toolchain and SDK from Apple. Please read all this readme before you start.

Result files will be in created lib/ and include/ directories for i386 and armv7 architectures. To use those libraries, include the library from lib/ directory and headers from include/.

If you have any problem don't hesitate to contact to me.

####Note for GnuTLS 3.2.* version:#### I couldn't compile 3.2.* version (tested 3.2.8) of GnuTLS because (I think) it needs special pkg-config binaries to find Nettle library.

####License:#### Under LICENSE file

####Install:####

  1. build-gmp
  2. build-nettle
  3. If you don't have XZ utils in system => build-xz
  4. build-gnutls
  5. You have all libraries in lib/ and include/ directories

####Output structure:#### Build scripts will create in current folder with additional structure:

  • build/ -configured build files for every library and architecture
  • lib/ -output libs (merged for all configured architectures)
  • include/ -output headers
  • src/ -source files (extracted from tarballs)
  • tar/ -tarball files
  • usr/ -build files for every configured platform (includes, libs, shares, manuals)

####Tested versions (without errors) on:####

  • OSX 10.8.5
  • Xcode 5.0
  • GMP 5.1.3
  • Nettle 2.7.1
  • XZ 5.0.5
  • GnuTLS 3.1.18

####Usefull tools:####

  • xcrun - to locate development tools and properties for specyfied platform
  • eg: Locate C compiler for iPhoneOS: xcrun find -sdk iphoneos cc
  • lipo - to create, merge and operate on files
  • eg: Merge libraries with different architectures into one universal file: lipo -create usr.i386/lib/libgmp.a usr.armv7/lib/libgmp.a -output lib/libgmp.a
  • uname - print system name
  • eg: Print actual architecture: uname -m

###Thanks to:###

  • Really helpful build scripts, for older version of GnuTLS:
  • Cross-Compiling information:
  • Information about NEON instruction set:

About

Build scripts for iOS libraries: GnuTLS, Nettle, GMP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%