[Mono-list] Building Mono on Windows

Giles Thomas giles.thomas at resolversystems.com
Tue May 25 07:17:48 EDT 2010


Hi Robert,

Thanks for the answers; my replies inline below.

Robert Jordan wrote:
> The bad news first: the Windows build is broken at present.
>   
Ah, OK.  I guess it's still worth trying to get my build to fail in the 
"right" way, though.

>> Here's the error message:
>>
>> ----------
>> make[8]: Entering directory `/usr/src/mono/mcs/tools/gacutil'
>> Creating ../../build/deps/gacutil.exe.response ...
>> MCS     [basic] gacutil.exe
>> The assembly mscorlib.dll was not found or could not be loaded.
>> It should have been installed in the
>> `C:\cygwin\usr\src\mono\mono\mono\mini\lib\
>> mono\2.0\mscorlib.dll' directory.
>> make[8]: *** [../../class/lib/basic/gacutil.exe] Error 1
>>     
>
> This probably a problem on your side. Do you have an official
> Mono installation in your path as suggested by Shana's docs?
>   
I do.  I installed the most recent installer (I think 
mono-2.6.4-gktshartp-2.12.10-win43-3.exe) to the default location, and 
have the following in my .bashrc:

PATH=".:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program 
Files/Mono-2.6.4/bin"
PKG_CONFIG_PATH=".:/lib/pkgconfig:/cygdrive/c/Program 
Files/Mono-2.6.4/lib/pkgconfig"
LD_LIBRARY_PATH=".:/usr/local/lib:/usr/lib:/lib:/cygdrive/c/Program 
Files/Mono-2.6.4/lib"
export PATH PKG_CONFIG_PATH LD_LIBRARY_PATH

Typing "mono --version" from the Cygwin bash prompt works, so I'm pretty 
sure that at least the PATH is OK. 

It looks to me like it's trying to find a version that was installed in 
the build tree, though -- or is this a fallback of some kind if it can't 
find a properly installed version?

>> I'm following the instructions on this excellent (but, I think, slightly
>> out of date) blog post:
>> <http://shana.worldofcoding.com/en/mono_cygwin_tutorial.html>, which is
>> linked from the Mono website.
>>     
>
> They are still relevant (modulo version numbers).
>   
OK.  Is Shana active on this list, or would it be worth me dropping her 
an email with a list of the Cygwin packages that might be worth adding 
to the list on the blog post, and suggesting the update to the SVN 
repository URLs?

> This special Make version is still required.
>   
Thanks, glad I didn't decide I knew better than the instructions, then...

> The CRLF issue is probably caused by a Tortoise SVN checkout.
> You're supposed to use cygwin's svn and also take care to mount
> cygwin's "drives" in binary mode (it's the default, though).
>   
OK, thanks -- another one I could suggest to Shana, then -- she suggests 
using the standard command-line win32 version and TortoiseSVN as options. 

> Another solution is to autogen with --enable-nls=no or --disable-nls.
>   
OK.

> You're not alone on the journey to nowhere :) I'll post a
> status update if I manage to fix the build.
>   
I'm glad to know it :-)  I'm happy to help if there's anything that 
someone with no knowledge of the codebase might be usefully able to do...


Cheers,

Giles
-- 

Giles Thomas
giles.thomas at resolversystems.com
+44 (0) 20 3051 2751

17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number 5467329.
Registered address: 843 Finchley Road, London NW11 8NA, UK


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100525/21e14413/attachment.html 


More information about the Mono-list mailing list