fltk on OS X working?

J

Jim Freeze

Does anyone have fltk 1.1.x or 1.2 bindings working with OS X?
The ruby-fltk site at sourceforge looks like it hasn't been
updated in about 2 years.
 
L

Lothar Scholz

Hello Jim,

JF> Does anyone have fltk 1.1.x or 1.2 bindings working with OS X?
JF> The ruby-fltk site at sourceforge looks like it hasn't been
JF> updated in about 2 years.

Not for OS X but i have a working ruby-fltk for WinXP/Win2K. It comes
precompiled with with IDE.

Linking ruby-fltk-0.9.0 against fltk-1.1.5rc1 should be okay.

I had to add a __declspec(dllexport) and change a
change a few compiler options which seems not be necessary for unix based os.
 
J

Jim Freeze

Hello Jim,

Not for OS X but i have a working ruby-fltk for WinXP/Win2K. It comes
precompiled with with IDE.

Linking ruby-fltk-0.9.0 against fltk-1.1.5rc1 should be okay.

I had to add a __declspec(dllexport) and change a
change a few compiler options which seems not be necessary for unix based os.

I have compiled 1.1.5rc1 and have downloaded ruby-fltk-0.9.0.
Compiling ruby-fltk gives the error:

In file included from flimage.cc:6:
flimage.h: In constructor `RBFLImage::RBFLImage(int, int, int)':
flimage.h:44: error: no matching function for call to
`Fl_Image::Fl_Image(int&, int&)'
/opt/local/include/FL/Fl_Image.H:64: error: candidates are:
Fl_Image::Fl_Image(int, int, int)
/opt/local/include/FL/Fl_Image.H:41: error:
Fl_Image::Fl_Image(const Fl_Image&)
make: *** [flimage.o] Error 1
 
J

Jim Freeze

On Saturday, 12 June 2004 at 10:28:50 +0900, Lothar Scholz wrote:

I have compiled 1.1.5rc1 and have downloaded ruby-fltk-0.9.0.
Compiling ruby-fltk gives the error:

In file included from flimage.cc:6:
flimage.h: In constructor `RBFLImage::RBFLImage(int, int, int)':
flimage.h:44: error: no matching function for call to
`Fl_Image::Fl_Image(int&, int&)'
/opt/local/include/FL/Fl_Image.H:64: error: candidates are:
Fl_Image::Fl_Image(int, int, int)
/opt/local/include/FL/Fl_Image.H:41: error:
Fl_Image::Fl_Image(const Fl_Image&)
make: *** [flimage.o] Error 1

Looking at this further, extconf.rb checks the number of args
to Fl_Image. It has three in the .H file, but for some reason
the test code won't build:

jdf@cheetah 26 /Users/jdf/tmp/fltest % cat flimage3.cc
#include <FL/Fl_Image.H>
int main(){
Fl_Image *img = new Fl_Image(0,0,0);
return 0;
}

jdf@cheetah 27 /Users/jdf/tmp/fltest % gcc flimage3.cc
ld: Undefined symbols:
vtable for Fl_Image
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
 
T

Tim Sutherland

Jim Freeze wrote: said:
jdf@cheetah 27 /Users/jdf/tmp/fltest % gcc flimage3.cc
ld: Undefined symbols:
vtable for Fl_Image
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0

Try
g++ flimage3.cc
 
J

Jim Freeze

Try
g++ flimage3.cc

g++ -I/opt/local/include -L/opt/local/lib flimage3.cc
ld: Undefined symbols:
vtable for Fl_Image

Still fails.

--
Jim Freeze
I think that all good, right thinking people in this country are sick
and tired of being told that all good, right thinking people in this
country are fed up with being told that all good, right thinking people
in this country are fed up with being sick and tired. I'm certainly
not, and I'm sick and tired of being told that I am.
-- Monty Python
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top