зеркало из https://github.com/mono/mail-archives.git
91 строка
3.7 KiB
HTML
91 строка
3.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] P/Invoke on amd64 was :Marshalling problems
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:jonpryor%40vt.edu">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="025668.html">
|
|
<LINK REL="Next" HREF="025672.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] P/Invoke on amd64 was :Marshalling problems
|
|
</H1>
|
|
<B>Jonathan Pryor
|
|
</B>
|
|
<A HREF="mailto:jonpryor%40vt.edu"
|
|
TITLE="[Mono-list] P/Invoke on amd64 was :Marshalling problems">jonpryor@vt.edu
|
|
</A><BR>
|
|
<I>Sat, 12 Feb 2005 11:47:42 -0500</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="025668.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025672.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25671">[ date ]</a>
|
|
<a href="thread.html#25671">[ thread ]</a>
|
|
<a href="subject.html#25671">[ subject ]</a>
|
|
<a href="author.html#25671">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>On Sat, 2005-02-12 at 15:18 +0000, James Fitzsimons wrote:
|
|
><i> Hi Jonathan,
|
|
</I>><i>
|
|
</I>><i> On Sat, 2005-02-12 at 15:07, Jonathan Pryor wrote:
|
|
</I>><i> > > > Unhandled Exception: System.DllNotFoundException: highgui
|
|
</I>><i> > > > in <0x000bf> (wrapper managed-to-native) Slam.CvImage:cvLoadImage
|
|
</I>><i> > > > (string,int)
|
|
</I>><i> > > > in <0x00068> Slam.CvImage:.ctor (string,bool)
|
|
</I>><i> > > > in <0x00069> Slam.MainClass:Main (string[])
|
|
</I>><i> >
|
|
</I>><i> > Silly question, but where is libhighgui.so installed? IIRC, 64-bit apps
|
|
</I>><i> > need to have their libraries in /lib64 or /usr/lib64. Is this where
|
|
</I>><i> > libhighgui.so is located?
|
|
</I>><i> libhighgui.so is located in /usr/local/lib. This should be fine however
|
|
</I>><i> as according to this <A HREF="http://www.jprl.com/interop.html#library-linux">http://www.jprl.com/interop.html#library-linux</A> if
|
|
</I>><i> your target library is in /etc/ld.so.cache P/Invoke should find it.
|
|
</I>
|
|
I know what it says; I wrote it. I also know that I have virtually zero
|
|
knowledge or experience with mixed 64-bit/32-bit platforms, which
|
|
Linux/Amd64 is. Consequently, my guide is somewhat lacking, if only
|
|
because I don't know everything. :-)
|
|
|
|
I have heard that there are /lib64 directories that are searched for 64-
|
|
bit libraries, but that's about it. Not having an AMD64 platform of my
|
|
own, it's hard to test for anything else.
|
|
|
|
So as an experiment, try writing a C program which uses that library,
|
|
and compile/link with the 64-bit GCC (whatever that may be named), and
|
|
run your C program. If this fails, which I suspect it will, you will
|
|
know why Mono can't find your library. :-)
|
|
|
|
Then, you can tell us what it takes to find the library, I can update my
|
|
guide, and everyone can be happy. :-)
|
|
|
|
- Jon
|
|
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="025668.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025672.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25671">[ date ]</a>
|
|
<a href="thread.html#25671">[ thread ]</a>
|
|
<a href="subject.html#25671">[ subject ]</a>
|
|
<a href="author.html#25671">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|