nanogui: FLTK 2.0 followup


Previous by date: 23 Jul 2007 21:19:41 +0100 FLTK 2.0 followup, McCune, Michael
Next by date: 23 Jul 2007 21:19:41 +0100 Re: FLTK 2.0 followup, Graham Henderson
Previous in thread: 23 Jul 2007 21:19:41 +0100 FLTK 2.0 followup, McCune, Michael
Next in thread: 23 Jul 2007 21:19:41 +0100 Re: FLTK 2.0 followup, Graham Henderson

Subject: RE: [nanogui] FLTK 2.0 followup
From: "Martin Kajdas" ####@####.####
Date: 23 Jul 2007 21:19:41 +0100
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC2291608@mkmail.MKPROD.COM>

The problem is that libnx does not contain all of the X11 functions and
if FLTK 2.0 uses any of those functions you will get undefined
references.
You need to add missing functions to libnx and make them do something
that makes sense.
I had similar problem with FLTK 1.7 but the number of problem functions
was very small.
FLTK 2.0 uses more advanced X11 functions that are not provided (yet!)
in libnx.
Martin


-----Original Message-----
From: McCune, Michael ####@####.#### 
Sent: Monday, July 23, 2007 12:50 PM
To: ####@####.####
Subject: [nanogui] FLTK 2.0 followup


Hi all,

I checked my sources and managed to re-discover the problem I had run
into before. Compiling fltk 2.0 goes ok, but when compiling apps against
the libraries I produce these errors:

../lib/libfltk2.a(run.o): In function `open_stylus_device(_XDeviceInfo*,
int, int)':
run.cxx:(.text+0xfe8): undefined reference to `XSelectExtensionEvent'
run.cxx:(.text+0x1008): undefined reference to `XOpenDevice'
../lib/libfltk2.a(run.o): In function `fltk::enable_tablet_events()':
run.cxx:(.text+0x125c): undefined reference to `XGetExtensionVersion'
run.cxx:(.text+0x1280): undefined reference to `XListInputDevices'
run.cxx:(.text+0x1330): undefined reference to `XFreeDeviceList'
collect2: ld returned 1 exit status
make: *** [test1] Error 1

as far as I can tell these functions are from either libXext or libXi. I
tried to code around these places in x11/run.cxx and eventually got test
apps linking against the libraries, but as these apps always seg fault
on me it probably has to do with these code sections I have messed with.


good luck,
Mike McCune
Navigation Solutions
248 282 5407

Previous by date: 23 Jul 2007 21:19:41 +0100 FLTK 2.0 followup, McCune, Michael
Next by date: 23 Jul 2007 21:19:41 +0100 Re: FLTK 2.0 followup, Graham Henderson
Previous in thread: 23 Jul 2007 21:19:41 +0100 FLTK 2.0 followup, McCune, Michael
Next in thread: 23 Jul 2007 21:19:41 +0100 Re: FLTK 2.0 followup, Graham Henderson


Powered by ezmlm-browse 0.20.