[vtkusers] Building VTK with QtSDK

Cory Quammen cquammen at cs.unc.edu
Thu Jan 12 08:01:21 EST 2012


Editting the CMakeCache.txt file is perfectly acceptable, but you
could also set the variable through cmake-gui.

Cory

On Thu, Jan 12, 2012 at 12:01 AM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> Thanks Cory!  I editted cmakecache.txt, and now the cmake step works.  Is
> this the right thing to do?
>
> Gib
>
>
> On 12/01/2012 5:44 p.m., Cory Quammen wrote:
>>
>> 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
>>>
>



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



More information about the vtkusers mailing list