Hello,

I just checked out the GUII branch to have a look at the Qt2 interface but the build 
fails in src/graphics/GraphicsImageXPM.C because of undefined references to FLTK 
(?!!!??!!) variables such as fl_screen or fl_state.

This seems very strange, I simply did :
cd lyx-guii
./autogen.sh
./configure --with-frontend=qt2
make -j 5  # to use my 2 Celeron chips.

And I got this :

/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../  
-I../../boost  -isystem /usr/X11R6/include  -g -O -W -Wall -c GraphicsImageXPM.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem 
/usr/X11R6/include -g -O -W -Wall -Wp,-MD,.deps/GraphicsImageXPM.pp -c 
GraphicsImageXPM.C
GraphicsImageXPM.C: In method `grfx::GImageXPM::~GImageXPM()':
GraphicsImageXPM.C:72: implicit declaration of function `int grfx::fl_get_display(...)'
GraphicsImageXPM.C:72: passing `int' to argument 1 of `XFreePixmap(Display *, long 
unsigned int)' lacks a cast
GraphicsImageXPM.C: In method `bool grfx::GImageXPM::setPixmap(const grfx::GParams &)':
GraphicsImageXPM.C:162: initialization to `Display *' from `int' lacks a cast
GraphicsImageXPM.C:169: `fl_screen' undeclared (first use this function)
GraphicsImageXPM.C:169: (Each undeclared identifier is reported only once
GraphicsImageXPM.C:169: for each function it appears in.)
GraphicsImageXPM.C: In method `void grfx::GImageXPM::clip(const grfx::GParams &)':
GraphicsImageXPM.C:269: warning: comparison between signed and unsigned
GraphicsImageXPM.C: In function `void {anonymous}::mapcolor(const char *, char **, 
char **)':
GraphicsImageXPM.C:613: initialization to `Display *' from `int' lacks a cast
GraphicsImageXPM.C:614: `fl_state' undeclared (first use this function)
GraphicsImageXPM.C:614: implicit declaration of function `int 
{anonymous}::fl_get_vclass(...)'
make: *** [GraphicsImageXPM.lo] Error 1

Did I miss a step ? Is there an explanation to these FLTK references ?

        thanks for your help,

        P.O. Gaillard



Reply via email to