[Mono-list] Mono and sqllite on OS X

Niklas Saers niklas@registrar.no
Sat, 22 Jan 2005 00:06:35 +0100


Thanks for the pointer, Kelly. With help from that one I added my 
translations to /sw/etc/mono/config. Now it works way better. :-)

(for the record, I added:
        <dllmap dll="sqlite" target="/sw/lib/libsqlite.dylib"/>
        <dllmap dll="libgdk_pixbuf-2.0-0" 
target="/sw/lib/libgdk_pixbuf-2.0.0.dylib"/>
)

Cheers

   Nik

Kelly Leahy wrote:

>Niklas,
>
>This is done with a .config file in the path to the
>.dll (the .NET class library assembly).  Create a file
>called xxx.dll.config where xxx is the base name of
>the .dll file (I think it was SqlLiteClient, I already
>deleted the other email, so I don't know).  This
>should be an xml file that has a dllmap element under
>the configuration element with the attributes 
>
>dll="...old dll name..." 
>and 
>target="...full path to new dll..."
>
>see 
>
>http://developerland.com/CSharpGeneral/COMInterop/198.aspx
>
>the section on Library Names refers to this
>functionality.
>
>Kelly
>
>--- Niklas Saers <niklas@registrar.no> wrote:
>
>  
>
>>Hi Thomas,
>>is there any way I can make it search /sw instead of
>>/usr/src? Any 
>>environment variables, perhaps? And is there any way
>>that I can make it 
>>use the dylib version or the aout version of the
>>file as those are the 
>>only ones made on OS X?
>>
>>Cheers
>>
>>    Nik
>>
>>Thomas Zoechling wrote:
>>
>>    
>>
>>>I suppose the problem here is that libsqlite is
>>>      
>>>
>>not a native mono 
>>    
>>
>>>library.
>>>Mono.Data.Sqlite... is just a wrapper around
>>>      
>>>
>>libsqlite.so , which has 
>>    
>>
>>>to remain in /usr/lib.
>>>      
>>>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list
>  
>