All of lore.kernel.org
 help / color / mirror / Atom feed
* dllmap config for a Mono app
@ 2017-06-08  6:41 Craig McQueen
  2017-06-08 14:08 ` Joshua Watt
  2017-06-08 17:59 ` Khem Raj
  0 siblings, 2 replies; 4+ messages in thread
From: Craig McQueen @ 2017-06-08  6:41 UTC (permalink / raw)
  To: yocto@yoctoproject.org

I have a Mono app that uses DllImport to load some functions from libraries. The app can't find the libraries unless I create a Mono config file containing dllmap lines to map the library's plain "DLL" name (e.g. "foo") to the real name of the .so file (e.g. "libfoo.so.4").

* What would be a good way in the .bb recipe to automatically create the required Mono config file? It would need to find the "real" names of the library files from the library(s) build output. So it would DEPENDS on the library(s).

* Is it better to create a local config file, or write it into /etc/mono/config? (My Mono app has the DllImports in a compiled DLL, and so far I've found that I need to create a local MyDll.dll.config file; making a MyApp.exe.config file doesn't work.)

* Alternatively, the Mono app can find the libraries if plain libfoo.so symbolic link to libfoo.so.4 exists in the rootfs. But this symbolic link normally is only in the libfoo-dev package, not the libfoo package. Is there some reasonable way to create and install the libfoo.so symbolic links on the rootfs?

-- 
Craig McQueen



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-09  2:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08  6:41 dllmap config for a Mono app Craig McQueen
2017-06-08 14:08 ` Joshua Watt
2017-06-09  2:35   ` Craig McQueen
2017-06-08 17:59 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.