Send us the full output of the call to fixup_bundle. Is the output different if you start from a clean build tree, and run fixup_bundle for the first time?<br><br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 5:35 AM, NoRulez <span dir="ltr">&lt;<a href="mailto:norulez@me.com">norulez@me.com</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 link="blue" vlink="purple" lang="DE-AT"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The two files are also in the QT_BINARY_DIR</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The two directories (QT_BINARY_DIR and QT_LIBRARY_DIR ) are the directories where the dlls are stored.</span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">So, what should I do now to get it working?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="DE">Von:</span></b><span style="font-size: 10pt;" lang="DE"> David Cole [mailto:<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>] <br>
<b>Gesendet:</b> Mittwoch, 19. Jänner 2011 11:23<div><div></div><div class="h5"><br><b>An:</b> NoRulez<br><b>Cc:</b> CMake MailingList<br><b>Betreff:</b> Re: [CMake] Problems with MinGW + BundleUtilities</div></div></span></p>
</div><div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal">Never mind. It&#39;s QT_BINARY_DIR and QT_LIBRARY_DIR, right there in the first line of code.</p><div><p class="MsoNormal"> </p></div><div>
<p class="MsoNormal">So add to that variable the actual directories where all of your dlls live and it should work.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">i.e. -- what directories are the following files in?</p>
</div><div><p class="MsoNormal"><span><span style="font-size: 10pt;">  libgcc_s_dw2-1.dll</span></span></p></div><div><p class="MsoNormal"><span><span style="font-size: 10pt;">  mingwm10.dll</span></span></p></div><div><p class="MsoNormal">
 </p></div><div><p class="MsoNormal">They also need to be included in DIRS for fixup_bundle and get_prerequisites to find them.</p></div><div><p class="MsoNormal" style="margin-bottom: 12pt;"> </p><div><p class="MsoNormal">
