> I would like to compile this program (from within Linux) to > run on Windows, > but I've never done this before.
> Does anyone know of a howto or article that I can read? > Ideally, I would > like to develop on Linux, then compile a Windows executable. I don't think there's a specific HowTo for this with fltk, but it does come up on this list from time to time. The archives may have something you can use. The main caveat seems to be that the fltk configure script will not generate a usable cross-compilation environment for you (it is really intended purely for native hosting) so you need to generate your own environment. I've never done fltk dev on linux for win32, but have done fltk dev on (various) for some embedded targets. What I did was hand generate a "makeinclude" and "config.h" appropriate for the target, with the "makeinclude" paths very carefully set up to get the cross-target items. You might also have to fiddle about with setting suitable environment variables (e.g. WIN32) in your config.h or elsewhere... Thereafter, make pretty much just works - but it chokes trying to build the test examples (it tries to execute the cross-target fluid, so you need to make it pick the "native" fluid instead.) Whether this works for a mingw cross-compile I can't say. I generally just run the "real" native mingw on an XP box - it's a lot less hassle than trying to cross-compile. Another thought: does anybody know if the native mingw tools run under Wine? If so, just building with mingw under Wine is probably they way to go - then you can edit/compile/test under linux, and when you think it is working, just recompile a copy under Wine to see what's what. -- 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 mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

