Code Monkey home page Code Monkey logo

libtiff-fat's Introduction

libtiff-ios

Based on original script found at http://pastebin.com/Pgiy3rYJ and the idea from [Tesseract-OCR-iOS Makefile] (gali8/Tesseract-OCR-iOS#210)

Compile libTIFF, libPNG and JPEG libraries for use on iOS

Creates "fat" binary libraries compatible with i386/Simulator, x86_64, arm64, armv7 and armv7s

make            #builds all libraries

You may also build only the library you wish by specifiying the following make targets:

make libtiff
make libpng
make libjpg

By default every "fat" library will contain all architectures specified above. So it can be linked with apps either for devices or simulator. If you don't need all architectures above (for example, for AppStore submittion), just specify the necessary architectures in the ARCHS environement variable as follows:

export ARCHS=armv7, armv7s, arm64

It's much easier now to update to a any (new or old) versions of library: just change a corresponding version numbers in the beginning of the make file:

PNG_NAME        = libpng-1.6.26
JPEG_SRC_NAME   = jpegsrc.v9a# filename at the server
JPEG_DIR_NAME   = jpeg-9a# folder name after the JPEG_SRC_NAME archive has been unpacked
TIFF_NAME       = tiff-4.0.6

Use iOS 9 branch for XCode 7 and bitcode support

Location for the XCode version to use is identified using

xcode-select -p

If you have multiple versions installed, you can switch to a different installation using

xcode-select -s /full_path_to_xcode/

libtiff-fat's People

Contributors

ashtons avatar bmauter avatar nickolas-pohilets avatar ws233 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.