Looking at BundleUtilities.cmake, I would say the best thing to do here would be to add some logic to the copy_resolved_item_into_bundle function that deals with copying an entire framework as a directory copy rather than just copying the library file itself.<br>
<br><div>I will think about what&#39;s the best way to handle that. The simplest thing would just be a global flag that copies all frameworks as directories (or just as files)... A better method would be to allow that setting on a per-framework basis so that the bundle size can be kept to a minimum while allowing the copying of resources for those frameworks that need it.</div>
<div><br></div><div>Any concrete code change suggestions from anyone? (A patch, for example... :-)</div><div><br></div><div><br></div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Sat, Mar 28, 2009 at 12:07 AM, Mike Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I got a new Xeon Mac Pro so I thought I might start compiling some of<br>
my own Qt based applications against a 64 bit build of Qt 4.5.<br>
Generally things work Except when I use the BundleUtilities.cmake to<br>
bundle the application.<br>
  Seems somewhere during the copy of the framework (I have my guesses)<br>
that _only_ the library within the framework and NOT the entire<br>
framework is being copied. This makes sense on one hand as usually a<br>
deployed Application doesn&#39;t need things like headers and such. Except<br>
now with Qt 4.5 being cocoa based (for 64 bit builds) there is not a<br>
.nib file that needs to be loaded. The .nib package is located in the<br>
QtGui.framework/Resources directory but as I stated is NOT being<br>
copied.<br>
   According the error message that I got the .nib can be located in<br>
the QtGui.framework/versions/current/Resources OR inside the Resources<br>
directory of your own application (Next to your icon file.. ). So<br>
there are a few ways to solve this problem but the easiest would be to<br>
just adjust the BundleUtilities to copy the entire .framework package<br>
instead of just parts of it. This would probably result in extra stuff<br>
being put into the app bundle that isn&#39;t need but it is better to have<br>
extra than not enough.<br>
    The other way I can work around this would be to work out the path<br>
to the .nib file within the QtGui.framework package and copy it over<br>
to the OS X application bundle myself. I would rather not have to do<br>
this but if there are major objections to above then I&#39;ll have to go<br>
down this route.<br>
<br>
 Comments from anyone?<br>
<br>
Mike Jackson<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>