I really like FLTK, but wished that it was a little more cross-compiler
friendly. Recently I decided to look into this. Not being adept with
autotools, I decided to look at how to do it in CMake.
It was already working mostly. The only issues were getting it to use
the build host's fluid and making the backwards compatibility links
depend on the host and not the target.
So here's my patch against fltk-1.3.x-r7037, although I suspect that it
should work on other recent builds. Of course I tried carefully to not
break native builds.
This little project has definitely made me a CMake convert.
To cross-compile you will need a few other things.
1. A native install of FLTK on your build machine to provide fluid. The
compile will work without this if you don't build the test directory and
don't use fluid yourself.
2. A cross-compiler for your target machine, of course.
3. CMake 2.6 or later and a CMake toolchain file. The toolchain file is
quite simple and the CMake wiki has the details. This will also be used
to cross-compile your own projects if you use CMake for them as well.
Enjoy.
Mike
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk