[no subject]

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


-- 
Michael Harrington | Software Apprentice
Atomic Object | http://atomicobject.com
[Ph] +1 616 776 6020 [Fx] +1 616 776 6015

--0016e65ae214e5c300047f7530cf
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I found this because I can't seem to use Mono's P/Invoke to call in=
to A5 on OS X.<div><br></div><div>Compare this output...</div><div><br></di=
v><div><div>otool -L /usr/local/lib/liballegro-4.9.16.dylib=A0</div><div>/u=
sr/local/lib/liballegro-4.9.16.dylib:</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>libal=
legro-4.9.16.dylib (compatibility version 0.0.0, current version 0.0.0)</di=
v><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Sy=
stem/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility v=
ersion 45.0.0, current version 1038.25.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility versi=
on 1.0.0, current version 275.0.0)</div><div><span class=3D"Apple-tab-span"=
 style=3D"white-space:pre">	</span>/System/Library/Frameworks/OpenGL.framew=
ork/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)<=
/div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1=
.0.0, current version 1.0.0)</div><div><span class=3D"Apple-tab-span" style=
=3D"white-space:pre">	</span>/usr/lib/libstdc++.6.dylib (compatibility vers=
ion 7.0.0, current version 7.9.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/usr/=
lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0=
)</div><div><br></div><div>...to that of A4...</div><div><br></div><div><di=
v>

otool -L /opt/local/lib/liballeg.dylib=A0</div><div>/opt/local/lib/liballeg=
.dylib:</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=
	</span>/opt/local/liballeg-4.2.dylib (compatibility version 4.2.0, current=
 version 4.2.3)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility versi=
on 1.0.0, current version 15.0.0)</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>/System/Library/Frameworks/Carbon.framewo=
rk/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)=
</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility versi=
on 1.0.0, current version 275.0.0)</div><div><span class=3D"Apple-tab-span"=
 style=3D"white-space:pre">	</span>/usr/lib/libSystem.B.dylib (compatibilit=
y version 1.0.0, current version 125.0.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibili=
ty version 1.0.0, current version 1.0.0)</div><div><span class=3D"Apple-tab=
-span" style=3D"white-space:pre">	</span>/System/Library/Frameworks/AudioUn=
it.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current ver=
sion 1.0.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compa=
tibility version 1.0.0, current version 1.0.0)</div><div><span class=3D"App=
le-tab-span" style=3D"white-space:pre">	</span>/System/Library/Frameworks/Q=
uickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, curre=
nt version 1591.3.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/usr/=
lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)<=
/div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>=
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (=
compatibility version 1.0.0, current version 44.0.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (c=
ompatibility version 150.0.0, current version 550.13.0)</div><div><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/System/Library/Fra=
meworks/ApplicationServices.framework/Versions/A/ApplicationServices (compa=
tibility version 1.0.0, current version 38.0.0)</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>/Syst=
em/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibi=
lity version 300.0.0, current version 751.14.0)</div><div><span class=3D"Ap=
ple-tab-span" style=3D"white-space:pre">	</span>/System/Library/Frameworks/=
AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current v=
ersion 1038.25.0)</div>

<div><br></div></div><div>From my limited knowledge of dylibs, I believe th=
e first line is supposed to be self-referential, but using an absolute path=
. My assumption is that this is not a problem for normal C usage, because d=
yld will fall back to /usr/local/lib anyway, but the inconsistency -- along=
 with the reported version numbers being 0.0.0 -- suggests a potential sour=
ce of trouble.</div>

<br>-- <br>Michael Harrington | Software Apprentice<br>Atomic Object | <a h=
ref=3D"http://atomicobject.com";>http://atomicobject.com</a><br>[Ph] +1 616 =
776 6020 [Fx] +1 616 776 6015<br>
</div>

--0016e65ae214e5c300047f7530cf--




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/