2010/10/8 Kornel Benko <[email protected]>

> Am Mittwoch, 6. Oktober 2010 schrieb Ken Turkowski:
> > sudo ldconfig does the trick, on Linux.
> > This should be n INSTALL_cmake.
>
> Somehow we should manipulate post-install for debian (and maybe for rpm
> too)
> Will try to do for debian at home.
>
> > However, that doesn't help on the Mac:
> >      sudo: ldconfig: command not found
> >
>
> Don't know Mac. But a google search gives:
>
>        Q: Is there a parallel command to Linux's LDCONFIG for Mac OS X's
> Terminal?
>        A: The answer is no. But you can still configure the search path via
> environment variables, see dyld(1).
>
> Since I don't have Mac, I give up here.
>
>        Kornel
>
>
ldconfig or something similar isn't necessary on OSX. OSX uses a completely
different mechanism where the path to dependent libraries is always set as
metadata in the library.
For example: when I do a "otool -L /usr/local/lib/libhuginbasewx.0.0.dylib"
(the mentioned library in Kens post), I get:
/usr/local/lib/libhuginbasewx.0.0.dylib:
    /usr/local/lib/libhuginbasewx.0.0.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 152.0.0)
    /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 15.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.0)
    /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
(compatibility version 1.0.0, current version 1742.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility
version 1.0.0, current version 1.0.0)
    /opt/local/lib/libwx_macu_gl-2.8.0.dylib (compatibility version 8.0.0,
current version 8.0.0)
    /opt/local/lib/libwx_macu-2.8.0.dylib (compatibility version 8.0.0,
current version 8.0.0)
    /usr/local/lib/libhuginbase.0.0.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libboost_regex-mt.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libboost_filesystem-mt.dylib (compatibility version
0.0.0, current version 0.0.0)
    /opt/local/lib/libboost_iostreams-mt.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libpano13.2.dylib (compatibility version 3.0.0, current
version 3.0.0)
    /opt/local/lib/libGLEW.1.5.1.dylib (compatibility version 0.0.0, current
version 0.0.0)
    /usr/local/lib/libhuginvigraimpex.0.0.dylib (compatibility version
0.0.0, current version 0.0.0)
    /opt/local/lib/libjpeg.8.dylib (compatibility version 9.0.0, current
version 9.2.0)
    /opt/local/lib/libImath.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
    /opt/local/lib/libIlmImf.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
    /opt/local/lib/libIex.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
    /opt/local/lib/libHalf.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
    /opt/local/lib/libIlmThread.6.dylib (compatibility version 7.0.0,
current version 7.0.0)
    /opt/local/lib/libpng12.0.dylib (compatibility version 45.0.0, current
version 45.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.3)
    /usr/local/lib/libmakefilelib.0.0.dylib (compatibility version 0.0.0,
current version 0.0.0)
    /opt/local/lib/libexiv2.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
    /opt/local/lib/libtiff.3.dylib (compatibility version 13.0.0, current
version 13.4.0)
    /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT (compatibility
version 1.0.0, current version 1.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.9.0)

OSX doesn't need ldconfig. Every library/binary knows exactly where to find
which other dependent library.
And in case you want to change that, e.g. for a bundle, you use the
install_name_tool.

Please have a look at which architectures are in your libs as mentioned in
my previous post.

Harry

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to