> before that i need to say one thing. 
> earlier while compiling got a an error which some thing like this:-
        Fl_x.cxx:239: error: impossible constraint in 'asm'
        Fl_x.cxx:240: error: impossible constraint in 'asm'
        Fl_x.cxx:241: error: impossible constraint in 'asm'

If those line numbers are correct, then those errors suggest that you
have the wrong header files for the unix "select" functions or similar -
not specifically related to the X-windowing system, but still a show
stopper.

You need to ensure that *only* the target toolchain header files are
included in the build, and that no local-system header files get
included, as they *will* be different and often incompatible.


> what i have done is copied X11 from /usr/lib/X11/ to
> my toolchain /lib.
> is that correct method???? 

No.
All the libs that you link the target applications against *must* be
libs built for the target architecture.
So you must not use *any* of your host libs on your target, you must
obtain (or build for yourself) the correct libs for the target.

If you think about it, the libs contain code that will be linked into
your app then run on your target - so the host libs contain x86 code and
the target libs need to contain ARM code... Not the same thing at all!

> if not tell me from scracth will try to rebuild fltk. 

You need to tell us what display system your target board has - is it
X-windows or is it a framebuffer device?

Assuming it is X-windows, you need to obtain the correct X11 libraries
and header files to allow you to build X-windows applications for your
target board. I assume that these will be available from the toolchain
or board supplier.

If you are building the boards yourself, then you may need to build the
X11 libraries yourself - in which case you need to get the sources from
Xorg, then cross-compile them for your target hardware. The Xorg
configure system is complex, but does support cross-compilation fairly
well, and there are many articles on the web about doing this. It is
outside the scope of a fltk list to discuss it though. (Suffice to say
it is a straightforward but long and arduous process!)

Anyway - once you have the necessary X libs and headers for your target,
fltk should build against them without these troubles.







SELEX Sensors and Airborne Systems Limited
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-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to