yocto-krogoth 中 falkon 编译中的 cmake 错误

cmake error in falkon compilation in yocto-krogoth

我正在尝试使用 qt5 在 yocto 中编译 Falkon 浏览器,之后解决了很多错误,在 cmake 上出现如下错误。

| CMake Warning at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:7 (message):
|   SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined
| Call Stack (most recent call first):
|   /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:1 (find_package)
|   /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:459 (include)
|   CMakeLists.txt:15 (include)


| CMake Warning at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:43 (message):
|   Failed call: qmake-qt5 -query "QT_INSTALL_PREFIX"
| Call Stack (most recent call first):
|   /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:463 (query_qmake)
|   CMakeLists.txt:15 (include)

| CMake Error at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:44 (message):
|   QMake call failed: No such file or directory
| Call Stack (most recent call first):
|   /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:463 (query_qmake)
|   CMakeLists.txt:15 (include)

下面是我的食谱

DESCRIPTION = "falkon browser"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM=file://LICENSE.GPLv3;md5=8f0e2cd40e05189ec81232da84bd6e1a"
inherit qmake5 cmake systemd
require recipes-qt/qt5/qt5-git.inc

SRC_URI = "git://anongit.kde.org/falkon.git"
SRCREV = "${AUTOREV}"
DEPENDS = "qtbase qtdeclarative qtwebengine"
S = "${WORKDIR}/git"
PACKAGECONFIG ?= ""
PACKAGECONFIG[desktop] = "-DDESKTOP_BUILD,,"

RDEPENDS_${PN} += " \
    extra-cmake-modules \
    qtvirtualkeyboard \
    qtquickcontrols \
    qtwebengine \
    qtgraphicaleffects \
    qtmultimedia \
    ttf-dejavu \
"

有什么要补充的吗。我认为安装变量有问题?

你只要在falkon源中打开Cmakefiles.txt查看需要的qt5版本即可。 我认为这个 falkon 浏览器至少需要 qt5.9。我猜你使用的是最低版本。所以升级你的qt5版本到qt5.9.
或者选择需要 qt5.6 的低版本 falkon。