<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 29, 2011, at 10:58 AM, James Sutherland wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font face="'trebuchet ms', sans-serif"><div>I have the following in my CMakeLists.txt:</div><div><div><br></div><div>&nbsp; install( DIRECTORY "${QT_PLUGINS_DIR}/imageformats"</div><div>
&nbsp; &nbsp; DESTINATION ${plugin_dest_dir}/plugins</div><div>&nbsp; &nbsp; COMPONENT Runtime</div><div>&nbsp; &nbsp; )</div></div><div><br></div><div>This results in the appropriate libraries (libqtiff.dylib included) being installed in my app bundle at</div>


<div>&nbsp; Contents/MacOS/plugins/imageformats</div></font></blockquote><div><br></div><div>Have a look here:</div><div><a href="http://doc.qt.nokia.com/latest/deployment-mac.html">http://doc.qt.nokia.com/latest/deployment-mac.html</a></div><div>To see if the results you are getting agree.</div><div><br></div><div>A possible hint:</div><div>If the Contents/Resources/qt.conf file has Plugins=plugins, then that means you put plugins in</div><div>Contents/plugins, not Contents/MacOS/plugins.</div><div><br></div><div>Contents/MacOS/plugins will work if qt.conf has Plugins=MacOS/plugins.</div><div><br></div><div>Clint</div><br><blockquote type="cite"><font face="'trebuchet ms', sans-serif"><div><br></div><div>Then I have this:</div><div><br></div><div><div><div>&nbsp; install( CODE "</div><div>&nbsp; &nbsp; file(GLOB_RECURSE QTPLUGINS</div><div>&nbsp; &nbsp; &nbsp; \"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")</div>

<div>&nbsp; &nbsp; include(BundleUtilities)</div><div>&nbsp; &nbsp; fixup_bundle( \"${APPS}\"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"\${QTPLUGINS}\"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"${DIRS}\")</div><div>&nbsp; &nbsp; " COMPONENT Runtime</div>

<div>&nbsp; &nbsp; )</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. &nbsp;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">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">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>
&lt;<a href="mailto:James.Sutherland@utah.edu" target="_blank">James.Sutherland@utah.edu</a>&gt; wrote:<br>
&gt; The icons are all *.tif images.<br>
&gt; Would that require a plugin? &nbsp;Do you happen to know what one?<br>
&gt; James<br>
&gt;<br>
&gt; On Thu, Jul 28, 2011 at 9:33 PM, <a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a> &lt;<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Sounds like your icons are in a format supported by a plugin, and the<br>
&gt;&gt; installation has missing that plugin.<br>
&gt;&gt;<br>
&gt;&gt; Clint<br>
&gt;&gt;<br>
&gt;&gt; ----- Reply message -----<br>
&gt;&gt; From: "James Sutherland" &lt;<a href="mailto:James.Sutherland@utah.edu" target="_blank">James.Sutherland@utah.edu</a>&gt;<br>
&gt;&gt; Date: Thu, Jul 28, 2011 8:01 pm<br>
&gt;&gt; Subject: [CMake] CMake QT4 toolbar icons disappear<br>
&gt;&gt; To: "cmake" &lt;<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; I have a QT4 application that I am building via CMake.<br>
&gt;&gt; In the build directory where the "local" application is built, it works<br>
&gt;&gt; fine.<br>
&gt;&gt; In the install directory, that application is missing all toolbar icons<br>
&gt;&gt; when it runs (but is otherwise functional).<br>
&gt;&gt; Any ideas what could be causing this? &nbsp;It must have something to do with<br>
&gt;&gt; the installation process I guess?<br>
&gt;&gt; FWIW, I followed the example code at the link<br>
&gt;&gt; on&nbsp;<a href="http://www.vtk.org/Wiki/BundleUtilitiesExample" target="_blank">http://www.vtk.org/Wiki/BundleUtilitiesExample</a><br>
&gt;&gt; James<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
</div></div></blockquote></div><br>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></div><br></body></html>