Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
freeimage/image_science on leopard
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Steinfeld  
View profile  
 More options Oct 27 2007, 11:31 am
From: "Michael Steinfeld" <mikeisgr...@gmail.com>
Date: Sat, 27 Oct 2007 11:31:51 -0400
Local: Sat, Oct 27 2007 11:31 am
Subject: freeimage/image_science on leopard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Mango  
View profile  
 More options Oct 27 2007, 12:57 pm
From: Thomas Mango <tsma...@gmail.com>
Date: Sat, 27 Oct 2007 16:57:40 -0000
Local: Sat, Oct 27 2007 12:57 pm
Subject: Re: freeimage/image_science on leopard
I've gotten pretty far with Michael's help so far. After editing
Makefile.osx and making sure that the 10.3 developer sdk was installed
from the Leopard install disk (through xcode dev tools install) I was
able to get freeimage installed through macport as well as the image
science gem installed. Still not loading correctly though:

CompilationError (error executing cc -arch ppc -arch i386 -pipe -
bundle -I/opt/local/include  -fno-common -arch ppc -arch i386 -Os -
pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/
1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/include -o "/Users/
tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/
tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib -
lfreeimage -lstdc++: 256
Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c to /
Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad):
    /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:399:in
`build'
    /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:676:in
`inline'
    /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/
image_science.rb:84
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:32:in `require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:495:in `require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:342:in `new_constants_in'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:495:in `require'
    .//app/controllers/users_controller.rb:1
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:203:in `load_without_new_constant_marking'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:203:in `load_file'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:342:in `new_constants_in'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:202:in `load_file'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:94:in `require_or_load'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:248:in `load_missing_constant'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:452:in `const_missing'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:464:in `const_missing'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:
250:in `constantize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/
string/inflections.rb:148:in `constantize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:
1284:in `recognize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in
`synchronize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in
`process_client'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in
`process_client'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in
`run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in
`each'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in
`run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:488:in `load'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:488:in `load'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:342:in `new_constants_in'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:488:in `load'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:495:in `require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:342:in `new_constants_in'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:495:in `require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `require'
    script/server:3

On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr...@gmail.com>
wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Steinfeld  
View profile  
 More options Oct 27 2007, 1:10 pm
From: "Michael Steinfeld" <mikeisgr...@gmail.com>
Date: Sat, 27 Oct 2007 13:10:45 -0400
Local: Sat, Oct 27 2007 1:10 pm
Subject: Re: [Rails] Re: freeimage/image_science on leopard
try removing ~/.ruby_inline

then try again.

On 10/27/07, Thomas Mango <tsma...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Mango  
View profile  
 More options Oct 27 2007, 1:17 pm
From: Thomas Mango <tsma...@gmail.com>
Date: Sat, 27 Oct 2007 17:17:54 -0000
Local: Sat, Oct 27 2007 1:17 pm
Subject: Re: freeimage/image_science on leopard
Nope, same thing.

On Oct 27, 1:10 pm, "Michael Steinfeld" <mikeisgr...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Mango  
View profile  
 More options Oct 27 2007, 1:24 pm
From: Thomas Mango <tsma...@gmail.com>
Date: Sat, 27 Oct 2007 17:24:35 -0000
Local: Sat, Oct 27 2007 1:24 pm
Subject: Re: freeimage/image_science on leopard
After reading http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895
again, it seems to me like these patches have already been applied to
ruby in Leopard, so I did not rebuild ruby. Maybe that's what's going
on?

On Oct 27, 1:17 pm, Thomas Mango <tsma...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Merwin  
View profile  
 More options Oct 28 2007, 3:57 pm
From: Nick Merwin <yicks...@gmail.com>
Date: Sun, 28 Oct 2007 19:57:04 -0000
Local: Sun, Oct 28 2007 3:57 pm
Subject: Re: freeimage/image_science on leopard
Have you upgraded XCode tools from the Leopard install dvd?

On Oct 27, 10:24 am, Thomas Mango <tsma...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Mango  
View profile  
 More options Oct 28 2007, 4:02 pm
From: Thomas Mango <tsma...@gmail.com>
Date: Sun, 28 Oct 2007 16:02:01 -0400
Local: Sun, Oct 28 2007 4:02 pm
Subject: Re: [Rails] Re: freeimage/image_science on leopard
Yep, Michael had me install the 10.3 sdk which made it possible for  
free image to install. He then gave me final patch for ruby inline  
that made everything work. I'll post that later today.

--
Thomas Mango
tsma...@gmail.com

On Oct 28, 2007, at 3:57 PM, Nick Merwin <yicks...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Mango  
View profile  
 More options Oct 28 2007, 4:25 pm
From: Thomas Mango <tsma...@gmail.com>
Date: Sun, 28 Oct 2007 20:25:30 -0000
Local: Sun, Oct 28 2007 4:25 pm
Subject: Re: freeimage/image_science on leopard
Full installation instructions (full credit goes to: Michael Steinfeld
for figuring this out)

1. I started with a clean install of Leopard.
2. Install macports for 10.4
3. Install the xcode dev tools from the Leopard disk - *be sure to
also install the 10.3 sdk from the xcode dev tools install*
4. sudo port install freeimage
5. cd /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_f reeimage/
work/FreeImage

and change this:

LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk

to this

LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/
lib
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/
lib

