Skip to content

Script and instructions to compile imagemagick as a static library to use in any iPhone project

Notifications You must be signed in to change notification settings

hufeng03/imagemagick_lib_iphone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ImageMagick compiling script for iPhone OS and iPhone Simulator

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 on your “~/Desktop”: 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: -Dmacinsoth=1

Sample project

A more or less updated project can also be downloaded. I don’t update the library in it too often, but it does give an idea of all the settings and some ways to play around with IM in an iPhone application. Get it here!

About

Script and instructions to compile imagemagick as a static library to use in any iPhone project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published