<font face="'trebuchet ms', sans-serif"><div>I have the following in my CMakeLists.txt:</div><div><div><br></div><div> install( DIRECTORY "${QT_PLUGINS_DIR}/imageformats"</div><div>
DESTINATION ${plugin_dest_dir}/plugins</div><div> COMPONENT Runtime</div><div> )</div></div><div><br></div><div>This results in the appropriate libraries (libqtiff.dylib included) being installed in my app bundle at</div>
<div> Contents/MacOS/plugins/imageformats</div><div><br></div><div>Then I have this:</div><div><br></div><div><div><div> install( CODE "</div><div> file(GLOB_RECURSE QTPLUGINS</div><div> \"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")</div>
<div> include(BundleUtilities)</div><div> fixup_bundle( \"${APPS}\"</div><div> \"\${QTPLUGINS}\"</div><div> \"${DIRS}\")</div><div> " COMPONENT Runtime</div>
<div> )</div></div></div><div><br></div><div>Is it obvious what I am missing?</div><div>I double checked that the QTPLUGINS variable above does, in fact, contain the appropriate shared libraries. But "fixup_bundle" is entirely mysterious to me...</div>
<div><br></div><div>James</div><div><br></div><br></font><br><div class="gmail_quote">On Fri, Jul 29, 2011 at 10:14 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Probably qtiff4 ...<br>
<br>
You can see the available ones in your Qt build tree at "plugins/imageformats"<br>
<div><div></div><div><br>
<br>
On Fri, Jul 29, 2011 at 12:10 PM, James Sutherland<br>
<<a href="mailto:James.Sutherland@utah.edu" target="_blank">James.Sutherland@utah.edu</a>> wrote:<br>
> The icons are all *.tif images.<br>
> Would that require a plugin? Do you happen to know what one?<br>
> James<br>
><br>
> On Thu, Jul 28, 2011 at 9:33 PM, <a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a> <<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>><br>
> wrote:<br>
>><br>
>> Sounds like your icons are in a format supported by a plugin, and the<br>
>> installation has missing that plugin.<br>
>><br>
>> Clint<br>
>><br>
>> ----- Reply message -----<br>
>> From: "James Sutherland" <<a href="mailto:James.Sutherland@utah.edu" target="_blank">James.Sutherland@utah.edu</a>><br>
>> Date: Thu, Jul 28, 2011 8:01 pm<br>
>> Subject: [CMake] CMake QT4 toolbar icons disappear<br>
>> To: "cmake" <<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>><br>
>><br>
>> I have a QT4 application that I am building via CMake.<br>
>> In the build directory where the "local" application is built, it works<br>
>> fine.<br>
>> In the install directory, that application is missing all toolbar icons<br>
>> when it runs (but is otherwise functional).<br>
>> Any ideas what could be causing this? It must have something to do with<br>
>> the installation process I guess?<br>
>> FWIW, I followed the example code at the link<br>
>> on <a href="http://www.vtk.org/Wiki/BundleUtilitiesExample" target="_blank">http://www.vtk.org/Wiki/BundleUtilitiesExample</a><br>
>> James<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<br>
>> <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:<br>
>> <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>
><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<br>
> <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:<br>
> <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>
><br>
</div></div></blockquote></div><br>