[Mono-dev] Building Mono on Windows 10 / Cygwin

R Zaghi rzaghi at mosaic3dx.com
Thu Nov 9 18:16:14 UTC 2017


Hi folks

Can you please check if the sequence of commands that I am using to build
Mono on Windows 10 from source is correct?
Maybe the steps need changing or I am missing a step - I want to make sure
that I am doing it right.

Linux and Mac are easy but building on Windows is proving a little bit of a
challenge.


##  (01)  ##

$ cd mono && git checkout mono-5.4.1.4   # Latest tag when I doing this
$ make get-monolite-latest
$ export PREFIX=/cygdrive/c/mono_x64    # THIS PATH DOES NOT EXIST YET
$ export PATH=$PREFIX/bin:$PATH
$ ./autogen.sh --prefix=$PREFIX --host=x86_64-w64-mingw32 --disable-boehm #
THIS GOES WELL
...
# NO ISSUES SO FAR

$ export PATH=/cygdrive/c/mono/msvc/build/sgen/x64/bin/Release/:$PATH
$ export
MONO_EXECUTABLE=/cygdrive/c/mono/msvc/build/sgen/x64/bin/Release/mono-sgen.exe
  # I HAVE THE EXE BUT FROM AN OLD RUN OF MAKE
$ make -j4

$ cd msvc
$ setup-solution.bat  # I HAD TO CHANGE THIS TO REMOVE "-debug" AND THEN IT
WORKED WELL

$ /cygdrive/c/Program\ Files\ \(x86\)/MSBuild/14.0/Bin/MSBuild.exe
/p:PlatformToolset=v140 /p:Platform=x64 /p:Configuration=Release
/p:MONO_TARGET_GC=sgen msvc/mono.sln    # IS THIS ENOUGH OR DO I NEED TO
BUILD IN MSVS AS WELL ?


## (02) ##
I tried to open and build mono.sln in MSVS 2017 and build it.
Many of the projects including classlibs.sln build just fine, however many
of the projects are also failing.
I can see gen_*.cs file missing for example.
Am I missing something?


Thanks
Ramin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20171109/61652904/attachment.html>


More information about the Mono-devel-list mailing list