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

Freudiger, Raphael raphael.freudiger at siemens.com
Thu Mar 15 07:21:11 UTC 2018


The pathes that qmake returns are defined at compile time of qt4-native. As all recipes have their own sysroot now it cannot know the correct path anymore.
But cmake queries qmake for the binary path, which will return the wrong path.
For me it worked to set QT_BINARY_DIR in the recipe using qt4 explicitly.
Cmake will then search this directory for moc, rcc, etc. instead of the path returned by qmake.

EXTRA_OECMAKE_append = "  -DQT_BINARY_DIR=${RECIPE_SYSROOT_NATIVE}/usr/bin"

Regards
Raphael Freudiger

> On 02/28/2018 06:33 PM, Måns Zigher wrote:
> 
> This is some legacy the plane is to remove it shortly. Regarding patches, I am
> still not sure what the problem is since this occured when moving to rocko. If any
> ideas that can point me in the right direction I can supply patches.
> 
> Br
> Mans Zigher
> 
> On Feb 28, 2018 17:23, "Alexander Kanavin" <
> alexander.kanavin at linux.intel.com> wrote:
> 
> > On 02/22/2018 01:04 PM, Måns Zigher wrote:
> >
> >> This solved my problem I still couldn't figure out if the qt4-native
> >> is actually broken or if this is the way it should work now that each
> >> recipe have it's own sysroot.
> >>
> >
> > Do you have a Qt5 transition plan? meta-qt4 is not maintained or
> > tested regularly anymore, as there is no upstream support. If it
> > breaks, patches welcome.
> >
> > Alex
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


More information about the Openembedded-devel mailing list