> what version of fltk ?
> I am trying to build FLTK 1.3.0..

OK.

> what host toolchain ?
> The host toolchain is on Ubuntu. But I am cross compiling it for ARM
> target.

It was the cross-compiler toolchain I was interested in; which cross-compiler? 
The gcc-arm that is in the Ubuntu repos, or one of the others? (there are 
many...!)


> what X11 server ?
> I am not sure how to check the version of the X11 Server? Any ideas.

Specifically, I was asking what X11 server is running on your target system, 
and for which you are cross-compiling. Is it the XOrg server, and if so, is it 
a "full" server, or one of the cut down ones (KDrive/TinyX stuff) or is it an 
embedded X11-work-alike server, e.g. nano-X or something?


> are you cross-compiling or building native on the arm host?
> Yes I am cross compiling for ARM target on a Ubuntu host.

OK - have you used this cross-compilation toolchain before? Have you 
successfully deployed any code to your target using it?


> I am building FLTK as static lib only.As per your suggestion I have
> checked X11 and found that XIMOfIC  is present in Xlib.h file. It is
> declared and externed here.But I cannot find where it is defined.

OK - and you are sure you are looking in the header files of the 
cross-toolchain, not in the header files of the host system?

In any case, the reference existing in the header files does not tell us much, 
it is what is in the libs themselves that matters at the end of the day.


> As for checking libs I don’t know what libs are X11 libs apart form
> LibXext. I think you are right that my X library is not providing the
> implemenation. But I cannot figure out which library would implement it.

Well, on your host system, type this:


        fltk-config --ldstaticflags

and fltk-config will tell you the flags it would use to link your application 
(albeit for the host, you may be able to get it to tell you about your 
cross-target too, though that would be trickier... It is likley to be much the 
same, however. Probably!)

Here, I get:

$ fltk-config --ldstaticflags
/home/imacarthur/src/fltk-1.3/lib/libfltk.a -lXext -lXft -lfontconfig 
-lXinerama -lpthread -ldl -lm -lX11


Of these, the likely X11 libs are X11 and Xext, which will resolve to libX11.so 
and libXext.so (or possibly resolve to libX11.a and libXext.a in a fully static 
link... you probably don't want that though I'd guess...)
And note that link order is important, so you need to link them in that order 
or it may not work!


So, you find out what is in these libs by passing them to nm, and see what it 
says, e.g. 

   nm /the/path/to/libX11.a

or

   nm -D /the/path/to/libX11.so

or, if you know the symbol you want to look for, try:

   nm /the/path/to/libX11.a | grep XIMOfIC

which, on this box returns:

   00a8b520  T  XIMOfIC

The interesting part here is the "T" in the middle, this tells us that this 
library defines this symbol.

If you don't see the symbol at all, or it is in there but has any letter other 
than T, then the symbol is *not* provided by the lib...


This is all way off-toic for fltk though, this is looking a lot more like 
there's something odd in your X11 libs, so you may get more mileage from trying 
to track that down.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to