Thanks Clinton,<div><br></div><div>This solved my problem. Just for posterity, to solve the problem I set CMAKE_BUILD_TYPE to Debug. Then I configured, generated, 'mingw32-make'd and 'mingw32-make install'd.<div>
<br></div><div><br></div><div>This created a set of debug dlls which work wonderfully with QTCreator and qmake. I kept the old 'Release' dlls and use the flags</div><div>win32:release:LIBS += ....</div><div>win32:debug:LIBS += ....</div>
<div><br></div><div><br></div><div>Thanks again,</div><div>Michael</div><div><br><div class="gmail_quote">On Mon, Sep 14, 2009 at 11:15 AM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
If you didn't already, you'll need VTK in debug mode to use with debug Qt<br>
apps.<br>
<br>
Clint<br>
<div><div></div><div><br>
On Monday 14 September 2009 08:40:58 am Michael Lynch wrote:<br>
> Dear all,<br>
> I am having some trouble with some minimal "Hello World" code for<br>
> running qvtkwidget in debug (it works fine in release). My set up is vtk<br>
> (5.4.2) and qt (4.5.2) on Win XP. My IDE is qtcreator (1.2.1) and I am<br>
> using qmake. My VTK installation seems to be correct and I can run pure vtk<br>
> code in my ide with no problems.<br>
><br>
> The minimal code I created compiles successfully and my LIBS and<br>
> INCLUDEPATH seem to be correct. However, at runtime in debug mode I get an<br>
> error which occurs at;<br>
> widget = new QVTKWidget;<br>
><br>
> In release mode, the code both *compiles* and *runs* successfully.<br>
><br>
> VTK dlls are specified in %PATH% and I have run dependency walker on the<br>
> compiled exe and it finds all dlls.<br>
><br>
> However, I have noticed that QVTK.dll uses QTCORE4.dll and QTGUI4.dll and I<br>
> have a feeling that this might conflict with QTCORE4D.dll and QTGUI4D.dll?<br>
> Is this potentially the source of the error? And if so, how can I correct<br>
> it?<br>
><br>
> I have seen similar problems here [<br>
> <a href="http://www.vtk.org/pipermail/vtkusers/2009-March/099876.html" target="_blank">http://www.vtk.org/pipermail/vtkusers/2009-March/099876.html</a>] and a<br>
> proposed solution in VS here [<br>
> <a href="http://www.vtk.org/pipermail/vtk-developers/2008-August/005437.html" target="_blank">http://www.vtk.org/pipermail/vtk-developers/2008-August/005437.html</a>] and<br>
> further reading here [<br>
> <a href="http://www.vtk.org/pipermail/vtk-developers/2008-August/005427.html" target="_blank">http://www.vtk.org/pipermail/vtk-developers/2008-August/005427.html</a>].<br>
><br>
> However, I'm not sure how the solutions allow me to run in Debug mode in<br>
> QTCreator. Any help would be greatly appreciated.<br>
><br>
> Thanks in advance,<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Michael <br>
</div>
</div>