我正在尝试使用qt5在yocto中编译Falkon浏览器,aftre resreved在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 \
"
还有什么要补充的。我认为安装变量问题?
答案 0 :(得分:0)
您只需打开falkon源代码中的Cmakefiles.txt,查看所需的qt5版本。 我认为这个falkon浏览器需要至少qt5.9。我猜你使用的是最低版本。所以将你的qt5版本升级到qt5.9 或者选择需要qt5.6的低版本的falkon。