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 & pro, How to compile
Forum Updated to NodeBB v4.3 + New Features

Yocto & pro, How to compile

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 441 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.
  • R Offline
    R Offline
    robin7863
    wrote on last edited by
    #1

    I 've put meta-qt5 into my Yocto project , and gotten img already.
    Then How to integrate a QT app ,which have only src and .pro, into a yocto project?

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

      Create a meta layer using bitbake-layers create-layer , then create the recipes-qt / name_you_project/name_you_project_git.bb directories within your layer.

      Example name_you_project_git.bb

      SUMMARY = "Qt Application Demo"
      DESCRIPTION = "Description your project"
      LICENSE = "MIT"
      LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
      
      DEPENDS += "qtbase"
      
      SRC_URI = "git://github.com/<user_repo>/<name_you_repo_project>"
      SRCREV = "COMMIT_HERE"
      
      S = "${WORKDIR}/git"
      
      do_install_append() {
          install -d ${D}/opt/app/
          install -m 0755 your_program ${D}/opt/app/your_program
      }
      
      FILES_${PN} += "/opt/app/your_program"
      
      inherit qmake5
      

      After execute: bitbake name_you_project

      We work with Qt5 consultancy with Yocto Project if you need to.


      Cleiton Bueno

      Blog | Linkedin | B2Open

      1 Reply Last reply
      0
      • R Offline
        R Offline
        robin7863
        wrote on last edited by
        #3

        @Cleiton-Bueno Thanks

        1 Reply Last reply
        0

        • Login

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