[MonoDevelop] Cross Platform Issues - Dummy program - Win/Linux

Doug Blank doug.blank at gmail.com
Sat Mar 10 12:04:22 UTC 2012


On Fri, Mar 9, 2012 at 7:45 PM, robwilkens at gmail.com
<robwilkens at gmail.com> wrote:
> Hi
>
> I built a very simple test program in monodevelop (gtk# application) which
> just has a vertical box and a label...
>
> I built it twice actually, once in monodevelop for Windows and once in
> Monodevelop for Linux (Ubuntu)..  Took about a minute and a half to figure
> out the first time i did it, and under 30 seconds the second time.
>
> The version i built on Linux Monodevelop will run fine on Linux, but when i
> run it in Windows (version: 8 Consumer Preview), it fails to run (i solved
> the first problem which is that gtk-sharp wasn't installed)-- It's not that
> it crashes now, it just doesn't display a window and as far as i can tell it
> dies as quick as it runs with no indication as to why.
>
> But the version i built in Windows Monodevelop (without mono, i believe)
> runs as an .exe in both Windows and Linux (from both systems i can run the
> .exe monodevelop built).
>
> Does this mean I have to use Windows to build my project?  Is this an issue
> most likely with monodevelop or more likely is it an issue with the mono
> compiler itself (versus the microsoft compiler, which monodevelop in windows
> probably uses).
>
> Again, I presume Windows has the gtk# prerequisites now because the gtk# app
> i built in Windows ran fine in Windows.
>
> Anyone here willing to lend a hand?  I am a monodevelop newbie, I have an
> app (for me only, will never see the light of day for anyone else, it would
> be useless) that i wrote in visual studio that i'd like to port to mono and
> gtk# to make it cross platform.
>
> -Rob

Rob, I have found the same thing: a Gtk exe built on Linux/Mac runs
fine on Linux/Mac but not on Windows, and a Gtk exe built on Windows
runs fine on all platforms. This seems to be a newer bug... it was not
this way with Mono 2.6.

This is a bit annoying, but not a show stopper. It just means that the
last step before making a version for all is that I re-compile it on
Windows (eg, run xbuild on Windows).

-Doug

> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list


More information about the Monodevelop-list mailing list