Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashtons/libtiff-ios

libTIFF, libPNG and JPEG compiled for iOS
https://github.com/ashtons/libtiff-ios

Last synced: 16 days ago
JSON representation

libTIFF, libPNG and JPEG compiled for iOS

Awesome Lists containing this project

README

        

libtiff-ios
===========

Based on original script found at http://pastebin.com/Pgiy3rYJ
and the idea from [Tesseract-OCR-iOS Makefile] (https://github.com/gali8/Tesseract-OCR-iOS/pull/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.42
JPEG_SRC_NAME = jpegsrc.v9f# filename at the server
JPEG_DIR_NAME = jpeg-9f# folder name after the JPEG_SRC_NAME archive has been unpacked
TIFF_NAME = tiff-4.6.0

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/