I have not built it from source. Instead I used the Qt open source installer for 4.6 on my Mac and it worked fine. I'm just having issues building VTK with the QVTK widget.<div><br></div><div>Caleb</div><div><br><br><div class="gmail_quote">
On Wed, Jan 20, 2010 at 4:39 PM, Arnaud GELAS <span dir="ltr"><<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Has anyone successfully built vtk with recent Qt version (>=4.6.0, with delivered installers) on mac (carbon or cocoa)?<br>
<br>
I have tried using Qt 4.6.0, 4.6.1 (mac, cocoa) and always had the same error because QtDBus.Framework is missing...<br>
It is an open bug in Qt see <a href="http://bugreports.qt.nokia.com/browse/QTBUG-6429" target="_blank">http://bugreports.qt.nokia.com/browse/QTBUG-6429</a><br>
<br>
Some time back I asked if QtDBus was really needed to build vtk with qt on the list: <a href="http://old.nabble.com/vtk-QtDBus--td26599452.html" target="_blank">http://old.nabble.com/vtk-QtDBus--td26599452.html</a><br>
But I did not get any answer... Is it really required to build vtk?<br>
<br>
Thanks,<br><font color="#888888">
Arnaud</font><div><div></div><div class="h5"><br>
<br>
On 01/20/2010 04:18 PM, John Drescher wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Jan 20, 2010 at 4:13 PM, David Doria<<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Jan 20, 2010 at 4:05 PM, Caleb Johnston<<a href="mailto:cjj37@cornell.edu" target="_blank">cjj37@cornell.edu</a>> wrote:<br>
<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.<br>
However, I am having troubles compiling with QVTK. Here is an overview of my<br>
situation.<br>
<br>
I am trying to compile the VTK Qt ImageViewer example as a test for using<br>
the QVTK widget. This example is in the source tree at<br>
Examples/GUI/Qt/ImageViewer. I have been able to get this to work on Ubuntu<br>
9.10. I followed instructions that I read from this mailing list and other<br>
related sites. But on OSX 10.6, I cannot get VTK to compile using Carbon or<br>
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:<br>
No such file or directory<br>
.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx: In function ‘int main(int,<br>
char**)’:<br>
.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:42: error: ‘QVTKWidget’ was<br>
not declared in this scope<br>
.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:42: error: expected `;'<br>
before ‘widget’<br>
.../VTK/Examples/GUI/Qt/ImageViewer/main.cxx:43: error: ‘widget’ was not<br>
declared in this scope<br>
<br>
However QVTKWidget.h is located /usr/local/include/vtk-5.4/QVTKWidget.h.<br>
What has gone wrong here?<br>
<br>
Also, on Windows XP SP3, no matter what I try, Cmake reports "Qt was not<br>
found." However, it is installed. And I have manually created the QTDIR<br>
environment variable which points to 'C:/Qt/2010.01/'. I have also indicated<br>
that I am using version 4 (with DESIRED_QT_VERSION). And I can successfully<br>
develop a QT stand-alone app with this environment.<br>
<br>
Any help or guidance would be greatly appreciated!<br>
<br>
Caleb<br>
<br>
<br>
</blockquote>
It's been a while since I tried this, but I believe I had to turn on<br>
VTK_USE_QT and VTK_USE_GUISUPPORT in the advanced VTK build configuration.<br>
Thanks,<br>
<br>
<br>
</blockquote>
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>
<br>
John<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>
<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>
</div></div></blockquote></div><br></div>