Yes. I have done that with all three build platforms. That is what enabled me to compile the QVTK class(es). But like I said in my post, it only successfully compiled using QVTK on Linux and not on Mac OSX or Windows XP. I have also tried compiling Paraview 3 on these two platforms because it uses QT with VTK and Cmake but I get similar issues with both platforms...<div>
<br></div><div>Caleb</div><div><br><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 4:13 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="gmail_quote"><div><div></div><div class="h5">On Wed, Jan 20, 2010 at 4:05 PM, Caleb Johnston <span dir="ltr"><<a href="mailto:cjj37@cornell.edu" target="_blank">cjj37@cornell.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am developing an application using QT 4.6 and VTK 5.4 with CMake 2.8. However, I am having troubles compiling with QVTK. Here is an overview of my situation.<br><br>I am trying to compile the VTK Qt ImageViewer example as a test for using the QVTK widget. This example is in the source tree at Examples/GUI/Qt/ImageViewer. I have been able to get this to work on Ubuntu 9.10. I followed instructions that I read from this mailing list and other related sites. But on OSX 10.6, I cannot get VTK to compile using Carbon or Cocoa. It always fails during the make process with the following error:<br>
<br>.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:36:24: error: QVTKWidget.h: No such file or directory<br>.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx: In function ‘int main(int, char**)’:<br>.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:42: error: ‘QVTKWidget’ was not declared in this scope<br>
.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:42: error: expected `;' before ‘widget’<br>.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:43: error: ‘widget’ was not declared in this scope<br><br>However QVTKWidget.h is located /usr/local/include/vtk-5.4/QVTKWidget.h. What has gone wrong here?<br>
<br>Also, on Windows XP SP3, no matter what I try, Cmake reports "Qt was not found." However, it is installed. And I have manually created the QTDIR environment variable which points to 'C:/Qt/2010.01/'. I have also indicated that I am using version 4 (with DESIRED_QT_VERSION). And I can successfully develop a QT stand-alone app with this environment.<br>
<br>Any help or guidance would be greatly appreciated!<br><font color="#888888"><br>Caleb<br><br></font></blockquote><div><br></div></div></div><div>It's been a while since I tried this, but I believe I had to t<span style="font-family:sans-serif;font-size:13px;line-height:19px">urn on VTK_USE_QT and VTK_USE_GUISUPPORT in the advanced VTK build configuration.</span></div>
<div><font face="sans-serif"><span style="line-height:19px"><br clear="all"></span></font>Thanks,<br><br></div><div>David </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 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>
<br></blockquote></div><br></div>