Hi all, I am trying to use Marshalling for the first time on Mono and the runtime doesn't seem to be able to find my C library.
I know the library (libhighgui) exists because I can find it like so:
[EMAIL PROTECTED] src $ ls /usr/local/lib/libhigh*
/usr/local/lib/libhighgui-0.9.so.5 /usr/local/lib/libhighgui.la
/usr/local/lib/libhighgui-0.9.so.5.0.0 /usr/local/lib/libhighgui.so
[EMAIL PROTECTED] src $
My ld_library_path seems to be correct
[EMAIL PROTECTED] src $ echo $LD_LIBRARY_PATH
:/usr/local/wine20030813/lib:/usr/lib64/evolution/1.4:/usr/lib64/evolution/1.4:/usr/local/lib
My C# code looks like this:
// Highgui stuff
[DllImport("highgui")]
private static extern System.IntPtr cvLoadImage(string filename, int
iscolor);
But when I run my app I get the following error:
[EMAIL PROTECTED] src $ mono CvImage.exe
CvImage test application
=============================
Unhandled Exception: System.DllNotFoundException: highgui
in <0x000bf> (wrapper managed-to-native) Slam.CvImage:cvLoadImage
(string,int)
in <0x00068> Slam.CvImage:.ctor (string,bool)
in <0x00069> Slam.MainClass:Main (string[])
[EMAIL PROTECTED] src $
I am using mono version 1.1.3 on an amd64 platform.
Anybody have any ideas?
Cheers,
James
--
It's 5.50 a.m.... Do you know where your stack pointer is ?
signature.asc
Description: This is a digitally signed message part
