Never mind. It's QT_BINARY_DIR and QT_LIBRARY_DIR, right there in the first line of code.<div><br></div><div>So add to that variable the actual directories where all of your dlls live and it should work.</div><div><br>
</div><div>i.e. -- what directories are the following files in?</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> libgcc_s_dw2-1.dll</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> mingwm10.dll</span></div><div><br></div><div>They also need to be included in DIRS for fixup_bundle and get_prerequisites to find them.</div>
<div><br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 5:21 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">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;">
And what is the value of "DIRS"?<div><div></div><div class="h5"><div><br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 3:40 AM, NoRulez <span dir="ltr"><<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE-AT" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">The code I use to create the bundle is as followed</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> <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 lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> <span style="color:blue">SET</span>(APPS <span style="color:green">"</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"</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 lang="EN-US" style="color:green"> # SET(APPS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe")</span></pre>
<pre><span lang="EN-US" style="color:green"> # SET(APPS "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.exe")</span></pre><pre><span lang="EN-US" style="color:green"> # SET(APPS "\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.exe")</span></pre>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> <span style="color:blue">SET</span>(PLUGINS plugins)</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> <span style="color:blue">INSTALL</span>(FILES <span style="color:green">"</span><span style="color:maroon">${QT_PLUGINS_DIR}</span><span style="color:green">/sqldrivers/qsqlited4.dll"</span> DESTINATION <span style="color:maroon">${PLUGINS}</span>/sqldrivers COMPONENT <span style="color:maroon">${PROJECT_NAME}</span>)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> <span style="color:blue">INSTALL</span>(CODE <span style="color:green">"</span></span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green"> file(GLOB_RECURSE QTPLUGINS</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green"> \"</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">${CMAKE_RUNTIME_OUTPUT_DIRECTORY}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">/</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">${PLUGINS}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">/sqldrivers/*</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">${CMAKE_SHARED_LIBRARY_SUFFIX}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">\")</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green"> include(BundleUtilities)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green"> fixup_bundle(\"</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">${APPS}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">\" \"\${QTPLUGINS}\" \"</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">${DIRS}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">\")</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<pre><span lang="EN-US" style="color:green"> "</span><span lang="EN-US"> COMPONENT <span style="color:maroon">${PROJECT_NAME}</span>)</span></pre><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">The install command for the application is:</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<pre><span lang="EN-US" style="color:blue">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 lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Thanks in advance</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Best Regards</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">NoRulez</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt">Von:</span></b><span lang="DE" style="font-size:10.0pt"> 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></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't really know what you mean by "give two destinations"</p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><p class="MsoNormal">On Tue, Jan 18, 2011 at 5:51 PM, NoRulez <<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>> 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'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:12.0pt">NoRulez<br><br>Am 18.01.2011 um 23:43 schrieb David Cole <<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>>:</p>
</div><div><div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal" style="margin-bottom:12.0pt">On Windows, you have to tell fixup_bundle where to find the Qt dll'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 <<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>> 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 lang="EN-US" style="color:#888888"> </span><span style="color:#888888"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#888888"> </span><span style="color:#888888"></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><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>
</div></div></blockquote></div><br></div>