DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2071
Version: 1.3-current


I have attached a patch that might fix the problem. With the patch applied,
the shared library can be built without requiring cairo.

However, when I enable Cairo, I got a bunch of undefined references to
Xdbe functions when linking fluid. I do have both Cairo RPMs (regular and
devel) installed. I haven't used Cairo before, so I'm afraid I'm not that
much help.

Not sure if I should be saying this in this STR or making a new one, but
here is what I am seeing:

With this patch applied, if I specify only --enable-cairo, I get the
following error:

Linking fluid-shared...
../src/libfltk.so: undefined reference to `Fl::cairo_state_'
../src/libfltk.so: undefined reference to
`Fl::cairo_make_current(Fl_Window*)'


If I use --enable-cairo --enable-cairoext I get the following error:

Linking fluid...
../lib/libfltk.a(Fl_Double_Window.o): In function `can_xdbe()':
Fl_Double_Window.cxx:(.text+0x45): undefined reference to
`XdbeQueryExtension'
Fl_Double_Window.cxx:(.text+0x7a): undefined reference to
`XdbeGetVisualInfo'
Fl_Double_Window.cxx:(.text+0xbd): undefined reference to
`XdbeFreeVisualInfo'
../lib/libfltk.a(Fl_Double_Window.o): In function
`Fl_Double_Window::flush(int)':
Fl_Double_Window.cxx:(.text+0x2c3): undefined reference to
`XdbeAllocateBackBufferName'
Fl_Double_Window.cxx:(.text+0x389): undefined reference to
`XdbeSwapBuffers'
../lib/libfltk.a(Fl_visual.o): In function `test_visual(XVisualInfo&,
int)':
Fl_visual.cxx:(.text+0x9a): undefined reference to `XdbeQueryExtension'
Fl_visual.cxx:(.text+0xcf): undefined reference to `XdbeGetVisualInfo'

I'm not sure why I am getting Xdbe errors. I have Load 'dbe' in my
xorg.conf and, AFAICT, I have the Xdbe header files.

So, to make a long story short. If a shared FLTK library, without Cairo
support, is wanted, then this patch is does the trick.


Link: http://www.fltk.org/str.php?L2071
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to