[vtkusers] CMAKE + VTK + QT

Nicolas RANNOU nrannou at bwh.harvard.edu
Tue Sep 15 14:23:24 EDT 2009


Thanks Clint I missed it...

So no I turned on VTK_USE_QVTK and VTK_USE_GUISUPPORT.
but during the configuration of the cmake, when I set the
QT_DESIRED_VERSION to 4 then when I configure it again,  cmake is not able
to find qt:

cmake output:
Qt was not found


same error when I set the path to the qmake executable manually:

 QT_QMAKE_EXECUTABLE              /usr/bin/qmake-NOTFOUND 

...

Thanks, 

Nicolas  


On Tue, 15 Sep 2009 11:16:48 -0600, Clinton Stimpson <clinton at elemtech.com>
wrote:
> 
>>
>> A strange thing I must have noticed first, is that when I built vtk, I
>> can't turn on/off  VTK_USE_QVTK and VTK_USE_GUISUPPORT.
>>
>> The options are not available in cmake when I run "ccmake ../VTK", to
>> configure cmakelists before building VTK.
>>
> 
> Hit the 't' button in ccmake to see advanced variables.
> You'll see VTK_USE_GUISUPPORT.  Turn it on, and configure again, then
> VTK_USE_QVTK will show up.  Turn it on, then configure again.  Then the
Qt
> related variables will show up.
> 
> So yes, you need to build VTK with Qt support before you can build
> examples.
> Or, install the libvtk5-qt4-dev package (from previous messages, you were
> using ubuntu, right?), if you don't have a real reason to build it
> yourself.
> 
> Clint




More information about the vtkusers mailing list