Initially I wanted to cross compile from linux to windows, and the
support is theoretically there, but in practise autotools has never
supported windows well. However, Fedora 11 will have native support to
cross-compile to windows with the following lines:
yum install mingw32-*
./configure --host=i686-pc-mingw32
make
http://lwn.net/Articles/307732/
http://fedoraproject.org/wiki/MinGW
Cheers,
Its been because the build systems are
very different. And the only one that works well on both, cmake, is
not nearly as common as it should be.
A bit off topic: having never tried it, I've always thought SCons
should rule the world -- but almost no one who works with it seems to
agree. Witness KDE, SL, and anywhere else I google. Do you know why
that is?
Cheers,
Well reX hasn't decided on a build tool, and I think the choices are
cmake and scons. Want to be a scons advocate? :)
Cheers,
Well reX hasn't decided on a build tool, and I think the choices are
cmake and scons. Want to be a scons advocate? :)
well then I think I can save you some time. I've seen this argument
countless times when both die-hard Windows and 'nix developers were
working on the same project, and inevitably, every single time, in the
end you have two build systems, one MSVC-based for windows and one
GNU-based for unix. Might as well cut to the chase and accept that
fact at the start. At least you can insist that directory structure
be identical. Just put the .sln files in a separate folder is all I
ask.
That's for C++ -- .net and Java are a different matter.
You may also want to have a look at waf[1]. From the website:
Waf is a Python-based framework for configuring, compiling and installing
applications. It derives from the concepts of other build tools such as Scons,
Autotools, CMake or Ant.
It doesn't specifically mention cross-platform compilation as a feature, but
searching for "windows" in all issues in their bugtracker turns up a few.
Mike
Actually cmake does a good job of generating both unix makefiles and
VS sln files. It's used by KDE and SL viewer.
Have yet to use scons or waf.
Cheers,