[Mono-winforms-list] SWF on Debian + Screenshots

Thomas Fritzsche tf@noto.de
Sun, 23 Jan 2005 13:26:30 +0100


Hi Mono-Folks,

good work mono-hackers! I have got the new managed swf running on the
latest Debian unstable.
I installed it completely local (without root account).

To avoid typing long path names I simply use:
--------------------
#!/bin/sh
target=/home/thomas/mono/target
export LD_LIBRARY_PATH=$target/lib:$LD_LIBRARY_PATH
export PATH=$target/bin:$PATH
--------------------

For compiling mono I used this:
http://www.all-the-johnsons.co.uk/mono/mono-compiling.html

Only some steps didn't work for me:

Download of the svn / cvs source with
http://www.all-the-johnsons.co.uk/mono/monoupdater.sh
only worked for the mono-source but didn't work e.g. for cairo.

I downloaded the latest cairo libpixman manually from cvs but it didn't
compile on my system. 
So I tried the latest snapshot 0.3.0 / 21-01-2005 from
http://cairographics.org/snapshots/ 
and this worked.

After this I tried to install libgdiplus but this also didn't compile.
For some reasons I missed some includes src/gdip.h.
I added:
----------------
#include <fontconfig/fontconfig.h>
#include <ft2build.h>
#include FT_FREETYPE_H
----------------
after this it compiled a few more files but stopped because of some
warnings. I looked into this and because the warnings looked hamless I
removed the -Werror from the Makefile. Thats it!

After this step I compiled mono. It looks like 
"make monolite-bootstrap" don't work any more but a simple make did the
trick.

I then tried some examples from the dotgnu-project 
( http://savannah.gnu.org/cgi-bin/viewcvs/dotgnu-pnet/pnetlib/samples/forms/ )
and 2 example worked. Here the Screenshots:
http://www.noto.de/mono/Bildschirmfoto-Forms%20Hello.png
http://www.noto.de/mono/Bildschirmfoto-RadioButtons%20example.png

There is a big test program (FormsTest.cs) that I could compile (after
deleting some parts of the UpDownTest) but  NullReferenceException is
raised after the start:
--------------------------------------------------
done detecting keyboard:  German keyboard layout
#region #line XplatUI Constructor called

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0xab8f1> (wrapper remoting-invoke-with-check)
System.Drawing.Font:ToHfont ()
in <0x00039> (wrapper remoting-invoke-with-check)
System.Drawing.Font:ToHfont ()
in <0x0001f> System.Windows.Forms.XplatUIX11:GetFontMetrics
(System.Drawing.Graphics,System.Drawing.Font,int&,int&)
in <0x0001e> System.Windows.Forms.XplatUI:GetFontMetrics
(System.Drawing.Graphics,System.Drawing.Font,int&,int&)
in <0x00182> System.Windows.Forms.Line:RecalculateLine
(System.Drawing.Graphics)
in <0x0029a> System.Windows.Forms.Document:RecalculateDocument
(System.Drawing.Graphics,int,int,bool)
in <0x0001a> System.Windows.Forms.Document:RecalculateDocument
(System.Drawing.Graphics)
in <0x002a1> System.Windows.Forms.TextBoxBase:set_Text (string)
in <0x0000d> System.Windows.Forms.TextBox:set_Text (string)
in <0x00643> FormsTest.FormsTest:AddTextBoxTest
(System.Windows.Forms.Control)
in <0x00045> (wrapper remoting-invoke-with-check)
FormsTest.FormsTest:AddTextBoxTest (System.Windows.Forms.Control)
in <0x00e99> FormsTest.FormsTest:.ctor ()
in <0x00021> (wrapper remoting-invoke-with-check)
FormsTest.FormsTest:.ctor ()
in <0x0001d> FormsTest.FormsTest:Main (string[])
-------------------------------------------------

Cheers,
 Thomas