[vtkusers] Compile QT 4.4.

clinton at elemtech.com clinton at elemtech.com
Wed Nov 12 14:49:48 EST 2008


You're supposed to set the desired qt version to "4" or "3" not "4.4"

Clint

On Wednesday 12 November 2008 3:45:14 pm Dongqing Chen wrote:
> Hi, Eric:
>
>   Thanks for your instruction.
>
>   1). I downloaded and installed Qt 4.4.3 and VTK 5.2 on my computer. As
> before, I compiled VTK 5.2 using CMake2.4 and bulit using VC++ 6
> sucessfully with with BUILD_EXAMPLES: ON and VTK_USE_INFOVIS: ON.
>
>  2). After installing the Qt 4.4.3, I run the configure command under Qt
> folder.
>
>  3). When I complied Qt 4.4.3 with VTK 5.2 using CMake 2.4 with
> VTK_USE_GUISUPPORT: ON and VTK_USE_QVTK: ON. Unfortunately, an error
> appeared and  the CMake could not find the desired Qt 4.4, which I
> specified in CMake. Please see the attached screen snapshot.
>
> 4). Some patches of the CMakelists are listed as follows.
>
> ***************************************************************************
>******************************* INCLUDE(
> ${CMAKE_ROOT}/Modules/FindQt${DESIRED_QT_VERSION}.cmake )
>
> IF(NOT QT_FOUND)
>   MESSAGE("Qt was not found")
> ELSE(NOT QT_FOUND)
> ***************************************************************************
>*******************************
>
> Also the entire CMakelist.txt is attached.
>
>  Since it is my first time to compile QT, please forgive me for any
> ignorance.
>
> Best Wishes,
> ---------------------------------------------------------------------------
>-- Dongqing Chen, Ph.D.
> Computer Vision & Image Processing (CVIP) Lab
> Department of Electrical & Computer Engineering
> Speed School of Engineering
> University of Louisville
> Louisville, KY, 40292
> U.S.A
> email: dqchen at cvip.louisville.edu
> phone: 1-502-852-2789 (Lab)
>              1-502-852-6130 (Office)
> ---------------------------------------------------------------------------
>- ----- Original Message -----
>   From: Eric E. Monson
>   To: Dongqing Chen
>   Cc: VTK Users
>   Sent: Wednesday, November 12, 2008 6:19 AM
>   Subject: Re: [vtkusers] VTKDiCOMImage Reader and QT 4.4.
>
>
>   Hello Dongqing,
>
>
>   I can't answer number 1, but as to number 2: There are two examples I
> have found especially helpful in compiling Qt along with VTK --
> VTK/Examples/GUI/Qt/SimpleView and VTK/Examples/Infovis/Cxx/EasyView. Both
> of them have CMakeList.txt files which should help you get started using
> CMake to compile your project which includes both Qt and VTK.
>
>
>   You can try these applications out by compiling VTK with BUILD_EXAMPLES:
> ON and VTK_USE_INFOVIS: ON. To build the QVTKWidget, which can be used
> along with Qt Designer, build VTK with VTK_USE_GUISUPPORT: ON and
> VTK_USE_QVTK: ON.
>
>
>   I know this doesn't give too many details, but I hope it helps get you
> started, -Eric
>
>
>   ------------------------------------------------------
>   Eric E Monson
>   Duke Visualization Technology Group





More information about the vtkusers mailing list