[Mono-dev] Mono Develop native menus on Mac OS X

Kris Ray kray at landmarkdigital.com
Thu Feb 19 13:30:22 EST 2009


It works.  You just need to add the following lines:

        <dllmap dll="libsvn_client-1.so.0" target="libsvn_client-1.dylib" />
        <dllmap dll="libapr-0.so.0" target="libapr-1.0.dylib" />

to this file:
/Library/Frameworks/Mono.framework/Home/etc/mono/config

I entered this bug:
https://bugzilla.novell.com/show_bug.cgi?id=477790

thanks,
Kris




-----Original Message-----
From: Rafael Teixeira [mailto:monoman at gmail.com]
Sent: Thu 2/19/2009 7:19 AM
To: Kris Ray
Cc: Alan McGovern; Miguel de Icaza; mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Mono Develop native menus on Mac OS X
 
Short answer: You need a per managed dll .config file.

http://www.mono-project.com/Interop_with_Native_Libraries#Library_Names is
particularly helpful.

Another exceprt from
http://www.mono-project.com/Interop_with_Native_Libraries

Note: Mono uses GLib to load libraries, and GLib has a bug on Mac OS X where
it doesn't use a .dylib extension, but instead uses the Unix .so extension.
While this should eventually be fixed, the current workaround is to write a
.config file which maps to the .dylib
file<http://www.mono-project.com/Interop_with_Native_Libraries#Library_Names>,
e.g.

 <configuration>
   <dllmap dll="mylib" target="mylib.dylib" />
 </configuration>



Hope it helps,

2009/2/19 Kris Ray <kray at landmarkdigital.com>

>  I tried to do it this way previously, but I think I was doing something
> wrong.  Is this dllmap option supposed to be in the application's config
> file or some sort of global mono config file.  Just let me know, and I'll
> test / submit the solution.
>
> thanks,
> Kris
>
>
>  ------------------------------
>  *From:* Alan McGovern [mailto:alan.mcgovern at gmail.com]
> *Sent:* Thu 2/19/2009 6:29 AM
> *To:* Kris Ray
> *Cc:* Miguel de Icaza; Joachim Ante; mono-devel-list at lists.ximian.com
>
> *Subject:* Re: [Mono-dev] Mono Develop native menus on Mac OS X
>
> Hey,
>
> That can be fixed by using a dllmap to reroute the native library to the
> correct one for macos. If you can create a patch to update the dllmap to
> pick up the correct libraries on MacOS and attach it to bugzilla, it might
> be possible to enable the SVN addin by default.
>
> http://www.mono-project.com/Config_DllMap
>
> Alan.
>
> 2009/2/19 Kris Ray <kray at landmarkdigital.com>
>
>>  That would be a great idea.  I use MonoDevelop primarily on Linux, but I
>> will also have to release Mac versions of our software.  Currently, Mac
>> monodevelop is a bit flaky.  Nothing major (beyond what was intentionally
>> removed), but it is very annoying at times.
>>
>> Also, it looks like the version control add-in should be included in the
>> MAc version.  It works fine - you just currently have to trick it into
>> working by creating symbolic links from fake libapr*.so and libsvn*.so files
>> to libapr*.dylib and libsvn*.dylib.
>>
>> thanks,
>> Kris
>>
>>
>> ------------------------------
>> *From:* mono-devel-list-bounces at lists.ximian.com on behalf of Miguel de
>> Icaza
>> *Sent:* Wed 2/18/2009 1:35 PM
>> *To:* Joachim Ante
>> *Cc:* mono-devel-list at lists.ximian.com
>> *Subject:* Re: [Mono-dev] Mono Develop native menus on Mac OS X
>>
>>   Hello,
>>
>> > Are you guys planning to switch to Mac OS X native menus and hotkeys
>> > that fit existing Mac applications for Mono Develop 2.0? (bug 367030)
>> >
>> > Maybe this seems like a minor nuisance, but I think that if we were
>> > to include Mono Develop in Unity with menus as they are now on Mac OS
>> > X instead of in the menu bar, our users would most likely fly to
>> > Denmark and put us on a pitchfork. It's actually a really serious
>> > issue for us. It's kind of cultural difference but Mac people care
>> > about this.
>>
>> Funny you would mention this, we were just discussing that at lunch
>> today, and we want to make this happen.
>>
>> My major concern is not as much the menu itself, but any other bugs that
>> we might not be aware of in MonoDevelop/Mac, since none of us use a Mac
>> as our main system.   We only hear reports through the grapevines and
>> would like to have more actionable data on what might be broken on MD.
>>
>> Maybe we should get a Mac for someone in the MonoDevelop team as their
>> main machine to make sure that all of these issues get fixed.
>>
>> Miguel
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good
intentions."
Augusten Burroughs



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090219/20f3fb91/attachment-0001.html 


More information about the Mono-devel-list mailing list