ANN: FXRuby-1.0.17 Now Available

All,

The latest version of FXRuby is now available for download from the
SourceForge downloads page here:

~ http://sourceforge.net/project/showfiles.php?group_id=20243

The source tarball, as well as installers for Ruby 1.6.7 and Ruby 1.7.3
on Windows, are available.

This is primarily a bug-fix release; for a list of the changes in this
release, please see:

~ http://www.fxruby.org/doc/changes.html

Enjoy,

Lyle

How’s the OS X compatibility coming?

···

On Thursday, 19 December 2002 at 2:51:08 +0900, Lyle Johnson wrote:

The latest version of FXRuby is now available for download from the
SourceForge downloads page here:


Jim Freeze

Jim Freeze wrote:

How’s the OS X compatibility coming?

The last time I looked at it, we were able to build FOX successfully (we
did this at RubyConf). Since then (on your iBook) I was able to build
the FXRuby shared library but it crashed the Ruby interpreter during
initialization.

After searching the web for similar war stories I ran across a web page
describing different releases of the Mac OS X developer tools, problems
fixed for those releases, etc. One of those release notes made reference
to a problem for loading dynamically linked C++ libraries with static
global constructors (or something like that); it sounded like it might
be related to the problem I was seeing with FXRuby. I think that at that
point I asked you if you had the latest developer tools installed, and
you were going to check up on that…

So the question is, were you able to get your hands on those (or are
they freely available)?

Sorry to say, but I have not got the new tools. I guess that I am going
to have to spend the $100 to get 10.2 so I can upgrade to the new tools.
Ugh…

···

On Thursday, 19 December 2002 at 7:11:59 +0900, Lyle Johnson wrote:

Jim Freeze wrote:

How’s the OS X compatibility coming?

So the question is, were you able to get your hands on those (or are
they freely available)?


Jim Freeze

Corruption is not the #1 priority of the Police Commissioner. His job
is to enforce the law and fight crime.
– P.B.A. President E. J. Kiernan

Jim Freeze wrote:

Sorry to say, but I have not got the new tools. I guess that I am going
to have to spend the $100 to get 10.2 so I can upgrade to the new tools.

Don’t do it on my account :wink: I have no idea if upgrading to 10.2 and its
tools will solve the problem, it’s just a hunch.

I do wish that I had ready access to a Mac OS X box myself and/or that
someone more knowledgeable about these issues (than I am) could work on
it. I do see that SourceForge’s compile farm includes a Mac OS X host
running 10.1.5, so I don’t know what that means in terms of development
tools. I may try to build things there as well and see if I have any
better luck.

Hi Lyle,

If the needs are simple (compile FOX, compile FXRuby, run test suite), then
I could probably do it in the background at work, where I have 10.2
w/developer tools and Fink available on my machine.

What version of Ruby would I need to have to match up to your
environment? Anything else you can think of that my brain might miss while
I’m drinking my first cup of coffee?

-Brian W

···

At 11:36 PM 12/19/2002 +0900, Lyle Johnson wrote:

Jim Freeze wrote:

Sorry to say, but I have not got the new tools. I guess that I am going
to have to spend the $100 to get 10.2 so I can upgrade to the new tools.

Don’t do it on my account :wink: I have no idea if upgrading to 10.2 and its
tools will solve the problem, it’s just a hunch.

I do wish that I had ready access to a Mac OS X box myself and/or that
someone more knowledgeable about these issues (than I am) could work on
it. I do see that SourceForge’s compile farm includes a Mac OS X host
running 10.1.5, so I don’t know what that means in terms of development
tools. I may try to build things there as well and see if I have any
better luck.

Brian Wisti
brian@coolnamehere.com
http://coolnamehere.com/

Guys,

If you get this working we can get FreeRIDE on OS X which would rock
since I just got a new G4 Titanium…and am using Virtual PC right now
for FreeRIDE devt. which is…um…painful. Good luck an keep us
posted!

-rich

···

-----Original Message-----
From: Brian Wisti [mailto:brian@coolnamehere.com]
Sent: Thursday, December 19, 2002 11:32 AM
To: ruby-talk ML
Subject: FXRuby and OS X 10.2 (Re: ANN: FXRuby-1.0.17 Now Available)

Hi Lyle,

If the needs are simple (compile FOX, compile FXRuby, run
test suite), then
I could probably do it in the background at work, where I have 10.2
w/developer tools and Fink available on my machine.

What version of Ruby would I need to have to match up to your
environment? Anything else you can think of that my brain
might miss while
I’m drinking my first cup of coffee?

-Brian W

At 11:36 PM 12/19/2002 +0900, Lyle Johnson wrote:

Jim Freeze wrote:

Sorry to say, but I have not got the new tools. I guess that I am
going to have to spend the $100 to get 10.2 so I can upgrade to the
new tools.

