[MonoDevelop] Cross Platform Issues - Dummy program - Win/Linux
Nicolas Krzywinski
opensource at site7even.de
Sat Mar 10 18:03:10 UTC 2012
Hi Rob,
not sure if I can help .. but I will try to give some hints as I try to support all platforms with my Mono Application.
To be able to run it on all systems I have to compile three different variations:
- a .NET 4/Mono CLI 4.0 compile
- a .NET 2/Mono CLI 2.0 compile
- a .NET 2/Mono CLI 2.0 stripped x86 version for Windows support
Due to no easy way of compiling .NET 2/Mono CLI 2.0 on newer Ubuntu systems, I am forced to compile .NET 4/Mono CLI 4.0 instead. Then a VirtualBox Ubuntu Lucid machine takes over the action for compiling a .NET 2/Mono CLI 2.0 variation to be compatible with older systems.
The same machine does the stripped compile for Windows support as well. I have to remove via compiler directives some libnotify stuff, because this does not exist on Windows - but this is not what may correspond to your problem because it is specific to my application.
But it is important to compile for x86 platform for Windows as well, because of GTK#! (no shebang meant here *lol*)
And I have to choose .NET 2/Mono CLI 2.0 for Windows as well, because a .NET 4 variant does not work for I don't know why reasons, maybe GTK# as well...
Here on my main development system (Linux Mint 12 - based on Ubuntu 11.10 Oneiric) I work with Monodevelop 2.6 but on my VirtualBox Lucid compile machine Monodevelop 2.8.5 is installed, because luckily s. o. backported it for Lucid.
I am underlining this to confirm that .exe binaries compiled with Monodevelop 2.8.5 run without problems on Windows! ... at least under the conditions stated above.
Hope this helps, feel free to investigate my program which you can access via Subversion: svn://server7even.homeip.net/dsota (try again one day later if stupid DynDNS hat not updated correctly :D )
Alternatively you can download the binaries and the source code from here: http://www.nskcomputing.de/?section=dsota
Regards,
Nicolas
Am 10.03.2012, 01:45 Uhr, schrieb robwilkens at gmail.com <robwilkens at gmail.com>:
> 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
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
--
www.site7even.de | www.nskcomputing.de
More information about the Monodevelop-list
mailing list