Giter Club home page Giter Club logo

imagemagick_lib_iphone's Introduction

Compiled downloads

You can grab the latest compiled ImageMagick directly from their ftp or any mirror.

There is always 2 packages for the compiled ImageMagick:

  • iOSMagick-VERSION-libs.zip
  • iOSMagick-VERSION.zip

The first one includes headers and compiled libraries that have been used to compile ImageMagick. Most users would need this one.

ImageMagick compiling script for iPhone OS and iPhone Simulator

The directory structure has to be:

./cross_compile/ImageMagick-VERSION/     <- ImageMagick top directory

./cross_compile/IMDelegataes/	                <- Some delegates: jpeg + png + tiff
./cross_compile/IMDelegataes/jpeg-8c/         <- jpeg-8c -- no need to patch it
./cross_compile/IMDelegataes/libpng-1.5.13    <- png lib -- no need to patch it
./cross_compile/IMDelegataes/tiff-4.0.3       <- tiff lib -- no need to patch it

./cross_compile/magick-config.h

If you don’t have this directory structure you can either create it or try change around the script. For some reason, magick-config.h does not show up correctly for me when I build the project, so the script looks for a valid copy of this file to use when building the project. You’ll need to grab a valid copy of this file for the version of ImageMagick that you are compiling. You can find the delegate libraries on the ImageMagick ftp

To run the script:

./imagemagick_compile.sh VERSION

where VERSION is the version of ImageMagick you want to compile (i.e.: 6.8.0-8, svn, …)

This script will compile ImageMagick as a static library to be included in iPhone projects
Support for:

  • png
  • jpeg
  • tiff

Upon successful compilation a folder called “IMPORT_ME” will be created from where you start the script: you can import it into your XCode project

XCode project settings

After including everything into XCode please also make sure to have these settings (Build tab of the project information):

  • Other Linker Flags: -lMagickCore -lMagickWand -lz -lbz2 -ljpeg -lpng
  • Header Search Paths: $(SRCROOT) – make it Recursive
  • Library Search Paths: $(SRCROOT) – make it Recursive

On the lower left click on the small-wheel and select: Add User-Defined Setting

  • Key: OTHER_CFLAGS
  • Value: -Dmacintosh=1

In Link Binary with Libraries under Build Phases, you may also need to add:

  • libxml2.dylib

Sample project

A more or less updated project is found in the IM_Test subfolder

imagemagick_lib_iphone's People

Contributors

marforic avatar mgod avatar

Watchers

JT5D avatar James Cloos 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.