[CMake] CMake Error: Qt5::moc target not found ?
Martin Koller
kollix at aon.at
Thu Mar 20 07:45:26 EDT 2014
On Thursday 20 March 2014 12:27:09 Bogdan Cristea wrote:
> Have you set CMAKE_PREFIX_PATH to the path of your Qt5 installation folder ?
no. I tried now, but it makes no difference.
I thought this CMAKE_PREFIX_PATH is only needed when I use the find* methods so
that cmake finds the files/programs I'm looking for.
But as said, I either specify the absolute path or I use e.g.
find_host_program(QT_MOC_EXECUTABLE moc ${QTDIR}/bin NO_DEFAULT_PATH)
with the option NO_DEFAULT_PATH, so CMAKE_PREFIX_PATH should not be used.
>
>
> On 20 Mar 2014, at 12:18, Martin Koller <kollix at aon.at> wrote:
>
> > I want to build a program on CentOS 6, which does not have Qt5.
> > Therefore I have installed Qt5 into /home/koller/Qt5
> >
> > As we usually build Qt on our own and deliver it with the product,
> > I do not use find_package to find Qt but I just set some
> > cmake variables which are needed, e.g.
> > QT_VERSION_MAJOR, QT_MOC_EXECUTABLE, etc.
> > e.g. by:
> > find_host_program(QT_MOC_EXECUTABLE moc ${QTDIR}/bin NO_DEFAULT_PATH)
> >
> >
> > However bulding on CentOS 6 gives me the following error
> > (and a lot others like this) which I have no idea what cmake
> > wants to tell me with:
> > CMake Error: Qt5::moc target not found ui_automoc
> >
> > what does that mean ?
> >
> > Note that the same cmake files work well on openSuse 13.1
> > where I have installed Qt5 from the openSuse repository.
> >
>
--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
More information about the CMake
mailing list