Boost logo

Boost Users :

Subject: Re: [Boost-users] App will not run when linked to boost thread library
From: kittymaguire (katherine_maguire_at_[hidden])
Date: 2008-09-22 03:44:03


Hi

I used otool to get the following dependencies

otool -L libHOMEServices.dylib
libHOMEServices.dylib:
        libHOMEServices.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version
5.0.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
88.3.6)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility
version 1.0.0, current version 11.0.0)

/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 368.28.0)
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
(compatibility version 1.0.0, current version 18.0.0)

/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
(compatibility version 1.0.0, current version 1.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 128.0.0)
        @executable_path/XUL (compatibility version 1.0.0, current version 1.0.0)
        @executable_path/libxpcom.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libmozjs.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libnspr4.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libnss3.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libplc4.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libplds4.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libsmime3.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libsoftokn3.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libssl3.dylib (compatibility version 1.0.0, current
version 1.0.0)
        @executable_path/libsqlite3.dylib (compatibility version 1.0.0, current
version 1.0.0)

@executable_path/../Frameworks/Ext2fsLibrary.framework/Versions/A/Ext2fsLibrary
(compatibility version 1.0.0, current version 1.0.0)
        @executable_path/libnssutil3.dylib (compatibility version 1.0.0, current
version 1.0.0)
        libboost_regex-xgcc40-mt-1_36.dylib (compatibility version 0.0.0, current
version 0.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1.0.0)

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
(compatibility version 1.0.0, current version 22.0.0)

I assume that because no path is given, that the boost lib should go in the
same folder as the libHOMEServices.dylib, but placing it in that folder the
application still does not start.

The dependencies of boost library are
        
        otool -L libboost_regex-xgcc40-mt-1_36.dylib
libboost_regex-xgcc40-mt-1_36.dylib:
        libboost_regex-xgcc40-mt-1_36.dylib (compatibility version 0.0.0, current
version 0.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
111.1.1)

If I do not link with the boost libraries, then the application starts.

Regards

Katherine

K. Noel Belcourt wrote:
>
>
> On Sep 19, 2008, at 11:45 PM, Zeljko Vrba wrote:
>
>> On Fri, Sep 19, 2008 at 01:19:15PM -0700, kittymaguire wrote:
>>>
>>> Is there a tool on the mac to determine why a dynamic library does
>>> not load.
>>>
>> I'm not well acquainted with OSX, but maybe ldd exists;
>>
>> ldd ./executable
>>
>> will print shared library dependencies and potential problems.
>
> with OSX use otool instead of ldd. Start with
>
> otool -L
>
> -- Noel
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
View this message in context: http://www.nabble.com/App-will-not-run-when-linked-to-boost-thread-library-tp19552427p19603205.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net