[Mono-list] xcopy deploy of unmanaged libraries doesn't work

Paolo Molaro lupus@ximian.com
Mon, 2 Jun 2003 13:26:44 +0200

On 05/29/03 J. Perkins wrote:
> I'm having another go at porting my latest game code to Mono. I have 
> found that the .NET principal of "xcopy deploy" doesn't work when your 
> project includes unmanaged libraries. P/Invoke doesn't find the 
> libraries when they are installed in the same directory as the assembly. 
>  I am working around it for now by setting LD_LIBRARY_PATH to the 
> application directory, but this really isn't acceptable in the long 
> term. Is this a bug that should be reported, or a design decision that I 
> should work around?

We may hack around the issue by explicitly loading from a file in the
app directory, but you should know that not all the systems out there
allow to dlopen a library directly from a filename, they will always
look it up in the standard directories (this is assuming xcopy deploy is
the right thing to do on unixy systems...).


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better