<div class="gmail_quote">On Mon, Feb 14, 2011 at 12:02 PM, Peter Kümmel <span dir="ltr">&lt;<a href="mailto:syntheticpp@gmx.net">syntheticpp@gmx.net</a>&gt;</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;">
<div class="im">On 14.02.2011 17:23, David Cole wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sat, Feb 12, 2011 at 12:41 PM, Peter Kümmel&lt;<a href="mailto:syntheticpp@gmx.net" target="_blank">syntheticpp@gmx.net</a>&gt;  wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 12.02.2011 18:26, Peter Kümmel wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I wanna create a bundle on OSX with fixup_bundle but I have problems with<br>
plugins.<br>
<br>
The plugins are build with add_library(MODULE) into<br>
${CMAKE_BINARY_DIR}/plugins.<br>
<br>
set(app ${CMAKE_BINARY_DIR}/bin/b.app)<br>
install(CODE<br>
      &quot;file(GLOB_RECURSE plugins<br>
\&quot;\${CMAKE_BINARY_DIR}/plugins/*${CMAKE_SHARED_MODULE_SUFFIX}\&quot;)<br>
      include(BundleUtilities)<br>
      fixup_bundle(\&quot;${app}\&quot; \&quot;\${plugins}\&quot; \&quot;\&quot;)&quot;<br>
      COMPONENT RUNTIME)<br>
<br>
Does not work, cmake says it does &quot;*NOT* copying&quot; the plugin.<br>
<br>
</blockquote>
<br>
And what does it mean &quot;copying&quot;? from where to where?<br>
<br>
<br>
  Is there a way to enable copying? Or Have I ti install<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
them into the bundle before calling fixup.<br>
<br>
</blockquote></blockquote></blockquote>
<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><div class="im">
See this bug and its related issues for details:<br>
<a href="http://public.kitware.com/Bug/view.php?id=9744" target="_blank">http://public.kitware.com/Bug/view.php?id=9744</a><br>
<br>
The gist of it is that, yes, you do have to copy/install your plugins into<br>
the bundle first before calling fixup_bundle. This is a change in behavior<br>
between CMake 2.8.2 and 2.8.3 as a result of the above bug fix.<br>
<br>
</div></blockquote>
<br>
OK, I&#39;ve solved this by directly building into the bundle path by setting<br>
CMAKE_LIBRARY_OUTPUT_DIRECTORY and by installing Qt&#39;s plugins into the<br>
bundle dir which is below bin/.<br>
<br>
Is it a common practice to use &#39;install&#39; just for copying files?</blockquote><div><br>It&#39;s not uncommon. So, yes.<br><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
And to answer &quot; And what does it mean &quot;copying&quot;? from where to where?&quot;:<br>
<br>
Copying from outside the bundle somewhere to inside the bundle in its<br>
&quot;embedded&quot; location. As it does with the automatically-pulled-in<br>
prerequisite libraries.<br>
<br>
</blockquote>
<br></div>
I assume on mac all files listed by otool -L?<br></blockquote><div><br>Not all files. But all &quot;non-system&quot; files that are not already in the bundle somewhere. (At least, that&#39;s the intent...)<br><br> <br></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Many thanks,<div><div></div><div class="h5"><br>
Peter<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>
</div></div></blockquote></div><br>