Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick
brad

Cross-platform GUI stuff

With the release of mono 1.1.4 it now includes the Cairo-backed GDI+ on Linux, atop which System.Windows.Forms is then implemented.

So you can build one .exe GUI app and run it on Windows, Linux, and even OS X. Craziness.

I've been thinking about the dozen ways to do this lately:

-- Qt 4.x which is now GPL on Windows. Pro: Mac, Windows, Linux, no dependencies. Con: C++, commercial for mac.

-- Perl-Gtk. downside: no mac, tons of dependencies, no good installers

-- Gtk# on Windows: runtime, installers

So it seems that System.Windows.Forms on both Mono 1.1.4 on Linux and the native Windows .NET libraries are the best bet. And C# as a language is pretty reasonable.

Alternatives? Think end-user experience.

P.S. If you install mono 1.1.4 and play with this, be sure to add this to $SYSCONFDIR/mono/config:

<dllmap dll="gdiplus.dll" target="libgdiplus.so.0" />

And make sure /usr/local/lib is in your library search path (LD_LIBRARY_PATH or /etc/ld.so.conf)
Tags: perl, tech
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 41 comments