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 <[email protected]> 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
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake