[vtkusers] Building VTK with QtSDK

Cory Quammen cquammen at cs.unc.edu
Wed Jan 11 23:44:55 EST 2012


In my experience, all you need to do is to set the QT_QMAKE_EXECUTABLE
to point to the qmake.exe that comes with the QtSDK, and the rest of
the Qt-related variables will be set appropriately.

Hope that helps,
Cory

On Wed, Jan 11, 2012 at 11:29 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> I'm building VTK + VTK_USE_QT on Windows with QtSDK-4.7.3.  This is the
> first time I've tried to build VTK using the Qt SDK.  cmake-gui gives an
> error message:  Could not find Qt4.
> I have set the environment variable QTDIR, and added %QTDIR%\bin to the
> PATH.
> I have other programs that I build using Qt on this machine, but for these I
> am using QtCreator - which obviously knows where to find Qt4.
>
> Can someone tell me what I need to do to ensure that Qt4 is found by
> cmake-gui (i.e. by cmake's FIND_PACKAGE()) when using QtSDK?
>
> Thanks
> Gib
>
> _______________________________________________
> 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



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill



More information about the vtkusers mailing list