HomeStoreForumsWikiiPhone Native AppsiPhone AppsiPhone Apps modmyifone Downloadsmodmyifone Links






Go Back   ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

Opportunities at MMi | 1.1.4 Unlock|Jailbreak OS X / Win
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2008, 03:20 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Imagemagick on iPod touch

Hi,

I want to have a go at compiling Imagemagic ( imagemagick.org ) to run on my ipod touch. I've installed the toolchain with cygwin on windows but there's a stage in the imagemagick installation instructions that tells me to use ./configure. Which i think sets up the make file or something, but it sets it up to compile it for the system I'm running cygwin on not the ipod.

So a couple of questions really:

1) Is this ever going to work, or am I barking up the wrong tree.

2) If it is possible how do I set things up so it compiles for the iPod.

Thanks for your help.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 02-10-2008, 10:47 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 981
Thanks: 26
Thanked 161 Times in 134 Posts

It's not going to work with configure due to iPhone using UIKit and not AppKit for main application classes. It would need to be ported.
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 02-10-2008, 03:21 PM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Hi,

Thanks for your response. Would porting it be a massive task?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 02-10-2008, 08:10 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 198
Thanks: 1
Thanked 20 Times in 19 Posts

It really depends on the program...if ImageMagick is mostly processing stuff, with only a few GUI interactions, then it probably wouldn't be too hard.

I've found that the hardest thing about porting is learning what each part of the code does...if you already have a general idea, then it shouldn't be all that hard.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 02-11-2008, 03:04 PM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

I'm pretty sure it doesnt have any GUI. You just cal a bunch of processes through a scripting language. I'll have to make sure, but if this is the case I wouldn't have to worry about porting it right?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 02-11-2008, 03:19 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 981
Thanks: 26
Thanked 161 Times in 134 Posts

Looking at the application, most of the tools should compile pretty easily, I think.

Any of the programs that display images will need work, however.
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7 (permalink)  
Old 02-11-2008, 03:20 PM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

It can display the results through a web browser, does this mean that this might not be an issue either?

Last edited by moesian : 02-11-2008 at 03:24 PM.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8 (permalink)  
Old 02-15-2008, 06:16 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Hi I want to have a go at comiling this but I need to know how to skip the ./configure when I try to compile so that I can compile it for the ipod and not the machine I'm running cygwin on.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9 (permalink)  
Old 02-18-2008, 03:49 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 981
Thanks: 26
Thanked 161 Times in 134 Posts

I would suggest not bypassing configure, but running it and then editting the resulting config.h and Makefile to reflect the iPod Touch environment.
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10 (permalink)  
Old 03-04-2008, 12:52 PM
burtthaman's Avatar
Green Apple
 
Join Date: Jan 2008
Posts: 66
Thanks: 0
Thanked 8 Times in 6 Posts

please get this working... we need it for swirlymms and the camera roll
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11 (permalink)  
Old 03-04-2008, 02:38 PM
iPhone? More like MyPhone
 
Join Date: Feb 2008
Device + Firmware: Iphone unlocked 1.1.3
Operating System: Windows
Posts: 125
Thanks: 12
Thanked 5 Times in 4 Posts
Send a message via AIM to itzadeelio3

not work on iphone...
__________________
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12 (permalink)  
Old 03-05-2008, 11:30 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 981
Thanks: 26
Thanked 161 Times in 134 Posts

Here is a start:

Run the ./configure command as follows with these options:

Code:
./configure --build=i686-pc-cygwin --host=arm-apple-darwin --disable-largefile --with-quantum-depth=8 --without-magick-plus-plus --without-perl
After it finishes, modify Makefile - find the line that says
CFLAGS = -g -O2 -Wall ...
and add -DNDEBUG to the end

Then modify magick/studio.h - find the line that says #include <limits.h> and add two lines after it:
Code:
#include <sys/syslimits.h>
#include <arm/limits.h>
NOTE: I also copied /home/iphone-dev/llvm-gcc-4.0-iphone/config.guess into the config directory to replace the original, but I now don't think that was necessary.

Mine is still compiling, so I will test the result later...

Got it working

Since the install archive I created is 2.2MB, I added it to Downloads with some basic directions.

Fundamentally unarchive into corresponding directories from archive and make sure to chmod +x /usr/local/bin* and /usr/local/bin/.libs/*

If you don't have /usr/local/bin in PATH, add it.

Then you can test with
identify logo:
convert logo: logo.gif

Unfortunately, I haven't (yet) done the libjpeg or libPNG libraries, so the routines are a little sparse on the filetypes they can handle.
__________________
Starlight Computer Wizardry
Pocket-sized Development

Last edited by NetMage : 03-05-2008 at 11:30 PM. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to NetMage For This Useful Post:
poetic_folly (03-06-2008)
  #13 (permalink)  
Old 03-19-2008, 05:06 PM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Been away for a while...your a genius. Thanks so much. Unfortunately I'm getting two errors when I compile:

$ make
make all-am
make[1]: Entering directory `/home/Vaio/ImageMagick.app'
/bin/sh ./libtool --silent --tag=CC --mode=link arm-apple-darwin-gcc -g -O2 -
Wall -W -D_THREAD_SAFE -DNDEBUG -no-undefined -export-symbols-regex ".*" -module
-avoid-version -o coders/wmf.la -rpath /usr/local/lib/ImageMagick-6.3.9/module
s-Q8/coders coders/coders_wmf_la-wmf.lo magick/libMagickCore.la wand/libMagickWa
nd.la -lm
./libtool: line 5792: otool: command not found
./libtool: line 5795: otool64: command not found
/usr/local/bin/arm-apple-darwin-ld: -dylib_file argument: :/home/Vaio/ImageMagic
k.app/magick/.libs/libMagickCore.dylib must have a ':' between its file names
collect2: ld returned 1 exit status
make[1]: *** [coders/wmf.la] Error 1
make[1]: Leaving directory `/home/Vaio/ImageMagick.app'
make: *** [all] Error 2


any idea on what I can do?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14 (permalink)  
Old 03-19-2008, 11:14 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 981
Thanks: 26
Thanked 161 Times in 134 Posts

Looks like you are missing otool. You need to make sure you have /usr/local/bin in the front of your $PATH, and make sure you have a soft link in /usr/local/bin from otool to arm-apple-darwin-otool.exe
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15 (permalink)  
Old 03-22-2008, 04:06 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: Touch 1.1.1
Operating System: Vista
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Hi,

I got it to compile, when I configured I set up the install folder as /imagemagick. I installed it and then copied the files and folders into /private/var/root/Downloads/usr/local/ I then created a symbolic link from here to /usr/local.

I then did chmod -x on /usr/local/bin/* and /usr/local/lib/* . The image magick commands are avaliable but when I use them I get a permission error.

I think perhaps I'm doing this all wrong.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 12:41 PM. Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly