[Mono-devel-list] Build errors System.Drawing.dll
Richard Thombs
mono at stony.org
Mon Nov 3 19:23:05 EST 2003
I had the same problem, and while I am no expert about unsafe code and
the 'fixed' statement, there is a simple tweak to at least make it
compile:
Index: JPEGCodec.cs
===================================================================
RCS file:
/mono/mcs/class/System.Drawing/System.Drawing.Imaging/JPEGCodec.cs,v
retrieving revision 1.10
diff -u -r1.10 JPEGCodec.cs
--- JPEGCodec.cs 24 Oct 2003 05:05:29 -0000 1.10
+++ JPEGCodec.cs 4 Nov 2003 00:20:30 -0000
@@ -704,7 +704,7 @@
// Setup the pointers
//
unsafe {
- fixed (void **p =
&outbuf.JSAMPLE0){
+ void **p = &outbuf.JSAMPLE0;{
for (int i = 0; i <
rec_outbuf_height; i++){
p [i] = start;
start += stride;
-----Original Message-----
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com] On Behalf Of DavidM
Sent: Monday, November 03, 2003 12:36 PM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-devel-list] Build errors System.Drawing.dll
I am trying to build everything on cygwin under XP.
It stops quite early with one of the following errors depending on
whether I am using csc or mcs.
First the mcs error:
Creating ../../build/deps/System.Drawing.dll.response ...
mcs -d:NET_1_1 -g /noconfig /unsafe /define:DECLARE_CDECL_DELEGATES
/r:corlib.
dll /r:System.dll /nowarn:649 /nowarn:169 /target:library
/out:../../class/lib/S ystem.Drawing.dll
@../../build/deps/System.Drawing.dll.response
make[2]: *** [../../class/lib/System.Drawing.dll] Error 255
Now the csc error:
make[2]: Entering directory `/cygdrive/c/mono/mcs/class/System.Drawing'
csc.exe /lib:../../class/lib /nologo /optimize -d:NET_1_1 /debug+
/debug:full / noconfig /unsafe /define:DECLARE_CDECL_DELEGATES
/r:mscorlib.dll /r:System.dll / nowarn:649 /nowarn:169 /target:library
/out:../../class/lib/System.Drawing.dll @
../../build/deps/System.Drawing.dll.response
System.Drawing.Drawing2D\GraphicsPathIterator.cs(19,26): warning CS0628:
'System.Drawing.Drawing2D.GraphicsPathIterator.path' : new
protected
member declared in sealed class
System.Drawing.Imaging\BmpCodec.cs(185,4): warning CS0168: The variable
'e' is
declared but never used
System.Drawing.Imaging\JPEGCodec.cs(710,24): error CS0213: You do not
need to
use the fixed statement to take the address of an already fixed
expression
make[2]: *** [../../class/lib/System.Drawing.dll] Error 1
How do I get this compiled?
Thanks, David
--------------------------------------
Protect yourself from spam,
use http://sneakemail.com
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list