Compiling FreeImage on OS X (Power PC)

I was very excited when I read this excellent blog post by Mike Clark, detailing how to use attachment_fu. Even more interesting was that I did not have to use RMagick anymore. I could not quite get it working correctly for me, not to mention the reported memory leaks and CPU cycles it takes up.

Instead I could use ImageScience which is a small Inline Ruby library that re-sizes images. However for me to install ImageScience I had to install FreeImage on my mac.

Whatever I did I could not get it installed on my power pc mac laptop. I tried the instructions given, but nothing worked. I then noticed that there was a problem with the current release for macs and was advised to use the subversion repository. I tried to do this, but whenever I tried to run make, it just kept on complaining that it can’t find the libs that were related to the Intel 386 platform. So the make file was not correctly working for the power pc architecture.

I posted to the forums, and luckily Josh emailed me with a makefile that stripped out all of the 386 calls (i tried this myself but did not get very far). The new make file did the trick. Thanks Josh :)

So if anyone else is having the same problem here is the make file

In my next post I will be talking about my adventures with attachment_fu and extending the tutorial laid out in Mike Clark’s blog post.

Hamza

1 Response to “Compiling FreeImage on OS X (Power PC)”

  1. Chris Says:
    Dude, this is great - I just with you had provided a link to the subversion repository. I'll try downloading from sourceforge and see if that works...

Leave a Reply