> Are there any docs describing the cross compile process with 
> FLTK? I've looked through the general stuff but didn't see 
> anything. Do I simply set up the makefile for the 
> m68k-linux-gcc compiler? What about the libs needed by the OS 
> at run time?
> 
> Any help/direction to docs appreciated.


This has come up a few times, so a search of the archives, either here
(in dev) or over in fltk.general might find something - maybe try
searching against my name...

Anyway, trying to keep it short; the fltk configure script doesn't
handle cross builds all that well. What I've done in the past is a
standard configure on a host system that was similar to the target, then
hand-edit the "makeinclude" and "config.h" files that generates to
tailor the target specific settings to the cross-target.

Most of the "interesting" stuff for your cross-target should be in the
"makeinclude" file - i.e. the paths to the compile/link/ar tools, the
paths to your cross-libraries, etc.

Assuming you have your cross-compilation toolchain set up, and have
installed the required target libraries and headers, it should then
pretty much Just Work, using your revised makeinclude the build will run
OK. The only other gotcha is during building the examples in the test
directory, when the makefile tries to run the version of fluid it just
built - which dies since it is for the target, not the host! Tweaking
the makefiles to use the host system fluid gets that going too.

HTH,
-- 
Ian



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

Reply via email to