For Windows, I did try pointing Cmake to the qmake executable during configuration (after it failed to find QT) but this ends up allowing the compilation to leave out lots of required libraries. So after the Cmake process is complete, the make process fails with a lot of missing Qt dependencies. If I use the Cmake GUI, then I also get a warning about a corrupted CMakeLists file. Have you ever experienced any of this?<div>
<br></div><div>Caleb</div><div><br><div><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 4:18 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</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">On Wed, Jan 20, 2010 at 4:13 PM, David Doria &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; On Wed, Jan 20, 2010 at 4:05 PM, Caleb Johnston &lt;<a href="mailto:cjj37@cornell.edu">cjj37@cornell.edu</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I am developing an application using QT 4.6 and VTK 5.4 with CMake 2.8.<br>
&gt;&gt; However, I am having troubles compiling with QVTK. Here is an overview of my<br>
&gt;&gt; situation.<br>
&gt;&gt;<br>
&gt;&gt; I am trying to compile the VTK Qt ImageViewer example as a test for using<br>
&gt;&gt; the QVTK widget. This example is in the source tree at<br>
&gt;&gt; Examples/GUI/Qt/ImageViewer. I have been able to get this to work on Ubuntu<br>
&gt;&gt; 9.10. I followed instructions that I read from this mailing list and other<br>
&gt;&gt; related sites. But on OSX 10.6, I cannot get VTK to compile using Carbon or<br>
&gt;&gt; Cocoa. It always fails during the make process with the following error:<br>
&gt;&gt;<br>
&gt;&gt; .../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:36:24: error: QVTKWidget.h:<br>
&gt;&gt; No such file or directory<br>
&gt;&gt; .../VTK/Examples/GUI/Qt/ImageViewer/main.cxx: In function ‘int main(int,<br>
&gt;&gt; char**)’:<br>
&gt;&gt; .../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:42: error: ‘QVTKWidget’ was<br>
&gt;&gt; not declared in this scope<br>
&gt;&gt; .../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:42: error: expected `;&#39;<br>
&gt;&gt; before ‘widget’<br>
&gt;&gt; .../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:43: error: ‘widget’ was not<br>
&gt;&gt; declared in this scope<br>
&gt;&gt;<br>
&gt;&gt; However QVTKWidget.h is located /usr/local/include/vtk-5.4/QVTKWidget.h.<br>
&gt;&gt; What has gone wrong here?<br>
&gt;&gt;<br>
&gt;&gt; Also, on Windows XP SP3, no matter what I try, Cmake reports &quot;Qt was not<br>
&gt;&gt; found.&quot; However, it is installed. And I have manually created the QTDIR<br>
&gt;&gt; environment variable which points to &#39;C:/Qt/2010.01/&#39;. I have also indicated<br>
&gt;&gt; that I am using version 4 (with DESIRED_QT_VERSION). And I can successfully<br>
&gt;&gt; develop a QT stand-alone app with this environment.<br>
&gt;&gt;<br>
&gt;&gt; Any help or guidance would be greatly appreciated!<br>
&gt;&gt;<br>
&gt;&gt; Caleb<br>
&gt;&gt;<br>
&gt;<br>
&gt; It&#39;s been a while since I tried this, but I believe I had to turn on<br>
&gt; VTK_USE_QT and VTK_USE_GUISUPPORT in the advanced VTK build configuration.<br>
&gt; Thanks,<br>
&gt;<br>
<br>
</div></div>That is needed I did that last week.. Also if Qt is not found setting<br>
the location of the qmake executable in cmake-gui or ccmake will fix<br>
that. This is what I do when CMake can not find Qt on windows. I do<br>
this all the time since there is no standard location in windows and I<br>
have my source code at X: no source code at all on the OS partition.<br>
<font color="#888888"><br>
John<br>
</font><div><div></div><div class="h5">_______________________________________________<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" 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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div></div>