Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.44 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.44 KB

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.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/