mail-archives/mono-list/2005-February/025663.html

117 строки
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Marshalling problems
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:james.fitzsimons%40gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025662.html">
<LINK REL="Next" HREF="025664.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Marshalling problems
</H1>
<B>James Fitzsimons
</B>
<A HREF="mailto:james.fitzsimons%40gmail.com"
TITLE="[Mono-list] Marshalling problems">james.fitzsimons@gmail.com
</A><BR>
<I>Sat, 12 Feb 2005 13:07:43 +0000</I>
<P><UL>
<LI> Previous message: <A HREF="025662.html">[Mono-list] problem with embedded PNG resources
</A></li>
<LI> Next message: <A HREF="025664.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25663">[ date ]</a>
<a href="thread.html#25663">[ thread ]</a>
<a href="subject.html#25663">[ subject ]</a>
<a href="author.html#25663">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>--=-985bEGQqEw3ypGdd37Hc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
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:
<A HREF="mailto:james@athos">james@athos</A> 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
<A HREF="mailto:james@athos">james@athos</A> src $=20
My ld_library_path seems to be correct
<A HREF="mailto:james@athos">james@athos</A> src $ echo $LD_LIBRARY_PATH
:<i>/usr/local/wine20030813/lib:/usr/lib64/evolution/1.4:/usr/lib64/evolution/=
</I>1.4:/usr/local/lib
My C# code looks like this:
// Highgui stuff=09
[DllImport(&quot;highgui&quot;)]
private static extern System.IntPtr cvLoadImage(string filename, int
iscolor);=20
But when I run my app I get the following error:
<A HREF="mailto:james@athos">james@athos</A> src $ mono CvImage.exe=20
CvImage test application
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
Unhandled Exception: System.DllNotFoundException: highgui
in &lt;0x000bf&gt; (wrapper managed-to-native) Slam.CvImage:cvLoadImage
(string,int)
in &lt;0x00068&gt; Slam.CvImage:.ctor (string,bool)
in &lt;0x00069&gt; Slam.MainClass:Main (string[])
<A HREF="mailto:james@athos">james@athos</A> src $=20
I am using mono version 1.1.3 on an amd64 platform.
Anybody have any ideas?
Cheers,
James
--=20
It's 5.50 a.m.... Do you know where your stack pointer is ?
--=-985bEGQqEw3ypGdd37Hc
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBCDf+etf4qL6AoafMRAuvHAKDXTxUj++z7YrERcD6ehjeBABKFEgCgp2ge
y7HXDUuume5de0JnXiz30bg=
=SUFq
-----END PGP SIGNATURE-----
--=-985bEGQqEw3ypGdd37Hc--
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025662.html">[Mono-list] problem with embedded PNG resources
</A></li>
<LI> Next message: <A HREF="025664.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25663">[ date ]</a>
<a href="thread.html#25663">[ thread ]</a>
<a href="subject.html#25663">[ subject ]</a>
<a href="author.html#25663">[ author ]</a>
</LI>
</UL>
</body></html>