<div><div class="gmail_quote">On Wed, Feb 10, 2010 at 7:56 AM, KS Jothybasu <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br><br>Don't get irritated by this basic question, because I have never used C/C++ (but I could understand the code).<br><br>Now I want to slowly switch to c++ from python. So, as a first step I downloaded Qt creator and copied some vtk examples and tried to run , but it says no header files<br>
found. I have installed vtk 5.4.2. Is there anything to be done, like seiing the path,etc....<br><br><br>Many thanks<br><br>Jothy<br><br></blockquote><div><br></div><div>There are a few things you must turn on in your VTK build.</div>
<a href="http://www.vtk.org/Wiki/VTK/Examples#Qt">http://www.vtk.org/Wiki/VTK/Examples#Qt</a><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples#Qt"></a>If you just install a pre-build version of VTK, I'm not sure if these things are already on?</div>
<div><br></div><div>To use Qt with CMake, you have to add:</div><span class="Apple-style-span" style="font-family: monospace; font-size: 10px; "><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; color: black; background-color: rgb(249, 249, 249); line-height: normal; font-family: monospace; font-weight: normal; font-style: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background: inherit; ">
<span class="kw1" style="color: rgb(31, 63, 129); "><br></span></pre><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; color: black; background-color: rgb(249, 249, 249); line-height: normal; font-family: monospace; font-weight: normal; font-style: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background: inherit; ">
<span class="kw1" style="color: rgb(31, 63, 129); ">FIND_PACKAGE</span><span class="sy0" style="color: rgb(25, 125, 139); ">(</span>Qt4 REQUIRED<span class="sy0" style="color: rgb(25, 125, 139); ">) </span></pre></span><div>
<span class="Apple-style-span" style="font-family: monospace; font-size: 10px; white-space: pre; "><span class="kw1" style="color: rgb(31, 63, 129); ">INCLUDE</span><span class="sy0" style="color: rgb(25, 125, 139); ">(</span><span class="re0" style="color: rgb(176, 128, 0); ">${QT_USE_FILE}</span></span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 10px; white-space: pre; "><span class="sy0" style="color: rgb(25, 125, 139); "><br></span></span></div><div>to your CMakeLists.txt file. I do not use Qt Creator, so I can't help you with that. What I have done is use Qt Designer to make a .ui file and then use it with a VTK program. There are some more tricky things to do in the CMakeLists.txt for that - I will post them today.</div>
<div><br></div><div>Try a couple of these things and let us know if you're still stuck.</div><div><br clear="all">Thanks,<br><br></div><div>David</div></div></div>