I want to use Qt Creator as my IDE, not Visual Studio and want to get VTK to work for Qt Creator. The problem is that it CMake doesn&#39;t let me select Qt Creator as a compiler in their code and I don&#39;t have any other compilers that are compatible. I don&#39;t mind rebuilding Qt Creator with Visual Studio - although I&#39;m not exactly sure how to do that. However, if I could use another compiler that would produce compatible code to Qt Creator, then I would prefer that option, even if it meant downloading another compiler just to build VTK - and then I could hopefully get VTK to work in Qt Creator. <br>
<br><div class="gmail_quote">On Wed, Jul 27, 2011 at 12:41 PM, lindeval [via VTK] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4640052&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">

        The message &quot;It Appears you&#39;re Trying to use Visual Studio with Qt built by mingw&quot; is due to the fact that you can not use Qt in visual studio if Qt was built with mingw. If you want to use Qt with Visual Studio, compile Qt with Visual Studio.
<br><br>Do not forget to enable the &quot;VTK_USE_QVTK_QTOPENGL &#39; in cmake.
<br><br>----- Mensagem original -----
<br></div>De: &quot;com&quot; &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4639639&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;
<br>Para: <a href="http://user/SendEmail.jtp?type=node&amp;node=4639639&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div class="im">Enviadas: Quarta-feira, 27 de Julho de 2011 13:42:08 (GMT-0300) Auto-Detected
<br></div>Assunto: Re: [vtkusers] trouble setting up VTK for Qt creator
<br><div><div></div><div class="h5"><br><br>I tried using the path C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin\qmake.exe for the QT_QMAKE_EXECUTABLE, but got this message. 
<br><br>CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:575 (MESSAGE): 
<br><br>It appears you&#39;re trying to use Visual Studio with Qt built by mingw. 
<br><br>Those compilers do not produce code compatible with each other. 
<br><br>Call Stack (most recent call first): 
<br><br>CMakeLists.txt:305 (FIND_PACKAGE) 
<br><br><br><br><br>Also, I used the path C:/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtDesigner for the QT_QTDESIGNER_INCLUDE_DIR. I also tried it leaving this blank and got a similar message. 
<br><br><br><br>Qt Creator wasn&#39;t on the list of generators used by CMake, so I used Visual Studio 10 as my generator (that&#39;s the only other compiler on my computer besides Qt Creator). I noticed Code Blocks could be used as a generator in CMake. I&#39;m guessing I could download this and use it as the generator and then it (might??) be compatible with Qt Creator. I&#39;d rather find another way around this problem if possible, but if I have to, I can go down this route. 
<br><br><br><br><br>2011/7/27 Dženan Zukić [via VTK] &lt; [hidden email] &gt; 
<br><br><br><br>You should use the one from the library that you want to use. I guess that is: 
<br><br><br>C:\QtSDK\Desktop\Qt\4.73\ mingw\bin 
<br><br><br><br>On Wed, Jul 27, 2011 at 15:14, com &lt; [hidden email] &gt; wrote: 
<br><br><br><br>Thanks for the advice Dominik. I did a search for qmake.exe in my QTSDK directory and found it in a number of different directories.Here they are, 
<br><br>C:\QtSDK\Symbian\SDKs\Symbian1Qt473\bin 
<br>C:\QtSDK\Symbian\SDKs\Symbian3Qt473\bin 
<br>C:\QtSDK\Symbian\SDKs\Symbian3Qt463\bin 
<br>C:\QtSDK\Symbian\SDKs\Symbian1Qt463\bin 
<br>C:\QtSDK\Simulator\Qt\mingw\bin 
<br>C:\QtSDK\Desktop\Qt\4.73\mingw\bin 
<br><br>Do you know which one should I use? 
<br><br>Thanks 
<br><br><br><br><br><br><br><br>On Tue, Jul 26, 2011 at 5:00 PM, Dominik Szczerba [via VTK] &lt; [hidden email] &gt; wrote: 
<br><br><br><br><br>You need to provide the path to qmake.exe when running cmake. 
<br><br>Dominik 
<br><br><br><br><br><br><br><br>On Tue, Jul 26, 2011 at 11:45 PM, com &lt; [hidden email] &gt; wrote: 
<br><br><br><br></div></div><div><div></div><div class="h5"><div><div class='shrinkable-quote'><br>&gt; I am trying to set up VTK for Qt Creator. I saw some step by step guides for 
<br>&gt; setting up VTK for visual studio, but none for Qt Creator. I have visual 
<br>&gt; studio, but would rather use Qt Creator. 
<br>&gt; 
<br>&gt; I downloaded the latest versions of VTK and CMake and have Qt 4.7.3. If I do 
<br>&gt; not select VTK_USE_QT, then CMake seems to build VTK with no problems - 
<br>&gt; which might be fine if I was just using visual studio. However, when I 
<br>&gt; select VTK_USE_QT I run into a number of errors. 
<br>&gt; 
<br>&gt; Here are a few of the errors: 
<br>&gt; 
<br>&gt; Qt QTGUI library not found 
<br>&gt; Qt QTSQL library not found 
<br>&gt; Qt QTNETWORK library not found 
<br>&gt; 
<br>&gt; CMake doesn&#39;t seem to be able to find a lot of these - so I tried putting in 
<br>&gt; the values myself and still seem to get some errors. Maybe I&#39;m putting in 
<br>&gt; the wrong values? 
<br>&gt; 
<br>&gt; Any help would be much appreciated as I have spent the whole day trying to 
<br>&gt; figure out how to get this to work and I would really like to use VTK for a 
<br>&gt; project I am working on in graduate school. I&#39;m also not sure what I need to 
<br>&gt; do in Qt Creator once I&#39;m done with CMake. 
<br>&gt; 
<br>&gt; 
<br>&gt; -- 
<br>&gt; View this message in context: <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4636528.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4636528.html</a> &gt; Sent from the VTK - Users mailing list archive at Nabble.com. 
</div><div><br>&gt; _______________________________________________ 
<br>&gt; Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a> 
<br>&gt; 
<br>&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a> 
<br>&gt; 
<br>&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a> 
<br>&gt; 
<br>&gt; Follow this link to subscribe/unsubscribe: 
<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a> 
<br>&gt; 
<br>&gt; _______________________________________________ 
</div>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a> 
</div><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a> 
<br><br>Follow this link to subscribe/unsubscribe: 
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a> 
<br><br><br><br><br><br></div></div><div class="im">If you reply to this email, your message will be added to the discussion below: <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4636577.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4636577.html</a> 
<br></div>To unsubscribe from trouble setting up VTK for Qt creator, click here . 
<br><br><br>View this message in context: Re: trouble setting up VTK for Qt creator 
<br><div class="im"><br><br><br><br>Sent from the VTK - Users mailing list archive at Nabble.com. 
<br><br>_______________________________________________ 
<br>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a> 
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a> 
<br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a> 
<br><br>Follow this link to subscribe/unsubscribe: 
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a> 
<br><br><br><br><br></div>_______________________________________________ 
<br><div class="im">Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a> 
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a> 
<br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a> 
<br><br>Follow this link to subscribe/unsubscribe: 
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a> 
<br><br><br><br><br><br><br></div><div class="im">If you reply to this email, your message will be added to the discussion below: <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4639052.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4639052.html</a> 
<br><br><br><br></div>To unsubscribe from trouble setting up VTK for Qt creator, click here . 
<br><br><br>View this message in context: Re: trouble setting up VTK for Qt creator 
<br><div class="im">Sent from the VTK - Users mailing list archive at Nabble.com. 
<br><br>_______________________________________________
<br>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div>_______________________________________________
<br><div class="im">Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4639639.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4639639.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from trouble setting up VTK for Qt creator, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></blockquote></div><br>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4640052.html">Re: trouble setting up VTK for Qt creator</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>