MacArthur, Ian (SELEX) (UK) wrote: > > >> 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.
Thanks Ian. I don't have access to a windows box right now, but I will later. I will follow your article: http://www.fltk.org/articles.php?L598+I0+T+M10+P1+Q Perhaps I will install Dev-cpp and see if I can build the fltk-1.1.x-r5940 on Windows. Atleast that way I can simply install SDL and SDL_mixer w32 libs that are provided on libsdl.org. Thanks. -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

