[Gtk-sharp-list] Compile gtk# under Windows
Fabio Zanetta
znt.fabio@virgilio.it
Tue, 5 Nov 2002 13:28:06 +0100
Hi all,
Thanx to Mike I understood how to compile gtk# under win2000, but there is a
problem.
For the docs, for the generator, makefile.win32 has to be renomined as
makefile.win32.bat and its content should be like this:
------
REM Make sure you have the .net framework path in
REM your PATH environment variable.
:all
:windows
csc.exe /unsafe /out:codegen.exe *.cs
:docs
------
Now, all work fine, but when I try to generate code for gtk-api.xml I get
this error and then it crashes... (I think I'm missing something)
---
307 types parsed.
Ellipsis parameter ctor in Object Widget
Ellipsis parameter ctor Ellipsis parameter ctor in Object Object
Ellipsis parameter ctor Name: colors Type: const-GdkColor* in callback
GtkColor
SelectionChangePaletteFunc **** Stubbing it out ****
Property has unknown Type PangoAttrList in Object Label
Eccezione non gestita: System.NullReferenceException: Riferimento a un
oggetto n
on impostato su un'istanza di oggetto.
at GtkSharp.Generation.ClassBase.GetSignalRecursively(String name,
Boolean ch
eck_self)
at GtkSharp.Generation.ClassBase.GetSignalRecursively(String name,
Boolean ch
eck_self)
at GtkSharp.Generation.ClassBase.GetSignalRecursively(String name,
Boolean ch
eck_self)
at GtkSharp.Generation.Signal.Generate(StreamWriter sw, ClassBase
implementor
, Boolean gen_docs)
at GtkSharp.Generation.ClassBase.GenSignals(StreamWriter sw, ClassBase
implem
entor, Boolean gen_docs)
at GtkSharp.Generation.ObjectGen.Generate()
at GtkSharp.Generation.CodeGenerator.Main(String[] args)
---
the same with gnome-api.xml:
---
78 types parsed.
creating ..\gnome\generated
Field has unknown Type ArtIRect
Funky type: GdkDrawable*bad signal DrawBackground in Object Canvas
Name: gdk_cap Type: GdkCapStyle in method CapGdkToArt in Object Canvas
Name: dither Type: GdkRgbDither in method SetDither in Object Canvas
rettype: GdkRgbDither method in Object Canvas
Name: gc Type: GdkGC* in method SetStippleOrigin in Object Canvas
Name: p_svp Type: ArtSVP** in method UpdateSvp in Object Canvas
Name: svp Type: ArtSVP* in method RenderSvp in Object Canvas
Name: p_svp Type: ArtSVP** in method UpdateSvpClip in Object Canvas
Name: uta Type: ArtUta* in method RequestRedrawUta in Object Canvas
Name: color Type: GdkColor* in method GetColor in Object Canvas
Name: gdk_join Type: GdkJoinStyle in method JoinGdkToArt in Object Canvas
Name: logo Type: GdkPixbuf* ctor in Object DruidPageStandard
Name: logo Type: GdkPixbuf* ctor Name: logo Type: GdkPixbuf* ctor Name:
color Ty
pe: GdkColor* in method SetBackground Property has unknown Type GdkPixbuf
in Ob
ject DruidPageStandard
Property has unknown Type GdkPixbuf in Object DruidPageStandard
Property has unknown Type GdkColor in Object DruidPageStandard
Property has unknown Type GdkColor in Object DruidPageStandard
Name: color Type: GdkColor* in method SetTitleForeground Name: color Type:
GdkCo
lor* in method SetLogoBackground Property has unknown Type GdkColor in
Object D
ruidPageStandard
Name: color Type: GdkColor* in method SetContentsBackground in Object
DruidPage
Standard
Name: item Type: GtkWidget* in method AppendItem in Object
DruidPageStandard
Property has unknown Type GtkEntry in Object FileEntry
Eccezione non gestita: System.NullReferenceException: Riferimento a un
oggetto n
on impostato su un'istanza di oggetto.
at GtkSharp.Generation.ObjectGen.Generate()
at GtkSharp.Generation.CodeGenerator.Main(String[] args)
---
Some ideas?
Thank you again