代码之家  ›  专栏  ›  技术社区  ›  yoctotutor.com

yocto krogoth中falkon编译中的cmake错误

  •  0
  • yoctotutor.com  · 技术社区  · 6 年前

    我正在尝试使用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 \
    "
    

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

    1 回复  |  直到 6 年前
        1
  •  0
  •   rehana    6 年前

    您只需打开Cmakefiles。falkon源代码中的txt检查所需的qt5版本。 我认为这个falkon浏览器至少需要qt5。我猜你使用的是最低版本。因此,将您的qt5版本升级到qt5。9
    或者选择需要qt5的低版本falkon。6.