[CMake] RE: Qt 4.0 support in CMake and VTK
Moreland, Kenneth
kmorel at sandia.gov
Thu Aug 25 10:20:31 EDT 2005
> Did you have Qt4's qmake in the PATH ?
> QT_MOC_EXECUTABLE needs to be set to your Qt4's moc.
>
Yes. The problem is that FindQt.cmake does not set QT_MOC_EXECUTABLE
anywhere. Where is QT_MOC_EXECUTABLE being set?
-Ken
> Clint
>
> Quoting "Moreland, Kenneth" <kmorel at sandia.gov>:
>
> > I just checked out the CVS trunk of CMake and tried to compile VTK
> > with Qt 4.0 (on a Mac, to make things as complicated as possible).
> > After turning on Qt support, ccmake gives an error about
> > QT_MOC_EXECUTABLE not being set.
> >
> > If I add the line
> >
> > QT_MOC_EXECUTABLE:PATH=NOTFOUND
> >
> > to CMakeCache.txt, ccmake configures without any problem. I just
> > started the compile so I don't know if it configured
> correctly. Does
> > CMake still have a check for QT_MOC_EXECUTABLE that should
> no longer
> > be there?
> >
> > -Ken
> >
> > **** Kenneth Moreland
> > *** Sandia National Laboratories
> > ***********
> > *** *** *** email: kmorel at sandia.gov
> > ** *** ** phone: (505) 844-8919
> > *** fax: (505) 845-0833
> >
> >
> >> -----Original Message-----
> >> From: Clinton Stimpson [mailto:clinton at elemtech.com]
> >> Sent: Wednesday, August 10, 2005 9:01 AM
> >> To: Moreland, Kenneth
> >> Cc: Ken Martin; Wylie, Brian
> >> Subject: Re: Qt 4.0 support in CMake and VTK
> >>
> >> The patches are all in. Feel free to try it and see how
> it works for
> >> you.
> >> Clint
> >>
> >> Moreland, Kenneth wrote:
> >>
> >> >Thanks, Clinton. That's good news.
> >> >
> >> >It looks like the safest thing to do is to wait for that
> >> CMake patch.
> >> >I am going to assume that it will be available in the next
> >> release of
> >> >CMake. Does anyone know when CMake 2.2 (or at least the
> next beta
> >> >version of CMake 2.2) is to be released?
> >> >
> >> >-Ken
> >> >
> >> >
> >> >
> >> >>-----Original Message-----
> >> >>From: Clinton Stimpson [mailto:clinton at elemtech.com]
> >> >>Sent: Friday, August 05, 2005 10:19 AM
> >> >>To: Moreland, Kenneth
> >> >>Cc: Ken Martin; Wylie, Brian
> >> >>Subject: Re: Qt 4.0 support in CMake and VTK
> >> >>
> >> >>Moreland, Kenneth wrote:
> >> >>
> >> >>
> >> >>
> >> >>>Ken,
> >> >>>
> >> >>>Now that Qt 4.0 is officially released, we are anxious to
> >> >>>
> >> >>>
> >> >>start using
> >> >>
> >> >>
> >> >>>it before we dive any more deeply into our Qt development.
> >> What is
> >> >>>holding us back right now is the support of Qt 4.0 by CMake
> >> >>>
> >> >>>
> >> >>and VTK.
> >> >>>From what I understand, the CVS trunk of CMake has a script
> >> >>to find the
> >> >>
> >> >>
> >> >>>Qt 4.0 install, but no commands or macros to call the moc or
> >> >>>
> >> >>>
> >> >>uic commands.
> >> >>
> >> >>
> >> >>I gave those to Bill Hoffman which he committed a few
> days ago into
> >> >>CMake, along with other fixes since.
> >> >>There's one more patch I emailed Bill yesterday that I'm
> >> waiting for
> >> >>him to commit.
> >> >>
> >> >>
> >> >>
> >> >>>Also, VTK has source that supports QVTK for Qt 4.0, but
> >> you need to
> >> >>>hack the CMake files to get it to find Qt 4.0 and compile
> >> correctly.
> >> >>>
> >> >>>
> >> >>>
> >> >>I just checked stuff into VTK to build w/Qt4 and CVS CMake, this
> >> >>morning.
> >> >>If you aren't using VTKConfigQt.cmake, it should build fine
> >> for you on
> >> >>Windows and Unix. Otherwise, you need that last patch I
> gave Bill.
> >> >>You'll also need that last patch if you are building on the Mac.
> >> >>The Qt examples don't build yet w/Qt4. I'm 1/2 way through with
> >> >>those.
> >> >>
> >> >>Clint
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
> >
>
>
>
>
More information about the CMake
mailing list