Hi all,
Ok I have the first part of my challenge solved.

On Sun, 2005-02-13 at 22:23, James Fitzsimons wrote:
> > See if specifying the path to the 64 bit version when doing g_module_open 
> > will let you open it.
> I tired this just out of interest changing the c test program to look like 
> this:
> #include <gmodule.h>
> 
> int main()
> {
>         GModule *mod;
>         mod = g_module_open("/lib64/libncurses.so.5.4",
> G_MODULE_BIND_LAZY);
>         if (mod == NULL)
>                 printf("error: %s\n", g_module_error ());
>         else
>                 printf("ok: %p\n", mod);
>         return 0;
> }
> 
> now the output:
> [EMAIL PROTECTED] src $ ./a.out 
> ok: 0x5022e0
Once I got put onto the whole gmodule thing by Peter I thought well why
not try reinstalling gmodule? After rebuilding/installing gmodule the
Curses example now works! Yay ;) 
All I can think is it was something to do with glib not liking being
compiled with gcc 3.4.3, as this time I rebuilt it using gcc 3.3.4 and
all is good.

However now that I am (reasonably) sure that P/Invoke is working
correctly I still can't use my target library libopencv.so. When trying
to load it I get the following errors:
Mono-INFO: DllImport loading: 'libopencv'.
Mono-INFO: DllImport error loading library '/usr/local/lib/libopencv.so:
undefined symbol: __gxx_personality_v0'.

(CvImage.exe:8000): Mono-WARNING **: DllImport unable to load library
'/usr/local/lib/libopencv.so: undefined symbol: __gxx_personality_v0'.

Unhandled Exception: System.DllNotFoundException: opencv

Now, I am aware that this has something to do with libstdc++, and I
definately have that installed, but I don't know what to try next.

Any clues would be greatly appreciated.
Cheers,
James

-- 
It's 5.50 a.m.... Do you know where your stack pointer is ?

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to