[Mono-list] DLLMapping for ASP.NET based projects
amc1999 at gmail.com
Thu Aug 30 09:29:11 EDT 2007
1. try full name and full path to "real" lib file, not to soft link
(if it was).
i mean target="/home/me/xsp/site/bin/libsqlite3.dylib.1.2.3"
2. you can see what exact lib name(s) mono is looking for by using
MONO_LOG_LEVEL=debug as described in
sorry, i don't have apple around and can not be more specific.
On 8/30/07, R. Tyler Ballance <tyler at monkeypox.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Aug 29, 2007, at 7:08 AM, Amc Gmail wrote:
> > in our case:
> > 1. we have api.dll which doing some p/invoke from our libapi.so
> > 2. in api.cs source code DllImport look like this:
> > [DllImport("api")]
> > private extern static int fnc(ref IntPtr io_ptr);
> > 3. in web-site/bin i have api.dll and api.dll.config which is:
> > <?xml version="1.0" encoding="utf-8"?>
> > <configuration>
> > <!--
> > to debug under xsp: target="../build/libapi.so.1.0.1"
> > to run under mod_mono: target="/path/to/our/lib/libapi.so.
> > 1.0.1"
> > to use /usr/lib default: target="api"
> > -->
> > <dllmap dll="api" target="/path/to/our/lib/libapi.so.1.0.1" />
> > </configuration>
> > as you can see i am not changing mono standard dll mappings which you
> > may want to, but hope my sample would help somehow.
> > good luck :)
> Yeah, tried this and it still doesn't work :/
> My config is:
> <?xml version="1.0" encoding="utf-8"?>
> <dllmap target="./bin/libsqlite3.dylib" dll="sqlite3"/>
> Where ./bin/libsqlite3.dylib is in my xsproot directory's bin directory.
> Still no dice :-/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
> -----END PGP SIGNATURE-----
More information about the Mono-list