The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-10-2008, 04: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  
Old 02-10-2008, 11:47 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 02-10-2008, 04: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  
Old 02-10-2008, 09:10 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 31 Times in 24 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  
Old 02-11-2008, 04: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  
Old 02-11-2008, 04:19 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 02-11-2008, 04: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 04:24 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 02-15-2008, 07: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  
Old 02-18-2008, 04:49 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 03-04-2008, 01:52 PM
burtthaman's Avatar
Green Apple
 
Join Date: Jan 2008
Posts: 72
Thanks: 0
Thanked 10 Times in 7 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  
Old 03-04-2008, 03: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  
Old 03-06-2008, 12:30 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 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.

Last edited by NetMage; 03-06-2008 at 12:30 AM.. 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  
Old 03-19-2008, 06: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  
Old 03-20-2008, 12:14 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 03-22-2008, 05: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

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 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

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



Go to Top
ModMyI

All times are GMT -6. The time now is 08:20 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top