I use the attached script to perform MinGW
cross-compilation (for now, static linking only)
of FLTK for Win32 on a Debian GNU/Linux x86 host.

The script should work for current versions
of both Fltk 1.1 and Fltk 2. You may need to
tweak the script a little in order to adjust
it to your own build environment and
requirements.

The script depends on an installed MinGW
toolchain (e.g. via Debian package "mingw32"),
and on WINE (package "wine").

If you do not want to use WINE, you can
pre-compile a native Linux version of FLTK
(or maybe even just install a reasonably
current version of your distribution's
pre-built "fluid" package, if available),
and adjust the "FLUID_COMMAND" setting
to point to your Linux-based FLUID binary.

The script will call "make -i" in the "test/"
subdirectory in order to build as many of
the Fltk test/example programs as possible.

The script works by calling "configure" in an
environment with appropriately soft-linked GCC and
binutils binaries, and fake drop-in replacements
for any calls to "uname" and "fluid".

Yours,
MFG.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to