[Gtk-sharp-list] Can mcs compile programs against gtk-sharp?

Michael Torrie torriem@cs.byu.edu
06 Apr 2002 11:02:00 -0700


--=-XL952MW1gP8Jt+/vIGQq
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2002-04-06 at 09:21, Mike Kestner wrote:
> Gtk.Window is defined in gtk-sharp.dll, which pinvokes to
> libgtk-x11-2.0.so on linux.  So you need to -r gtk-sharp.dll.  The
> binding dlls don't build yet on linux, so you'll need to build gtk-sharp
> from cvs on win32 in order to try anything on linux yet.
Is this a limitation in the current state of the compiler?  Can mcs even
do it on windows or is csc still required?

I do have the dlls compiled on windows.  The gtk-hello-world.exe program
now runs on linux.  However when I recompile the source code (the exact
same source code that gtk-hello-world.exe was compiled from), I get an
error that says Gtk.Window does not contain a "DeleteEvent" member.=20
This is clearly not true, since I can see the DeleteEvent in the source
code for gtksharp.  It's right there defined as an event.  Perhaps mcs
cannot compile this stuff yet.  I'll compile with csc, I suppose.

> If you are asking if there will be a System.Windows.Forms implementation
> based on Gtk#, the answer is yes, eventually.  Windows apps that don't
> mess around with window handles and pinvoke to the win32api will
> hopefully be portable between win32 and mono/linux. =20
>=20
> Gtk# is unreleased, pre-alpha vaporware.  As I said above, the binding
> does not compile on linux.  A win32 compiled Gtk# hello world app will
> almost run on linux.  The window shows, but the app segfaults when the
> window is closed after delete event processing and gtk main loop exit.
Pretty good for vaporware.  Looking good so far.

Michael

>=20
> Mike

--=-XL952MW1gP8Jt+/vIGQq
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8rzgY9bTmAa2MOJ8RAml6AKCbczlUsG0MkEMeMPvLiiN2qQ5//gCeNS65
3fp2a/Lz8AK5oxL+I/ZP5R0=
=f0Q1
-----END PGP SIGNATURE-----

--=-XL952MW1gP8Jt+/vIGQq--