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

155 строки
6.5 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:james.fitzsimons%40gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025671.html">
<LINK REL="Next" HREF="025673.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] P/Invoke on amd64 was :Marshalling problems
</H1>
<B>James Fitzsimons
</B>
<A HREF="mailto:james.fitzsimons%40gmail.com"
TITLE="[Mono-list] P/Invoke on amd64 was :Marshalling problems">james.fitzsimons@gmail.com
</A><BR>
<I>Sat, 12 Feb 2005 22:04:54 +0000</I>
<P><UL>
<LI> Previous message: <A HREF="025671.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> Next message: <A HREF="025673.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25672">[ date ]</a>
<a href="thread.html#25672">[ thread ]</a>
<a href="subject.html#25672">[ subject ]</a>
<a href="author.html#25672">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>--=-9uFeqiIVMdg8Va705SGW
Content-Type: multipart/mixed; boundary=&quot;=-OpE61l0MD/YJ2hJPrXrv&quot;
--=-OpE61l0MD/YJ2hJPrXrv
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi Jonathan,
On Sat, 2005-02-12 at 16:47, Jonathan Pryor wrote:
&gt;<i> &gt; libhighgui.so is located in /usr/local/lib. This should be fine however
</I>&gt;<i> &gt; 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>&gt;<i> &gt; your target library is in /etc/ld.so.cache P/Invoke should find it.
</I>&gt;<i>=20
</I>&gt;<i> I know what it says; I wrote it. =20
</I>Sorry, my bad. I didn't catch that when I wrote my reply!
&gt;<i> I also know that I have virtually zero
</I>&gt;<i> knowledge or experience with mixed 64-bit/32-bit platforms, which
</I>&gt;<i> Linux/Amd64 is. Consequently, my guide is somewhat lacking, if only
</I>&gt;<i> because I don't know everything. :-)
</I>Fair enough, I can't blame you for that ;-) To be honest, I haven't notice=
d much=20
difference at all between my 64 linux environment and my 32 bit enviroment.=
Most
things are still in the same place and work exactly as they did under a
32bit environment.
&gt;<i> I have heard that there are /lib64 directories that are searched for 64-
</I>&gt;<i> bit libraries, but that's about it. Not having an AMD64 platform of my
</I>&gt;<i> own, it's hard to test for anything else.
</I>There is a /lib64 directory, but on my system there is a symlink from /lib =
to=20
/lib64 so it looks just like a normal 32 bit system.
&gt;<i> So as an experiment, try writing a C program which uses that library,
</I>&gt;<i> and compile/link with the 64-bit GCC (whatever that may be named), and
</I>&gt;<i> run your C program. If this fails, which I suspect it will, you will
</I>&gt;<i> know why Mono can't find your library. :-)
</I>Actually I have written a bunch of C programs which compile, link and run a=
gainst=20
that library just fine so unfortunately that doesn't help us much.
&gt;<i> Then, you can tell us what it takes to find the library, I can update my
</I>&gt;<i> guide, and everyone can be happy. :-)
</I>I wish I could. Actually as an example the little program (one of the examp=
les from
Mono - A developers Notebook ) I have attached runs fine in my 32 bit
chroot but not under 64 bit. Both installations are using Mono 1.1.4=20
built from the daily release a couple of days ago. On my 32 bit chroot
libncurses.so lives in /lib. In my 64 bit install it lives in /lib64
(which has a /lib symlink).
Cheers,
James
--=20
It's 5.50 a.m.... Do you know where your stack pointer is ?
--=-OpE61l0MD/YJ2hJPrXrv
Content-Disposition: attachment; filename=Curses.cs
Content-Transfer-Encoding: base64
Content-Type: text/x-csharp; name=Curses.cs; charset=ANSI_X3.4-1968
Ly8gMDItY3NoYXJwLzA3LXBpbnZva2UNCnVzaW5nIFN5c3RlbTsNCnVzaW5nIFN5c3RlbS5SdW50
aW1lLkludGVyb3BTZXJ2a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z2V0Y2god2luZG93KTsNCgl9DQp9DQoNCnB1YmxpYyBjbGFzcyBIZWxsb0N1
cnNlcyB7DQoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oc3RyaW5nIFtdIGFyZ3MpIHsNCgkJQ3Vy
c2VzIEN1cnNlcyA9IG5ldyBDdXJzZXMoKTsNCgkJQ3Vyc2VzLlByaW50KDEwLCAxMCwgIkhlbGxv
LCBjdXJzZXMhIik7DQoJCUN1cnNlcy5SZWZyZXNoKCk7DQoJCWNoYXIgYyA9IEN1cnNlcy5HZXRD
aGFyKCk7DQoJCUN1cnNlcyA9IG51bGw7DQoJfQ0KfQ0K
--=-OpE61l0MD/YJ2hJPrXrv--
--=-9uFeqiIVMdg8Va705SGW
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)
iD8DBQBCDn2Gtf4qL6AoafMRAn22AKDhi/ZPOLCvQAWFRPHlnSdEESM9jwCeMAQk
Uoj8eDJTPsxfns66ohhO3/4=
=sVEf
-----END PGP SIGNATURE-----
--=-9uFeqiIVMdg8Va705SGW--
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025671.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> Next message: <A HREF="025673.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25672">[ date ]</a>
<a href="thread.html#25672">[ thread ]</a>
<a href="subject.html#25672">[ subject ]</a>
<a href="author.html#25672">[ author ]</a>
</LI>
</UL>
</body></html>