[vtkusers] VTK and Qt using CMake??

Alain CORON alain.coron at lip.bhdc.jussieu.fr
Mon Jul 7 10:02:29 EDT 2003


Steven Boyd <skboyd at ucalgary.ca> writes:

> Hi,
> 
> Does anybody have a working CMake file that will build the vtk_qt
> library by Carsten Kuebler?  
> 
> I've been trying to build with CMake, but with no success (and lots of
> frustration).  I'm using CMake 1.6.6, and VTK 4.2.1 on a windows
> platform (but want to build on linux also).  The Qt version I'm using is
> the commercial free v2.3 (I hope that I can build with this version of
> Qt??)

Hello,

I have successfully compiled vtk_qt library on Linux and Solaris.  I used
vtk_qt1.7beta VTK-4.2.2, Qt-3.1.1.   

I started with the CMakeLists.txt I found on his site.  Then I modified it
and remove the #include "moc_xxx.cpp" directives in 

  - vtkQGLRenderWindowInteractor.cpp

  - vtkQGLWindowQT.cpp

  - vtkQtOutputWindow.cxx

I attach my final CMakeLists.txt that also builds two executables
Cylinder_VTKQT and Cylinder_VTKQT2.

Bye.
-- 
Alain CORON            mailto:alain.coron at lip.bhdc.jussieu.fr
Laboratoire d'Imagerie Paramétrique - UMR CNRS 7623
15, rue de l'école de médecine - 75006 PARIS
tél. : +33 1 44 41 96 10 - fax. : +33 1 46 33 56 73
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030707/fc1f0da4/attachment.txt>


More information about the vtkusers mailing list