> >> I use the configure option: > >> ./configure --prefix=/usr/fltk --host=arm-linux --build=i386- > >> linux --target=arm-linux > >> make it then comes: > >> when trying to cross compile for my target I have the same problem; > > > > HOw did you solved this problem? > > The fltk configure script is not cross-compilation aware, so setting > the host/build/target flags will not help you. > > What I do is simply configure for the local target, then hand-edit > the generated makeinclude and config.h files to correctly describe > the cross-compilation target environment (and sometime I add a few > extra define to config.h to make sure the cross-target is set.) I've hacked configure.am to cross-compile fltk for mingw from linux (it broke OpenGL, though)
By the way, why not fix configure script(or CMake system, whatever) to support cross-compilation? (sorry if it has been discussed before) The only problem I know is that to "compile" .fl files we need native-compiled fluid, that needs native-compiled fltk. I see two solutions to this: 1) (what I would do) Separate fluid functionality in two utilities: fluid itself - to design UI and produce .fl files flc - .fl "compiler", that would *not* depend to fltk(written in pure portable C or C++) So for cross-compilation we would just need to compile flc twice. fluid -c would just invoke flc, so existing Makefiles would not be broken 2) require installed native-compiled fltk for cross-compilation _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