Don’t do it on my account :wink: I have no idea if upgrading to 10.2 and
its
tools will solve the problem, it’s just a hunch.

I do wish that I had ready access to a Mac OS X box myself
and/or that
someone more knowledgeable about these issues (than I am)
could work on
it. I do see that SourceForge’s compile farm includes a Mac
OS X host
running 10.1.5, so I don’t know what that means in terms of
development
tools. I may try to build things there as well and see if I have any
better luck.

Brian Wisti
brian@coolnamehere.com
http://coolnamehere.com/

That would be great Brian. I responded to Lyle accidently instead of to
the list. Last I checked, I will need 10.2 to get the latest developer
tools. Until then, your Mac could really help out.

Lyle and I got Fox installed and running. See

http://www.fifthplanet.net/cgi-bin/wiki.pl?Mac_OS_X

for info. We installed FXRuby, but could not get past

ruby -r fox -e 0

If you can try this much, then we will know if the tools are the
problem.

Jim

···

On Friday, 20 December 2002 at 1:31:59 +0900, Brian Wisti wrote:

Hi Lyle,

If the needs are simple (compile FOX, compile FXRuby, run test suite), then
I could probably do it in the background at work, where I have 10.2
w/developer tools and Fink available on my machine.

What version of Ruby would I need to have to match up to your
environment? Anything else you can think of that my brain might miss while
I’m drinking my first cup of coffee?


Jim Freeze

Brian Wisti wrote:

If the needs are simple (compile FOX, compile FXRuby, run test suite),
then I could probably do it in the background at work, where I have 10.2
w/developer tools and Fink available on my machine.

What version of Ruby would I need to have to match up to your
environment? Anything else you can think of that my brain might miss
while I’m drinking my first cup of coffee?

I’ve been re-trying the experiment on SourceForge’s compile farm Mac OS
X box (which is running 10.1.5) and it basically crashes at the same
point as it always has – when Ruby tries to load the FXRuby extension
(i.e. require ‘fox’).

I built the 1.6.8-preview4 version of Ruby, followed by fox-1.0.28:

 http://www.fox-toolkit.org/ftp/fox-1.0.28.tar.gz

There are some words about what you have to do to get FOX built under
Mac OS X here:

 http://www.fifthplanet.net/cgi-bin/wiki.pl?Mac_OS_X

They refer to the build process under 10.1; don’t know if you’ll hit any
new wrinkles building FOX with 10.2. But I can confirm that when we did
this at RubyConf (on Jim Freeze’s iBook) we were able to run the FOX
example programs, etc. So that much should work.

Once you’re satisfied that FOX is installed and working properly, you
should be able to build FXRuby-1.0.17 as well. Here’s the process I used
this morning:

 tar xzf FXRuby-1.0.17.tar.gz
 cd FXRuby-1.0.17
 export CXX=c++
 ruby install.rb config
 ruby install.rb setup
 sudo ruby install.rb install

You may have to modify the Makefile that the extconf.rb script generates
in FXRuby-1.0.17/ext/fox so that the LDSHARED line includes the
“-read_only_relocs suppress” flag. But other than that it seemed to
compile just fine.

But…

When I try to run any of the FXRuby examples (e.g. the “hello.rb”
example) I get the error:

 hello.rb:3: [BUG] Bus Error
 ruby 1.6.8 (2002-12-16) [powerpc-darwin5.5]
 Abort trap

If I run ruby under gdb, the stack trace is pointing to several calls
below dln_load() and it’s pretty clear that something is going horribly
wrong when Ruby tries to load the FXRuby extension (fox.bundle) itself.

If you have any insight at all into what’s wrong it would be helpful.
I’m a little hamstrung by the lack of direct access to a Mac OS X box of
my own, and it’s been suprisingly difficult to find good information on
the web. This is the kind of problem that I can usually muddle through
with Google’s help but no such luck this time :wink:

Lyle

