[Mono-dev] compile mono on windows

Robert Jordan robertj at gmx.net
Tue Apr 12 10:06:56 EDT 2011

On 12.04.2011 08:56, Frank Fuchs wrote:
> Hi,
> I think I finally manged to build mono (2.10.1) on windows using mingw-w64
> (TDM build) together with the patches from here:
> https://build.opensuse.org/package/files?package=mingw64-mono&project=windows%3Amingw%3Awin64.
> I did end up with a libmono-2.0.a and libmono-2.0.dll.
> What is missing in comparison to the distributed binaries is the contents of
> $MONO/lib/mono.
> Now I think I am a little confused about the mono/mcs compilation. As far as
> I understood it the missing stuff would be build when building mcs. Do I
> need a working (external) mono/mcs to build mcs? What does it take to build
> a working combination for 64 bit? Is it sufficient to have a 64 bit mono or
> does mcs need to take care about 32 vs. 64 bit as well? Could I just
> complete my build with the distributed mcs?

If you're building from a tarball, a basic mcs deployed with
the tarball will be used to build the mcs tree. This happens
automatically, unless you're suppressing the build with
--disable-mcs-build. If the build is still failing then
you should post the error messages, because otherwise we
can't help. If the error message is something like
"mcs is unusable", then your compiled runtime is most
likely broken.

If you're building from git, an existing mono installation
is required (its "bitness" is irrelevant).


More information about the Mono-devel-list mailing list