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

Doug Blank doug.blank at gmail.com
Sat Mar 10 19:33:00 UTC 2012


On Sat, Mar 10, 2012 at 10:03 AM, robwilkens at gmail.com
<robwilkens at gmail.com> wrote:
> On 03/10/2012 07:04 AM, Doug Blank wrote:
>>
>> 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
>
> What I found was this: I tried debugging the one built in MonoDevelop for
> Linux and it couldn't find (in Windows without mono installed but with
> monodevelop installed) Mono.Posix version 4.0.0.0 .. The one i built in
> MonoDevelop for Windows did not look for Mono.Posix as far as I can tell.

That sounds like that could be the problem. I wonder if you put the
Mono.Posix.dll in the directory with the .exe if the version built on
Linux would work on Windows too, as it would find Mono.Posix?

I suspect that this might be caused by using the Gtk form designer
which will automatically use translations for the text in the form?
Perhaps if you check the do not translate text for the form, then it
won't need Mono.Posix? See:

Menu -> Project -> Project Options -> Gtk#  Settings -> [ ] Enable
gettext support

Hope that helps,

-Doug

> Is Mono.Posix linking a specific feature of MonoDevelop for Linux?  Or is
> that a mono compiler issue?  OR did i mis-check a checkbox somewhere?
>
> If I want to build in linux, do i need to somehow include that for Windows
> users?
>
> It seems like it shouldn't be necessary if the windows version without it
> runs on both Windows and Linux.
>
> Thanks in advance for any guidance.
> Rob


More information about the Monodevelop-list mailing list