[vtkusers] CMAKE + VTK + QT

Nicolas RANNOU nrannou at bwh.harvard.edu
Tue Sep 15 14:35:09 EDT 2009


OK it seems that now it works. (it finds QT4 at least)

I just deleted the cmakecache and did ccmake again.

I will let you know if troubles appear again during the compilation of the
example.


Thanks,

Nicolas

On Tue, 15 Sep 2009 14:30:17 -0400, Nicolas RANNOU
<nrannou at bwh.harvard.edu> wrote:
> /usr/bin/qmake --version gives
> 
> QMake version 2.01a
> Using Qt version 4.5.0 in /usr/lib
> 
> Nicolas
> 
> 
> On Tue, 15 Sep 2009 12:29:15 -0600, Clinton Stimpson
> <clinton at elemtech.com>
> wrote:
>>
>> And what does
>> /usr/bin/qmake --version give?
>>
>> Clint
>>
>> On Tuesday 15 September 2009 12:23:24 pm Nicolas RANNOU wrote:
>>> 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
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list