Andoni Morales | 13 Oct 21:48

Dll not found when deploying a mono app into a different machine

Hi,

I'm having a very strange problem on Windows....
I've created a multimedia player based on GStreamer an Gtk that runs both on Windows and Linux. The GStreamer backend is written in C and wrapped to C# using the GAPI tools, importing my own dll called libcesarplayer.dll.
I compile and link libcesaplayer.dll on windows (I've tried both Mingw and MSVC) and all works well.
But.... If I try to run my app in my laptop, for example, I got a DllNotFoundException. So, it just works in the computer I used to compile libcesarplayer.dll.
Do I have to compile it in a special way?
Any suggestion?

Thanks
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Paolo Molaro | 15 Oct 16:51

Re: Dll not found when deploying a mono app into a different machine

On 10/13/08 Andoni Morales wrote:
> I'm having a very strange problem on Windows....
> I've created a multimedia player based on GStreamer an Gtk that runs both on
> Windows and Linux. The GStreamer backend is written in C and wrapped to C#
> using the GAPI tools, importing my own dll called libcesarplayer.dll.
> I compile and link libcesaplayer.dll on windows (I've tried both Mingw and
> MSVC) and all works well.
> But.... If I try to run my app in my laptop, for example, I got a
> DllNotFoundException. So, it just works in the computer I used to compile
> libcesarplayer.dll.
> Do I have to compile it in a special way?

It's likely that the library depends on another library that you have
installed and that you didn't copy (or you use a windows binary on a
linux system, who knows, you provide too few details).
You can run with:
	MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll" mono yourprogram.exe
as detailed in the man page to see what error might happen when loading
your library.

lupus

--

-- 
-----------------------------------------------------------------
lupus <at> debian.org                                     debian/rules
lupus <at> ximian.com                             Monkeys do it better

Gmane