This likely means that "otool -L" on libA is reporting "<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">/Users/engelm/bundle-test/install/MacOS/liblibB.dylib</span>" as a dependent library... If that's true, then why doesn't the library exist?<div>
<br></div><div>Do you build libA against a build tree including libB or against an install tree of libB...?<br><br></div><div>Yes, that is basically the intended usage of BundleUtilities. It looks like you are using it correctly. Errors are difficult to diagnose, though.....</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 10:34 AM, Marco Nolden <span dir="ltr"><<a href="mailto:m.nolden@dkfz-heidelberg.de">m.nolden@dkfz-heidelberg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear all,<br>
<br>
we have some problems using the BundleUtilities macro for deployment on Mac OS X. I created a very small test project which is similar to our setup:<br>
<br>
<a href="http://github.com/nolden/bundle-test" target="_blank">http://github.com/nolden/bundle-test</a><br>
<br>
- libA is a plugin that would be loaded at runtime by means of dlopen (or something similar). We added an explicit INSTALL(TARGETS libA) for this library.<br>
<br>
- libB is a dependency of libA<br>
<br>
- Main is an indepedent main application that would in practice load libA with dlopen (not in the example)<br>
<br>
Calling fixup_bundle with libA as a plugin gives some errors on Mac OS, because libB is not copied to the install tree:<br>
<br>
Install the project...<br>
-- Install configuration: ""<br>
-- Installing: /Users/engelm/bundle-test/install/lib/liblibA.dylib<br>
-- Installing: /Users/engelm/bundle-test/install/bin/Main<br>
GetPreReq<br>
-- fixup_bundle<br>
-- app='/Users/engelm/bundle-test/install/bin/Main'<br>
-- libs='/Users/engelm/bundle-test/install/lib/liblibA.dylib'<br>
-- dirs='/Users/engelm/bundle-test/bin/bin'<br>
-- fixup_bundle: preparing...<br>
-- warning: embedded item does not exist '/Users/engelm/bundle-test/install/MacOS/liblibB.dylib'<br>
--<br>
******************************************************************************<br>
warning: cannot resolve item '@executable_path/../MacOS/liblibB.dylib'<br>
<br>
On Linux, the copying of the dependencies works, we have not tested windows yet.<br>
<br>
Is this the intended use of the BundleUtilities script? It looks like a very good solution for cross-platform deployment.<br>
<br>
Best,<br>
<br>
Marco / Sascha<br>
<br>
MITK, <a href="http://www.mitk.org" target="_blank">http://www.mitk.org</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>