The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | 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 (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 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 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 (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: 227
Thanks: 1
Thanked 29 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 (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 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 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 (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 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 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 (permalink)  
Old 03-04-2008, 12: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 (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 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 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-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 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 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 (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

  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

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 10:54 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408