fltk build and doc access problems

J

Jim Freeze

Hi

I am trying to install ruby-fltk on Linux and am having problems.
First of all, I cannot access the documents from the RAA link.
I get the following error:


Forbidden

You don't have permission to access
/viewcvs.py/~checkout~/ruby-fltk/ruby-fltk/doc/en/guide.txt on this
server.


I have installed fltk 1.1.4, but ruby-fltk does not build:

make
g++ -fPIC -O2 -march=i386 -mcpu=i686 -Wall -fPIC -I.
-I/usr/lib/ruby/1.8/i386-linux-gnu -I/usr/lib/ruby/1.8/i386-linux-gnu
-I. -DHAVE_X11_X_H -DHAVE_X11_XLOCALE_H -DHAVE_SETLOCALE -DHAVE_FL_FL_H
-DHAVE_RB_HASH_DELETE -DHAVE_FL_FL_WIZARD_H -DHAVE_FL_FL_FILE_CHOOSER_H
-DHAVE_FL_FL_TEXT_BUFFER_H -DHAVE_FL_FL_TEXT_EDITOR_H
-DHAVE_FL_FL_TEXT_DISPLAY_H -DHAVE_FL_FL_HELP_VIEW_H
-DHAVE_FL_FL_HELP_DIALOG_H -DHAVE_FL_FL_TOOLTIP_H
-DHAVE_FL_FL_CHECK_BROWSER_H -DHAVE_FL_FL_PROGRESS_H -I/usr/include
-I/usr/X11R6/include -I/usr/local/include -I/home/jfn/fltk/include/FL
-I/home/jfn/fltk/include -DUSE_GL -DUSE_JPEG -DUSE_PNG -DUSE_Z
-I/home/jfn/fltk/include -I/usr/X11R6/include -I/home/jfn/fltk/include
-I/usr/X11R6/include -I/home/jfn/fltk/include -I/usr/X11R6/include
-I/home/jfn/fltk/include -I/usr/X11R6/include -I/home/jfn/fltk/include
-I/usr/X11R6/include -I/home/jfn/fltk/include -I/usr/X11R6/include
-I/home/jfn/fltk/include -I/usr/X11R6/include -I/home/jfn/fltk/include
-I/usr/X11R6/include -c flimage.cc
In file included from flimage.cc:6:
flimage.h: In method `RBFLImage::RBFLImage (int, int, int)':
flimage.h:44: no matching function for call to `Fl_Image::Fl_Image (int
&, int &)'
/home/jfn/fltk/include/FL/Fl_Image.H:41: candidates are:
Fl_Image::Fl_Image (const Fl_Image &)
/home/jfn/fltk/include/FL/Fl_Image.H:64:
Fl_Image::Fl_Image (int, int, int)
flimage.cc: In function `VALUE rb_FLRGB_Image_s_new (int, long unsigned
int *, long unsigned int)':
flimage.cc:105: warning: `RBFLRGB_Image *image' might be used
uninitialized in this function
make: *** [flimage.o] Error 1


Can someone help me out here.
Thanks
 
J

Jim Freeze

Check out the offending lines and surrounding.
There should be something like:

#if defined(HAVE_FL_IMAGE_3)

Different versions of FLTK have changed the # of parameters of some functions
and ruby-fltk has kept compatability so far using define symbols.
You are currently using the wrong one.

Using the wrong what? Wrong fltk build on linux or the wrong ruby-fltk?

Add a -DHAVE_FL_IMAGE3 to your Makefile
(just check where other defines are passed like HAVE_X11_X_H).

Won't this cause the actual call to break?
 

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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top