Vinayak,

Please - don't email me directly at work, my employer may take a dim
view of that.
Instead, please email the fltk.general mailing list. I will still see
your posts, and others who can help will also see them.

Also, please do not post the errors in .doc format - I will not open
unsolicited document attachments (indeed our firewall usually strips
them away anyhow.)

If you must post attachments, post them as simple ASCII or UTF-8 encoded
text.


Now, as to your questions: I'll describe below what I do. If you post on
the fltk.general mailing list, you'll probably get other suggestions.

- Firstly, unroll the fltk tarball into a tree to build fltk natively
for your host system, which I assume is linux, and configure / make as
normal. Let's call this the "linux" tree.

- Verify that your fltk build is good by running the test programs from
the test directory.

- Make a separate fltk tree for your target builds, the "target" tree.
Into this, copy the files "makeinclude" and "config.h" from the linux
tree.

- Edit "config.h" to adjust its definitions to match the actual
configuration of your target. Probably no changes are required here.

- Edit "makeinclude" to set the paths and options for your
cross-compilation tools. This *will* need a lot of changes - you need to
make sure that the cross-compiler, cross-linker, etc., are all set in
place of the "native" linux ones, and all the library paths and so forth
must be changed to point to the cross-compiler libraries.

- Thereafter, you should be able to just "make" the target tree. You get
some problems where "make" tries to execute the "target" version of
Fluid, whilst running on the native host, but most of these can either
be ignored, or you can edit the Makefiles to ensure that the native
version of fluid from the "linux" tree is called instead.

- Copy one of the test programs from the "target" tree to your target
board and run it. Verify that all is working OK.






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 mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to