[oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE

Måns Zigher mans.zigher at gmail.com
Wed Feb 21 12:13:08 UTC 2018


When running devshell I can verify that echo $PATH includes the
recipe-sysroot-native dir and if I run "whereis qmake2" the
recipe-sysroot-native dir appears. So the question remains why is CMake not
detecting the binaries?

BR
Mans Zigher

2018-02-21 13:02 GMT+01:00 Måns Zigher <mans.zigher at gmail.com>:

> Hi,
>
> I am trying to build a native QT application that is required when
> generating the image. The recipe is depending on qt4-native and i am using
> poky version rocko. The application is using CMake which is producing the
> following error
>
> | -- Looking for Q_WS_MAC - not found
> | CMake Error at recipe-sysroot-native/usr/shar
> e/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
>
> |   Could NOT find Qt4 (missing: QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE
> |   QT_UIC_EXECUTABLE) (found version "4.8.7")
> | Call Stack (most recent call first):
> |   recipe-sysroot-native/usr/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:377
> (_FPHSA_FAILURE_MESSAGE)
> |   recipe-sysroot-native/usr/share/cmake-3.8/Modules/FindQt4.cmake:1326
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> |   CMakeLists.txt:5 (find_package)
>
> When using jethro the recipe works fine. If I search for qmake2 in the
> build directory we get the following hits
>
> ./tmp/sysroots-components/x86_64/qt4-native/usr/bin/qmake2
> ./tmp/work/x86_64-linux/my-qt-application/0.1-r0/recipe-sysr
> oot-native/usr/bin/qmake2
> ./tmp/work/x86_64-linux/qt4-native/4.8.7-r0/sysroot-destdir/
> home/build/tmp/work/x86_64-linux/qt4-native/4.8.7-r0/
> recipe-sysroot-native/usr/bin/qmake2
>
> I would think that CMake should find qmake2 in the recipe-sysroot-native
> dir. Any help would be appreciated. How can I point CMake in the direction
> so it finds the qt tools.
>
> BR
> Måns Zigher
>
>



More information about the Openembedded-devel mailing list