nanogui: Thread: FLTK2


[<<] [<] Page 1 of 1 [>] [>>]
Subject: FLTK2
From: Chris Penny ####@####.####
Date: 10 May 2010 16:12:11 -0000
Message-Id: <4BE83082.304@compass-sys-inc.com>

Has anyone had any luck building FLTK2 with the nxlib libraries? It 
wants the libraries Xi and Xext, which don't seem to be provided by 
nxlib. I am using version 0.45, because it shipped with the kernel 
source I am using (uClinux), but I am game to try the latest if it will 
solve the issue. If I remove the references to these libraries, these 
are the symbols that are missing.

undefined reference to `XOpenDevice'
run.cxx:(.text+0x2554): undefined reference to `XSelectExtensionEvent'
/home/chris/fltk2//libfltk2.a(run.o): In function 
`fltk::enable_tablet_events()':
run.cxx:(.text+0x2a4c): undefined reference to `XGetExtensionVersion'
run.cxx:(.text+0x2a98): undefined reference to `XListInputDevices'
run.cxx:(.text+0x2b1c): undefined reference to `XFreeDeviceList'
/home/chris/fltk2//libfltk2.a(run.o): In function `fltk::handle()':
run.cxx:(.text+0x452c): undefined reference to `Xutf8LookupString'


Thanks,
Chris Penny
Subject: Re: [nanogui] FLTK2
From: "Greg Haerr" ####@####.####
Date: 10 May 2010 21:14:04 -0000
Message-Id: <047d01caf085$a8216d40$0300a8c0@RDP>

: Has anyone had any luck building FLTK2 with the nxlib libraries? It 
: wants the libraries Xi and Xext, which don't seem to be provided by 
: nxlib.

Look at the FLTK configure file and configure it to not use
Xi, I think that's possible.

With regards to Xext, I've linked with the X11 libXext which
will always return failure for all the extensions, which works.
Otherwise you can remove the Xext requirement from the
configure script in some cases.



 I am using version 0.45, because it shipped with the kernel 
: source I am using (uClinux), but I am game to try the latest if it will 
: solve the issue.

You should definitely be using the git or snapshot version of
NXLIB, which is available as a tarball on the website.

: If I remove the references to these libraries, these 
: are the symbols that are missing.
: 
: undefined reference to `XOpenDevice'
: run.cxx:(.text+0x2554): undefined reference to `XSelectExtensionEvent'
: /home/chris/fltk2//libfltk2.a(run.o): In function 
: `fltk::enable_tablet_events()':
: run.cxx:(.text+0x2a4c): undefined reference to `XGetExtensionVersion'
: run.cxx:(.text+0x2a98): undefined reference to `XListInputDevices'
: run.cxx:(.text+0x2b1c): undefined reference to `XFreeDeviceList'
: /home/chris/fltk2//libfltk2.a(run.o): In function `fltk::handle()':
: run.cxx:(.text+0x452c): undefined reference to `Xutf8LookupString'

After modifying configure, add all these routines to nxlib/stub.c
and return 0 so you can at least link and then run.  Then a quick
grep through FLTK2 source should show you how
important Xutf8LookupString is, and whether there's a 
(non-utf8-but-equivalent) routine you can call (or have the stub
routine call) instead.

Regards,

Greg
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.