[Mono-list] About: Using Mono to compile for .NET Compact Framework(PocketPC)

Raúl Romero mono@bgta.net
Thu, 15 Jul 2004 11:57:08 +0200


One Tip:

I was trying to use gmcs (ALPHA SOFTWARE: Mono C# Compiler 0.96.0.0 for
Generics), I had get this results:

gmcs -t:winexe /noconfig /nostdlib -r:mscorlib.dll -r:system.dll -r:
system.windows.forms.dll -r:system.drawing.dll -L libs gui.cs
ALPHA SOFTWARE: Mono C# Compiler 0.96.0.0 for Generics

** (/usr/lib/mono/2.0/gmcs.exe:4223): WARNING **: Could not find
assembly System.Drawing, references
from /home/raul/Desarrollo/PPC/libs/system.windows.forms.dll
(assemblyref_index=2)
     Major/Minor: 1,0
     Build:       5000,0
     Token:       969db8053d3322ac

error CS0006: Cannot find assembly `system.windows.forms.dll'
Log:

Compilation failed: 1 error(s), 0 warnings


Some Suggestion?
On mié, 2004-07-14 at 09:39 +0200, Raúl Romero wrote:
> Good day people!
> 
> In order to compile PocketPC .NET binaries using Mono 1.0, I can extract
> and rename the .NET dlls from the Compact
> Framework's .cab for ARM and compile with /nostdlib using the procedure
> documented at:
> 
> - http://dotnetdn.com/without-visual-studio/
> - http://www.ward.nu/computer/teletekst/compile.html
> - (Last DLL Rename table) http://wiki.sharpdevelop.net/default.aspx/SharpDevelop.CompactFrameworkDevelopment?diff=y
> 
> However, trying this with Mono on GNU/Linux with a command like:
> 
> mcs -r:libs/system.dll -r:libs/mscorlib.dll -r:libs/system.drawing.dll gui.cs /nostdlib /noconfig
> 
> OR
> 
> mcs -lib:./libs/ -r:system.dll -r:mscorlib.dll -r:system.drawing.dll gui.cs /nostdlib /noconfig
> 
> 
> 
> fails with tons of 'not defined' errors for core elements like "error
> CS0518: The predefined type `System.Void' is not defined", like:
> 
> error CS0518: The predefined type `System.Object' is not defined
> error CS0518: The predefined type `System.ValueType' is not defined
> error CS0518: The predefined type `System.Attribute' is not defined
> error CS0518: The predefined type `System.IComparable' is not defined
> 
> 
> 
> Is there a
> way to do this with Mono currently, or anyone have an idea as to what
> code changes would be required?
> 
> 
> I was reading this posts(and all the replys) and links:
> 
> http://www.mail-archive.com/mono-list@lists.ximian.com/msg04272.html
> http://www.mail-archive.com/mono-list@lists.ximian.com/msg03360.html
> http://lists.ximian.com/archives/public/mono-list/2003-August/015210.html
> http://archive.neotonic.com/archive/mono-list/msg/12540
> 
> 
> Best Regards
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>