Updated: Monday 18th February 2008. Correction to makefile again! Apparently the previous change didn’t take =) Thanks to Peter Dunord for pointing this out.
Updated: Wednesday 21st November 2007. Corrections made to Makefile.osx naming and rubyinline install added to list.
Here is a quick guide to getting image_science working on your new leopard install. Full Credit to Michael Steinfeld for his directions on the ruby forum.
sudo gem install RubyInline
cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib mate inline.rb
replace
flags = @flags.join(' ')
with
flags = @flags.join(' ') + ' -lruby'
cd
rm -rdf ./ruby_inline
Links below show screenshots for installing 10.3.9 support
$ ls /Developer/SDKs/
MacOSX10.3.9.sdk MacOSX10.4u.sdk MacOSX10.5.sdk
mate ~/Downloads/FreeImage/Makefile.osx
replace lines
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
with
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
cd FreeImage make sudo make install
sudo gem install image_science
irb >> require 'image_science' >> true
Thanks to Tim Lucas for the corrections via James Hill.


