How does "....<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80); ">/install/MacOS/liblibB.dylib" </span>end up in the list of references that libA depends on if that's not where libB is built....?<div>
<br></div><div><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 5:14 PM, 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;">
<div text="#000000" bgcolor="#ffffff"><div class="im">
On 10/19/2010 05:47 PM, David Cole wrote:
<blockquote type="cite">This likely means that "otool -L" on libA is reporting
"<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?</blockquote></div>
It exists in the build tree but we did not add install commands for
it, because we thought it would be done by the BundleUtilities
script (and in fact on linux libB does get copied to the install
tree automatically).<br>
<br>
So is this "automatic copying" of libraries intended for libraries
in the same project as well or is it only intended for 3rd party
libraries from other directories?<div class="im"><br>
<br>
<blockquote type="cite">
<div>
<br>
</div>
<div>Do you build libA against a build tree including libB or
against an install tree of libB...?<br>
<br>
</div>
</blockquote></div>
Both libraries are built within the same project.<div class="im"><br>
<br>
<blockquote type="cite">
<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>
</blockquote></div>
I know, we already spent some time trying to get it to work ;) Is
the test project useful? Can we help in some other way? <br>
<br>
Best<br><font color="#888888">
Marco</font><div><div></div><div class="h5"><br>
<br>
<blockquote type="cite">
<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" target="_blank">m.nolden@dkfz-heidelberg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);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>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>