On Wed, Jan 19, 2011 at 5:21 AM, David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt; wrote:</p><p class="MsoNormal">And what is the value of &quot;DIRS&quot;?</p><div><div>
<div><p class="MsoNormal" style="margin-bottom: 12pt;"> </p><div><p class="MsoNormal">On Wed, Jan 19, 2011 at 3:40 AM, NoRulez &lt;<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>&gt; wrote:</p><div><div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The code I use to create the bundle is as followed</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">        <span style="color: blue;">SET</span>(DIRS <span style="color: maroon;">${QT_BINARY_DIR}</span> <span style="color: maroon;">${QT_LIBRARY_DIR}</span>)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">        <span style="color: blue;">SET</span>(APPS <span style="color: green;">&quot;</span><span style="color: maroon;">${CMAKE_RUNTIME_OUTPUT_DIRECTORY}</span><span style="color: green;">/</span><span style="color: maroon;">${PROJECT_NAME}</span><span style="color: green;">.exe&quot;</span>)</span></p>
<pre><span lang="EN-US">        <span style="color: green;"># Not working (Also when trying this in the INSTALL(CODE</span></span></pre><pre><span style="color: green;" lang="EN-US">        # SET(APPS &quot;${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe&quot;)</span></pre>
<pre><span style="color: green;" lang="EN-US">        # SET(APPS &quot;${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.exe&quot;)</span></pre><pre><span style="color: green;" lang="EN-US">        # SET(APPS &quot;\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.exe&quot;)</span></pre>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">        <span style="color: blue;">SET</span>(PLUGINS plugins)</span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">        <span style="color: blue;">INSTALL</span>(FILES <span style="color: green;">&quot;</span><span style="color: maroon;">${QT_PLUGINS_DIR}</span><span style="color: green;">/sqldrivers/qsqlited4.dll&quot;</span> DESTINATION <span style="color: maroon;">${PLUGINS}</span>/sqldrivers COMPONENT <span style="color: maroon;">${PROJECT_NAME}</span>)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">        <span style="color: blue;">INSTALL</span>(CODE <span style="color: green;">&quot;</span></span></p><p class="MsoNormal">
<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">            file(GLOB_RECURSE QTPLUGINS</span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">              \&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: maroon;" lang="EN-US">${CMAKE_RUNTIME_OUTPUT_DIRECTORY}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">/</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: maroon;" lang="EN-US">${PLUGINS}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">/sqldrivers/*</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: maroon;" lang="EN-US">${CMAKE_SHARED_LIBRARY_SUFFIX}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">\&quot;)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">            include(BundleUtilities)</span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">            fixup_bundle(\&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: maroon;" lang="EN-US">${APPS}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">\&quot; \&quot;\${QTPLUGINS}\&quot; \&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: maroon;" lang="EN-US">${DIRS}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-US">\&quot;)</span></p>
<pre><span style="color: green;" lang="EN-US">            &quot;</span><span lang="EN-US"> COMPONENT <span style="color: maroon;">${PROJECT_NAME}</span>)</span></pre><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The install command for the application is:</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<pre><span style="color: blue;" lang="EN-US">INSTALL</span><span lang="EN-US">(TARGETS <span style="color: maroon;">${PROJECT_NAME}</span></span></pre><pre><span lang="EN-US">        BUNDLE DESTINATION . COMPONENT <span style="color: maroon;">${PROJECT_NAME}</span></span></pre>
<pre><span lang="EN-US">        RUNTIME DESTINATION . COMPONENT <span style="color: maroon;">${PROJECT_NAME}</span>)</span></pre><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks in advance</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Best Regards</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">NoRulez</span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p></div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="DE">Von:</span></b><span style="font-size: 10pt;" lang="DE"> David Cole [mailto:<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>] <br>
<b>Gesendet:</b> Mittwoch, 19. Jänner 2011 00:26<br><b>An:</b> NoRulez<br><b>Cc:</b> CMake MailingList<br><b>Betreff:</b> Re: [CMake] Problems with MinGW + BundleUtilities</span></p></div><div><div><p class="MsoNormal"> </p>
<p class="MsoNormal">Providing code samples and/or copy/pasted output from doing your build would be more effective.</p><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I don&#39;t really know what you mean by &quot;give two destinations&quot;</p>
</div><div><p class="MsoNormal" style="margin-bottom: 12pt;"> </p><div><p class="MsoNormal">On Tue, Jan 18, 2011 at 5:51 PM, NoRulez &lt;<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>&gt; wrote:</p><div>
<div><p class="MsoNormal">Thanks for the answer</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I already added ${QT_LIBRARY_DIR} and ${QT_BINARY_DIR}, but if I give two  destinations, I get the error that it isn&#39;t a valid bundle.</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Best Regards</p></div><div><p class="MsoNormal" style="margin-bottom: 12pt;">NoRulez<br><br>Am 18.01.2011 um 23:43 schrieb David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;:</p>
</div><div><div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div><p class="MsoNormal" style="margin-bottom: 12pt;">On Windows, you have to tell fixup_bundle where to find the Qt dll&#39;s (and the others) by passing in a list of directories as the last argument. Or, alternatively, simply add those directories to the PATH as well.</p>
<div><p class="MsoNormal"> </p><div><p class="MsoNormal">HTH,</p></div><div><p class="MsoNormal">David</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">On Tue, Jan 18, 2011 at 4:34 PM, NoRulez &lt;<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>&gt; wrote:</p>
<div><div><p class="MsoNormal">Hello,</p><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-US">I build my Qt project successfully on linux/mac with the great BundleUtilities.</span></p><p class="MsoNormal"><span lang="EN-US">On Windows the required Qt dll’s and also “libgcc_s_dw2-1.dll” and “mingwm10.dll” aren’t packaged.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">The dumpbin.exe is in the path and the dumpbin.exe is under C:\masm32\bin\dumpbin.exe</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">How can I solve this?</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Thanks in advance</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards</span></p><p class="MsoNormal"><span lang="EN-US">NoRulez</span></p><p class="MsoNormal"><span style="color: rgb(136, 136, 136);" lang="EN-US"> </span></p><p class="MsoNormal">
<span style="color: rgb(136, 136, 136);" lang="EN-US"> </span></p></div></div><p class="MsoNormal"><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></p></div><p class="MsoNormal"> </p></div></div></div>
</blockquote></div></div></div><p class="MsoNormal"><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></p>
</div><p class="MsoNormal"> </p></div></div></div></div></div><p class="MsoNormal"><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></p></div><p class="MsoNormal"> </p></div></div></div>
</div><p class="MsoNormal"> </p></div></div></div></div></div><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>