Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
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.kana...@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@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
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.kana...@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@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
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@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
Not sure if this is the right way to solve it but since all the recipes have there own sysroot you need to make sure that the QT_INSTALL_PREFIX is pointing to the right sysroot it should not point to the qt4-native sysroot since that might not exist especially if using rm_work. Create a qt.conf file for your recipe and and then implement a do_configure_prepand where you set the QT_INSTALL_PREFIX to point to the recipe sysroot. My ended up looking like this. [Paths] Prefix = "@WORKDIR@/recipe-sysroot-native/" Binaries = "usr/bin" in do_configure_prepand do_configure_prepend() { sed -i -e 's,@WORKDIR@,${WORKDIR},g' ${WORKDIR}/qt.conf } 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. BR Mans Zigher 2018-02-21 16:49 GMT+01:00 Måns Zigher: > Shouldn't it actually point to sysroot-components? Even if the directory > would actually exists and containing the moc4 then what if the recipe is > cleared after building qt4-native it would break. Is the problem that > qt4-native is actually broken for rocko? > > BR > Mans Zigher > > 2018-02-21 15:51 GMT+01:00 Måns Zigher : > >> After some more investigation I realized that qmake is actually detected >> correctly the problem is that when running qmake2 -query I get the >> following results >> >> qmake2 -query >> >> QT_INSTALL_PREFIX:/home/build/tmp/work/x86_64-linux/qt4-nati >> ve/4.8.7-r0/recipe-sysroot-native/usr >> >> >> QT_INSTALL_DATA:/home/build/tmp/work/x86_64-linux/qt4-native >> /4.8.7-r0/recipe-sysroot-native/usr/share/qt4 >> >> >> QT_INSTALL_DOCS:/home/build/tmp/work/x86_64-linux/qt4-native >> /4.8.7-r0/recipe-sysroot-native/usr/share/doc/qt4 >> >> >> QT_INSTALL_HEADERS:/home/build/tmp/work/x86_64-linux/qt4-nat >> ive/4.8.7-r0/recipe-sysroot-native/usr/include/qt4 >> >> >> QT_INSTALL_LIBS:/home/build/tmp/work/x86_64-linux/qt4-native >> /4.8.7-r0/recipe-sysroot-native/usr/lib >> >> >> QT_INSTALL_BINS:/home/build/tmp/work/x86_64-linux/qt4-native >> /4.8.7-r0/recipe-sysroot-native/usr/bin >> >> >> QT_INSTALL_PLUGINS:/home/build/tmp/work/x86_64-linux/qt4-nat >> ive/4.8.7-r0/recipe-sysroot-native/usr/lib/qt4/plugins >> >> >> QT_INSTALL_IMPORTS:/home/build/tmp/work/x86_64-linux/qt4-nat >> ive/4.8.7-r0/recipe-sysroot-native/usr/lib/qt4/imports >> >> >> QT_INSTALL_TRANSLATIONS:/home/build/tmp/work/x86_64-linux/qt >> 4-native/4.8.7-r0/recipe-sysroot-native/usr/share/qt4/translations >> >> >> QT_INSTALL_CONFIGURATION:/home/build/tmp/work/x86_64-linux/q >> t4-native/4.8.7-r0/recipe-sysroot-native/etc/qt4 >> >> >> QT_INSTALL_EXAMPLES:/home/build/tmp/work/x86_64-linux/qt4-na >> tive/4.8.7-r0/recipe-sysroot-native/usr/bin/qt4/examples >> >> >> QT_INSTALL_DEMOS:/home/build/tmp/work/x86_64-linux/qt4-nativ >> e/4.8.7-r0/recipe-sysroot-native/usr/bin/qt4/demos >> >> >> QMAKE_MKSPECS:/home/build/tmp/work/x86_64-linux/qt4-native/4 >> .8.7-r0/recipe-sysroot-native/usr/share/qt4/mkspecs >> >> >> QMAKE_VERSION:2.01a >> QT_VERSION:4.8.7 >> >> QT_INSTALL_BINS:/home/build/tmp/work/x86_64-linux/qt4-native >> /4.8.7-r0/recipe-sysroot-native/usr/bin is a directory that is none >> existing. >> >> BR >> Mans Zigher >> >> >> 2018-02-21 13:13 GMT+01:00 Måns Zigher : >> >>> 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 : >>> 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/
Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
Shouldn't it actually point to sysroot-components? Even if the directory would actually exists and containing the moc4 then what if the recipe is cleared after building qt4-native it would break. Is the problem that qt4-native is actually broken for rocko? BR Mans Zigher 2018-02-21 15:51 GMT+01:00 Måns Zigher: > After some more investigation I realized that qmake is actually detected > correctly the problem is that when running qmake2 -query I get the > following results > > qmake2 -query > > QT_INSTALL_PREFIX:/home/build/tmp/work/x86_64-linux/qt4-nati > ve/4.8.7-r0/recipe-sysroot-native/usr > > > QT_INSTALL_DATA:/home/build/tmp/work/x86_64-linux/qt4-native > /4.8.7-r0/recipe-sysroot-native/usr/share/qt4 > > > QT_INSTALL_DOCS:/home/build/tmp/work/x86_64-linux/qt4-native > /4.8.7-r0/recipe-sysroot-native/usr/share/doc/qt4 > > > QT_INSTALL_HEADERS:/home/build/tmp/work/x86_64-linux/qt4- > native/4.8.7-r0/recipe-sysroot-native/usr/include/qt4 > > > QT_INSTALL_LIBS:/home/build/tmp/work/x86_64-linux/qt4-native > /4.8.7-r0/recipe-sysroot-native/usr/lib > > > QT_INSTALL_BINS:/home/build/tmp/work/x86_64-linux/qt4-native > /4.8.7-r0/recipe-sysroot-native/usr/bin > > > QT_INSTALL_PLUGINS:/home/build/tmp/work/x86_64-linux/qt4- > native/4.8.7-r0/recipe-sysroot-native/usr/lib/qt4/plugins > > > QT_INSTALL_IMPORTS:/home/build/tmp/work/x86_64-linux/qt4- > native/4.8.7-r0/recipe-sysroot-native/usr/lib/qt4/imports > > > QT_INSTALL_TRANSLATIONS:/home/build/tmp/work/x86_64-linux/qt > 4-native/4.8.7-r0/recipe-sysroot-native/usr/share/qt4/translations > > > QT_INSTALL_CONFIGURATION:/home/build/tmp/work/x86_64-linux/ > qt4-native/4.8.7-r0/recipe-sysroot-native/etc/qt4 > > > QT_INSTALL_EXAMPLES:/home/build/tmp/work/x86_64-linux/qt4- > native/4.8.7-r0/recipe-sysroot-native/usr/bin/qt4/examples > > > QT_INSTALL_DEMOS:/home/build/tmp/work/x86_64-linux/qt4-nativ > e/4.8.7-r0/recipe-sysroot-native/usr/bin/qt4/demos > > > QMAKE_MKSPECS:/home/build/tmp/work/x86_64-linux/qt4-native/4 > .8.7-r0/recipe-sysroot-native/usr/share/qt4/mkspecs > > > QMAKE_VERSION:2.01a > QT_VERSION:4.8.7 > > QT_INSTALL_BINS:/home/build/tmp/work/x86_64-linux/qt4-native > /4.8.7-r0/recipe-sysroot-native/usr/bin is a directory that is none > existing. > > BR > Mans Zigher > > > 2018-02-21 13:13 GMT+01:00 Måns Zigher : > >> 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 : >> >>> 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 >>> >>> >> > -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
After some more investigation I realized that qmake is actually detected correctly the problem is that when running qmake2 -query I get the following results qmake2 -query QT_INSTALL_PREFIX:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr QT_INSTALL_DATA:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr/share/qt4 QT_INSTALL_DOCS:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr/share/doc/qt4 QT_INSTALL_HEADERS:/home/build/tmp/work/x86_64-linux/ qt4-native/4.8.7-r0/recipe-sysroot-native/usr/include/qt4 QT_INSTALL_LIBS:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr/lib QT_INSTALL_BINS:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr/bin QT_INSTALL_PLUGINS:/home/build/tmp/work/x86_64-linux/ qt4-native/4.8.7-r0/recipe-sysroot-native/usr/lib/qt4/plugins QT_INSTALL_IMPORTS:/home/build/tmp/work/x86_64-linux/ qt4-native/4.8.7-r0/recipe-sysroot-native/usr/lib/qt4/imports QT_INSTALL_TRANSLATIONS:/home/build/tmp/work/x86_64-linux/ qt4-native/4.8.7-r0/recipe-sysroot-native/usr/share/qt4/translations QT_INSTALL_CONFIGURATION:/home/build/tmp/work/x86_64- linux/qt4-native/4.8.7-r0/recipe-sysroot-native/etc/qt4 QT_INSTALL_EXAMPLES:/home/build/tmp/work/x86_64-linux/ qt4-native/4.8.7-r0/recipe-sysroot-native/usr/bin/qt4/examples QT_INSTALL_DEMOS:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr/bin/qt4/demos QMAKE_MKSPECS:/home/build/tmp/work/x86_64-linux/qt4-native/ 4.8.7-r0/recipe-sysroot-native/usr/share/qt4/mkspecs QMAKE_VERSION:2.01a QT_VERSION:4.8.7 QT_INSTALL_BINS:/home/build/tmp/work/x86_64-linux/qt4- native/4.8.7-r0/recipe-sysroot-native/usr/bin is a directory that is none existing. BR Mans Zigher 2018-02-21 13:13 GMT+01:00 Måns Zigher: > 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 : > >> 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 >> >> > -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
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: > 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 > > -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-qt4] Cmake Could NOT find Qt4, missing: QT_MOC_EXECUTABLE
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/share/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- sysroot-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 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel