[Mono-dev] Building Mono on Windows 10 / Cygwin
alkpli at microsoft.com
Fri Nov 10 00:30:24 UTC 2017
Please ignore setup-solution.bat and classlibs.sln, they are from an experiment of building the class libraries with msbuild but that isn't done yet (the only supported way of building the class libraries is via make).
To your question:
You need to build the runtime _before_ building the class libraries. So you need to run the "/cygdrive/c/Program\ Files\ \(x86\)/MSBuild/14.0/Bin/MSBuild.exe ..." and "export MONO_EXECUTABLE=..." before running "make -j4".
You don't need to set PATH. Other than that it looks good ;)
> On 9 Nov 2017, at 19:16, R Zaghi <rzaghi at mosaic3dx.com> wrote:
> 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-22.214.171.124 # 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?
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
More information about the Mono-devel-list