<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
I would also suggest you use the latest version of cmake or try
2.8.3 RC.<br>
And be sure to include the path to where libB would be in the 3rd
parameter to fixup_bundle().<br>
<br>
Clint<br>
<br>
On 10/19/2010 09:47 AM, David Cole wrote:
<blockquote
cite="mid:AANLkTinpdkRtxJVHjYH-XF_MbNsfc57b4UtFX9Q+vQTh@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
href="mailto:m.nolden@dkfz-heidelberg.de">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 moz-do-not-send="true"
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 moz-do-not-send="true" href="http://www.mitk.org"
target="_blank">http://www.mitk.org</a><br>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.cmake.org/mailman/listinfo/cmake"
target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>