6. sudo port install freeimage
7. sudo gem install -y imagescience
8. cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib
9. edit inline.rb

look for the line "flags = @flags.join(' ')"
and change it to "flags = @flags.join(' ') + ' -lruby'"

10. remove ~/.ruby_inline

Again, many thanks to Michael for figuring this all out!

On Oct 28, 4:02 pm, Thomas Mango <tsma...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David James  
View profile  
 More options Oct 29 2007, 7:05 pm
From: David James <davidj...@gmail.com>
Date: Mon, 29 Oct 2007 16:05:55 -0700
Local: Mon, Oct 29 2007 7:05 pm
Subject: Re: freeimage/image_science on leopard
Thanks a lot.  This worked for me.

Just want to reiterate one thing about the Xcode step.  You will have
to click "Customize" and then check "Mac OS X 10.3.9 Support".

On Oct 28, 4:25 pm, Thomas Mango <tsma...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Persen  
View profile  
 More options Oct 30 2007, 2:33 pm
From: Todd Persen <todd.per...@gmail.com>
Date: Tue, 30 Oct 2007 11:33:41 -0700
Local: Tues, Oct 30 2007 2:33 pm
Subject: Re: freeimage/image_science on leopard
FWIW, I updated the include and library references to 10.5 and removed
all PPC references (I'm on intel) to get the following makefile.
Seems to have compiled FreeImage successfully - testing it now.

Todd

# -*- Makefile -*-
# Mac OSX makefile for FreeImage

# This file can be generated by ./gensrclist.sh
include Makefile.srcs

# General configuration variables:
CC_I386 = gcc-4.0
CPP_I386 = g++-4.0
COMPILERFLAGS = -Os
COMPILERFLAGS_I386 = -arch i386
COMPILERPPFLAGS = -Wno-ctor-dtor-privacy
INCLUDE +=
INCLUDE_I386 = -isysroot /Developer/SDKs/MacOSX10.5.sdk/
CFLAGS_I386 = $(COMPILERFLAGS) $(COMPILERFLAGS_I386) $(INCLUDE) $
(INCLUDE_I386)
CPPFLAGS_I386 = $(COMPILERPPFLAGS) $(CFLAGS_I386)
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.5.sdk/usr/
lib
LIBTOOL = libtool
LIPO = lipo

TARGET = freeimage
STATICLIB = lib$(TARGET).a
SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).dylib
LIBNAME = lib$(TARGET).$(VER_MAJOR).dylib
HEADER = Source/FreeImage.h

.SUFFIXES: .o-i386
MODULES_I386 = $(SRCS:.c=.o-i386)
MODULES_I386 := $(MODULES_I386:.cpp=.o-i386)

PREFIX = /usr/local
INSTALLDIR = $(PREFIX)/lib
INCDIR = $(PREFIX)/include

default: all

all: dist

dist: FreeImage
        cp *.a Dist
        cp *.dylib Dist
        cp Source/FreeImage.h Dist

FreeImage: $(STATICLIB) $(SHAREDLIB)

$(STATICLIB): $(STATICLIB)-i386
        $(LIPO) -create $(STATICLIB)-i386 -output $(STATICLIB)

$(STATICLIB)-i386: $(MODULES_I386)
        $(LIBTOOL) -arch_only i386 -o $@ $(MODULES_I386)

$(SHAREDLIB): $(SHAREDLIB)-i386
        $(LIPO) -create $(SHAREDLIB)-i386 -output $(SHAREDLIB)

$(SHAREDLIB)-i386: $(MODULES_I386)
        $(CPP_I386) -arch i386 -dynamiclib $(LIBRARIES_I386) -o $@ $
(MODULES_I386)

.c.o-i386:
        $(CC_I386) $(CFLAGS_I386) -c $< -o $@

.cpp.o-i386:
        $(CPP_I386) $(CPPFLAGS_I386) -c $< -o $@

install:
        install -d -m 755 -o root -g wheel $(INCDIR) $(INSTALLDIR)
        install -m 644 -o root -g wheel $(HEADER) $(INCDIR)
        install -m 644 -o root -g wheel $(SHAREDLIB) $(STATICLIB) $
(INSTALLDIR)
        ranlib -sf $(INSTALLDIR)/$(STATICLIB)
        ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)

clean:
        rm -f core Dist/*.* u2dtmp* $(MODULES_I386) $(STATICLIB) $(STATICLIB)-
i386 $(SHAREDLIB) $(SHAREDLIB)-i386

On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Steinfeld  
View profile  
 More options Oct 30 2007, 4:16 pm
From: "Michael Steinfeld" <mikeisgr...@gmail.com>
Date: Tue, 30 Oct 2007 16:16:49 -0400
Local: Tues, Oct 30 2007 4:16 pm
Subject: Re: [Rails] Re: freeimage/image_science on leopard
Nice, let me know how this works for you. I was pondering doing the
same, but since i had both SDK's installed.. *shrugs.

You'll still need to pass -lruby to the compiler flags (if your using
apples /usr/bin/ruby and RubyInline). I wrote a sed one-liner to edit
inline.rb

sudo sed -i -e "387,1s/flags\ =\ @flags.join(\'\ \')/&\ \+\ \'\
-lruby\'/" /usr/lib/ruby/user-gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb

-mike

On 10/30/07, Todd Persen <todd.per...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »