[Gtk-sharp-list] Compiling gtk-sharp 2.10 svn on Windows
Milton Pividori
miltondp at gmail.com
Wed Jun 6 14:07:08 EDT 2007
Hi. I checked out the latest revision of gtk-sharp 2.10 from here:
http://anonsvn.mono-project.com/source/trunk/gtk-sharp/
I am using Windows XP SP2, the .NET Framework 2.0 compiler, Gtk+ 2.10.11
dev (from http://gladewin32.sf.net) and MinGW. I also checked out the
latest version of the gtk-sharp 2.10 installer for .NET from the
OpenVista repository here:
https://openvista.svn.sourceforge.net/svnroot/openvista/gtksharp-win32-installer/branches/2.10.0_r75660/
I can compile gtk-sharp, but I have problems when I use the generated
assemblies. When I copy them (gtk-sharp.dll, policy*, glib-sharp.dll,
*glue.dll, etc) into my app's directory, and I try to run it and:
Unhandled Exception: System.AccessViolationException: Attempted to read
or write protected memory. This is often an indication that other memory
is corrupt.
at Glade.XML.SignalConnector.glade_xml_signal_autoconnect_full(IntPtr
raw, RawXMLConnectFunc func, IntPtr user_data)
at Glade.XML.SignalConnector.Autoconnect()
at Glade.XML.Autoconnect(Object handler)
at ZaspeSharp.GUI.MainWindow..ctor()
at ZaspeSharp.GUI.MainWindow.Main(String[] args)
I've got a similar error when I use the Novell Gtk# installer (version
2.8). Looking in the XML.cs file, I found:
[DllImport("libglade-2.0-0.dll")]
static extern void glade_xml_signal_autoconnect_full (IntPtr raw,
RawXMLConnectFunc func, IntPtr user_data);
"libglade-2.0.0.dll" comes with the Gtk+ 2.10.11 dev package for Windows
I've installed. Is there a problem with it? I've also try with Gtk+
2.10.7, same error.
Well, to compile gtk-sharp I did:
$ ./bootstrap-2.10
$ make
Then I copy *.dll files (policy*.dll also), and I generate the [gtk|
glib... etc]sharpglue-2.dll files with "make -f makefile.win32" (dllwrap
warning here: "no export definition file provided. Creating one,
but...").
I need to use gtk-sharp 2.10 on Windows (and gnome-sharp, but that
another thing). I know about a problem with it (version 2.10) on this
SO, but the svn version I am using, I heard, has the fix.
Any help?
--
Milton Pividori
Blog: http://www.miltonpividori.com.ar
Jabber ID: milton.pividori at jabberes.org
GnuPG Public Key: gpg --keyserver wwwkeys.pgp.net --recv-key 0x663C185C
More information about the Gtk-sharp-list
mailing list