[vtkusers] QVTKWidget CMakeLists.txt
Clinton Stimpson
clinton at elemtech.com
Thu Jul 28 13:13:27 EDT 2005
Yes, a new CMakeLists.txt file is needed. I'm waiting for CMake to have
complete support for Qt4 before changing the
GUISupport/Qt/CMakeLists.txt file
Clint
>
>Message: 2
>Date: Thu, 28 Jul 2005 11:07:02 -0400
>From: Adam Hooper <adamh at densi.com>
>Subject: [vtkusers] QVTKWidget CMakeLists.txt
>To: vtkusers at vtk.org
>Message-ID: <1122563222.2561.14.camel at localhost.localdomain>
>Content-Type: text/plain; charset="us-ascii"
>
>I'm trying to compile the QVTKWidget in GUISupport/Qt with QT4. I'm a
>CMake newbie, and I'm having trouble.
>
>First of all, I installed CMake from CVS. It's got FindQt.cmake and
>FindQt4.cmake in its Modules/. Since VTK's CMakeLists.txt has no mention
>of versions, I just modified FindQt.cmake to have SET(QT_MAX_VERSION
>"4.9.9") (instead of the default, "3.9.9").
>
>Next, I changed every "3" in GUISupport/Qt/CMakeLists.txt to "4".
>
>When I try to build VTK from CVS, the GUISupport/Qt/ directory's code
>simply won't compile. The first error: "qwidget.h" cannot be found. It
>is definitely installed and QT_QT_INCLUDE_DIR is set to the proper
>location. But the variable in GUISupport/Qt/CMakeLists.txt is named
>"QT_INCLUDE_DIR", not "QT_QT_INCLUDE_DIR". I changed that and re-ran
>cmake, but I get the same compile error (i.e., (I assume) there's still
>no "-I/usr/local/include/Qt" passed to the compiler).
>
>Has anybody else managed to compile this with the default FindQt.cmake
>in CMake CVS? Or is there another FindQt.cmake I should be using? Do I
>need a different CMakeLists.txt?
>
>
>
More information about the vtkusers
mailing list