Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Yocto Recipe for Building QT5 App
Forum Updated to NodeBB v4.3 + New Features

Yocto Recipe for Building QT5 App

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 4 Posters 8.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kengineer
    wrote on last edited by kengineer
    #1

    Is this something normally done with Yocto? I noticed that demo QT5 recipe apps contained in both the meta-qt5 layer and from my SOC vendor's bsp layer seem to simply pull tarballs/archives of the built application down from a remote repo rather than pulling any source and building it.

    Yocto actually has a wiki article regarding building qt4 apps but I haven't seen anything anywhere about building qt5 from source with Yocto/bitbake:
    https://wiki.yoctoproject.org/wiki/Creating_a_recipe_for_a_Qt_application

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kengineer
      wrote on last edited by
      #2

      Actually after examining it closer, it looks like maybe I was mistaken that they are being built. The recipes are relying on inheriting the "qmake5" class via "inherit qmake5."

      1 Reply Last reply
      0
      • mranger90M Offline
        mranger90M Offline
        mranger90
        wrote on last edited by
        #3

        Would this help ?
        https://www.ics.com/blog/yocto-quick-start

        1 Reply Last reply
        2
        • Cleiton BuenoC Offline
          Cleiton BuenoC Offline
          Cleiton Bueno
          wrote on last edited by Cleiton Bueno
          #4

          Using this demo application:
          https://github.com/b2open/simpleDemoQt5Quick

          I have this example recipe, which I use to validate Yocto Project images with Qt5.

          demo-b2clock_1.0.bb

          SUMMARY = "Application Qt5 demo using Qt5 with QtQuick2"
          AUTHOR = "Cleiton Bueno"
          DESCRIPTION = " \
                         Application development in Qt5 with QtQuick2 to simple test \
                         instalation framework Qt5 \
                         "
          HOMEPAGE = "http://www.b2open.com"
          
          LICENSE = "( Apache-2.0 & BSD )"
          LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
          
          DEPENDS += "qtbase qtquickcontrols2"
          
          SRC_URI = "\
                     git://github.com/b2open/simpleDemoQt5Quick.git;branch=master \
              "
          SRCREV = "dc1af35cabe6e8efb302da338e22c64f38e639d3"
          
          S = "${WORKDIR}/git"
          
          COMPATIBLE_MACHINE = "mx6"
          
          do_install_append() {
            install -d ${D}/opt/b2open/bin/
          }
          
          FILES_${PN} += "/opt/b2open/bin"
          
          inherit qmake5
          

          Cleiton Bueno

          Blog | Linkedin | B2Open

          1 Reply Last reply
          4
          • D Offline
            D Offline
            dhu0504
            wrote on last edited by
            #5

            Its working fine. Thanks

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved