nanogui: Thread: Porting FLTK2.0 and FLTK1.1.7 to embedded system


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Porting FLTK2.0 and FLTK1.1.7 to embedded system
From: ####@####.#### ####@####.####
Date: 29 Sep 2006 10:32:35 +0100
Message-Id: <1159522369.2805.42.camel@fc5>

Dear All,

1) I have ported successfully FLTK1.1.7 and Nxlib0.45 to my embedded
system. It works pretty well on my system. But FLTK2.0 can NOT be ported
successfully, it got following question when compiling demos in test
folder,

=== making test ===
Linking arc...
../lib/libfltk2.so: undefined reference to `XGetExtensionVersion'
../lib/libfltk2.so: undefined reference to `Xutf8LookupString'
../lib/libfltk2.so: undefined reference to `XFreeDeviceList'
../lib/libfltk2.so: undefined reference to `XListInputDevices'
../lib/libfltk2.so: undefined reference to `XOpenDevice'
../lib/libfltk2.so: undefined reference to `XSelectExtensionEvent'

It's caused by Nxlib0.45 does not support these functions, can anyone
give me some idea to add them in Nxlib or cancel them in FLTK2.0.

2) While I was porting FLTK1.1.7, I found it requests the function
XConvertSelection support. I also found this function has been
implemented in Selection.c of Nxlib0.45, but Makefile does include this
file? Greg, could you please tell me why?(just interesting to know)

3) While compiling FLTK1.1.7, when go to this step 'Linking
line_style...', it will stop. Don't know what's happen. Can anybody tell
me why and how to solve it. I was just ignoring it, because I think
there were many demos had been built in test folder, it's enough to
test. But, still want to know what's wrong.

Thank you all!

Best regards,
Alex

Subject: Re: [nanogui] Porting FLTK2.0 and FLTK1.1.7 to embedded system
From: "Greg Haerr" ####@####.####
Date: 30 Sep 2006 16:32:03 +0100
Message-Id: <11b801c6e4a5$8f39bb60$2f01a8c0@HaydenLake>

: ../lib/libfltk2.so: undefined reference to `XGetExtensionVersion'
: ../lib/libfltk2.so: undefined reference to `Xutf8LookupString'
: ../lib/libfltk2.so: undefined reference to `XFreeDeviceList'
: ../lib/libfltk2.so: undefined reference to `XListInputDevices'
: ../lib/libfltk2.so: undefined reference to `XOpenDevice'
: ../lib/libfltk2.so: undefined reference to `XSelectExtensionEvent'
: 
: It's caused by Nxlib0.45 does not support these functions, can anyone
: give me some idea to add them in Nxlib or cancel them in FLTK2.0.

Time to get out and study the Xlib Reference manual.
Start by stubbing out each function, put it in nxlib/stubs.c.
Then, look at the source code for the FLTK 2.0
function that calls the Xlib function, and see whether
a full or partial implementation is required.  This
is the process by which I wrote NXLIB.  

The emulation library converts X11 calls to nano-X
calls.


: 
: 2) While I was porting FLTK1.1.7, I found it requests the function
: XConvertSelection support. I also found this function has been
: implemented in Selection.c of Nxlib0.45, but Makefile does include this
: file? Greg, could you please tell me why?(just interesting to know)

This is a bug in the 0.45 Makefile, it should be included. The
CVS version is patched. (this is the only patch against 0.45)


: 
: 3) While compiling FLTK1.1.7, when go to this step 'Linking
: line_style...', it will stop. Don't know what's happen. Can anybody tell
: me why and how to solve it. I was just ignoring it, because I think
: there were many demos had been built in test folder, it's enough to
: test. But, still want to know what's wrong.

Need more input, such as the complete link line.

Regards,

Greg

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


Powered by ezmlm-browse 0.20.