This ought to be in the mailing list archives somewhere, so might be worth trying again, as I know I have posted this before...
> I want to cross compile fltk 1.1.10 for m68k-elf > > What I did: > > k...@mauersegler:~/work/fltk-1.1.10$ ./configure > --target=m68k-elf --host=m68k-elf --build=i386-linux > checking for m68k-elf-gcc... m68k-elf-gcc > checking for C compiler default output file name... > configure: error: C compiler cannot create executables > See `config.log' for more details. This will not work very well - the fltk configure script is not cross-compilation aware in general. So, what I do is: - get the cross-compiler tools installed, and make sure they work. This includes making sure I have all the cross-libs etc. available and working, and that I can build simple Xlib based tests on my host system that execute correctly on the target. - run configure as normal on my host system (usually i386 linux), but often explicitly disabling some of the more "exotic" functions (XFT, XDBE etc.,) depending on what I know the target X11 and so on can actually support. In general I also select the "--local-jpeg --local-zlib --local-png" options to at this point. - make a clean fltk tree. Copy the files "config.h" and "makeinclude" from my host tree into this, then hand-edit them: -- for config.h, the hand-edit it to make sure the settings a re correct for the target, in particular byte-endianness and sizes. -- for makeinclude the edit is to change the paths to point to the cross-tools, libs and include files. - now make as normal. Usually this Just Works right up to the point that it tries to make the test folder. At this point, it tries to run the (newly built FOR THE TARGET) fluid app, which of course fails. - Edit the build files to point to the host fluid app and make the test folder again. (This is set in the Makefile in the test folder, and I seem to always forget to update it when I do my builds...) - Success! (Hopefully!) SELEX Galileo Ltd 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