I upgraded yesterday to Mac OS X 10.2.3 and to Ruby 1.6.8 preview 4
(12/19/02). I successfully installed FOX (following the instructions
at http://www.fifthplanet.net/cgi-bin/wiki.pl?Mac_OS_X ). I have not
been successful in installing FXRuby-1.0.17. The setup process exits
with the following:

cc -dynamic -bundle -undefined suppress -flat_namespace
-L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/lib/ruby/1.6/powerpc-darwin6.3 -L/usr/local/lib -o
fox.bundle librb.o core_wrap.o dialogs_wrap.o FXRbApp.o
FXRbDataTarget.o FXRuby.o icons_wrap.o image_wrap.o impl.o
layout_wrap.o markfuncs.o mdi_wrap.o opengl_wrap.o ui_wrap.o -lFOX
-lGLU -lGL -lX11 -lXext -lz -lstdc++ -ldl -lobjc
ld: can’t locate file for: -lFOX
make: *** [fox.bundle] Error 1
setup failed
’system make’ failed
try ‘ruby install.rb --help’ for usage

I’ll keep trying some things but let me know if anyone has a solution
to this part of the problem. Thank you.

Yeah, FreeRIDE is the main motivator here. At lest for me.

···

On Friday, 20 December 2002 at 1:40:20 +0900, Rich Kilmer wrote:

Guys,

If you get this working we can get FreeRIDE on OS X which would rock
since I just got a new G4 Titanium…and am using Virtual PC right now
for FreeRIDE devt. which is…um…painful. Good luck an keep us
posted!


Jim Freeze

FreeBSD: It’s 3am at night. Do you know where your fairings are?

Mark Wilson wrote:

I upgraded yesterday to Mac OS X 10.2.3 and to Ruby 1.6.8 preview 4
(12/19/02). I successfully installed FOX (following the instructions at
http://www.fifthplanet.net/cgi-bin/wiki.pl?Mac_OS_X ). I have not been
successful in installing FXRuby-1.0.17. The setup process exits with
the following:

cc -dynamic -bundle -undefined suppress -flat_namespace
-L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/lib/ruby/1.6/powerpc-darwin6.3 -L/usr/local/lib -o
fox.bundle librb.o core_wrap.o dialogs_wrap.o FXRbApp.o FXRbDataTarget.o
FXRuby.o icons_wrap.o image_wrap.o impl.o layout_wrap.o markfuncs.o
mdi_wrap.o opengl_wrap.o ui_wrap.o -lFOX -lGLU -lGL -lX11 -lXext -lz
-lstdc++ -ldl -lobjc
ld: can’t locate file for: -lFOX
make: *** [fox.bundle] Error 1
setup failed
‘system make’ failed
try ‘ruby install.rb --help’ for usage

Did you perhaps install the FOX library to some non-standard directory
(by specifying a “–prefix” option to FOX’s configure script)?

The error message means that the linker (ld) can’t find the FOX library
that you built and installed previously. According to the output you’ve
shown, it is looking in the following directories:

 /usr/local/lib
 /usr/X11R6/lib
 /usr/local/lib/ruby/1.6/powerpc-darwin6.3

By default, the FOX library gets installed to /usr/local/lib. If you
specified a different installation directory, that’s OK too, but you
need to tell the FXRuby build script about it by specifying the
–with-fox-include and --with-fox-lib options, as shown here:

 http://www.fxruby.org/doc/build.html

Hope this helps,

Lyle

I got FXRuby-1.0.17 installed. When I try to use it I get the
following error message for the line “require ‘fox’”:

[BUG] Bus Error
Ruby 1.6.8 (2002-12-19) [powerpc-darwin6.3]
Abort

One point on Fox 1.0.28 itself: I can run all of the tests except hello
and hello2. Both of these fail with a message that says “Bus error”.
I don’t know if this is related to the error with FXRuby.

I hope the above helps.

···

On Friday, December 20, 2002, at 08:17 PM, Lyle Johnson wrote:

Mark Wilson wrote:

[snip] Mac OS X 10.2.3 and to Ruby 1.6.8 preview 4 (12/19/02). I
successfully installed FOX (following the instructions at
http://www.fifthplanet.net/cgi-bin/wiki.pl?Mac_OS_X ). [snip]

I got FXRuby-1.0.17 installed. When I try to use it I get the
following error message for the line “require ‘fox’”:

[BUG] Bus Error
Ruby 1.6.8 (2002-12-19) [powerpc-darwin6.3]
Abort

Ahh, same for us.

One point on Fox 1.0.28 itself: I can run all of the tests except hello
and hello2. Both of these fail with a message that says “Bus error”.
I don’t know if this is related to the error with FXRuby.

We installed Fox 1.0.26. All the tests (except those that required open3d)
worked. We had no problem with hello and hello2.

···

On Saturday, 21 December 2002 at 19:27:34 +0900, Mark Wilson wrote:


Jim Freeze

Honk if you hate bumper stickers that say “Honk if …”

I can report that updating to the December 2002 Mac OS X developer
tools does not solve the problem. However, the update does not cause
any additional problems.

···

On Saturday, December 21, 2002, at 07:25 AM, Jim Freeze wrote:

On Saturday, 21 December 2002 at 19:27:34 +0900, Mark Wilson wrote:

I got FXRuby-1.0.17 installed. When I try to use it I get the
following error message for the line “require ‘fox’”:

[BUG] Bus Error
Ruby 1.6.8 (2002-12-19) [powerpc-darwin6.3]
Abort

Ahh, same for us.

One point on Fox 1.0.28 itself: I can run all of the tests except
hello
and hello2. Both of these fail with a message that says “Bus error”.
I don’t know if this is related to the error with FXRuby.

We installed Fox 1.0.26. All the tests (except those that required
open3d)
worked. We had no problem with hello and hello2.


Jim Freeze

Honk if you hate bumper stickers that say “Honk if …”