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. Add QT application files to Yocto recipe
Forum Updated to NodeBB v4.3 + New Features

Add QT application files to Yocto recipe

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 735 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.
  • M Offline
    M Offline
    Mugiwara007
    wrote on 28 Feb 2022, 18:28 last edited by
    #1

    Re: Yocto & pro, How to compile

    I am trying to add my local qt project files in a yocto image which contains meta-qt5 layers. However I am not sure which files to refer thorugh SRC_URI in my recipe. Should the recipe contain all the files such as .pro, .cpp, and .h files in the bb file. The recipe file that I have made is given below. Kindly let me know if it is the correct approach or if there is anything that is required to be changed or added in it.

    The name of my QT application is "hi" and the name of my recipe is "helloworld."

    DESCRIPTION = "A friendly program that shows Hello World Window!"
    PRIORITY = "optional"
    SECTION = "examples"
    LICENSE = "MIT"
    LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

    inherit qmake5

    SRC_URI += "file://main.cpp \
    file://hi.pro
    file://hi.pro.user
    file://mainwindow.cpp \
    file://mainwindow.h
    file://ui_mainwindow.h \
    file://mainwindow.ui"

    S = "${WORKDIR}"

    DEPENDS += "qtbase"

    do_install_append() {
    install -d ${D}/opt/app
    install -m 0755 hi ${D}/opt/app/hi
    }

    FILES_${PN} += "/opt/app/hi"

    inherit qmake5

    1 Reply Last reply
    0

    1/1

    28 Feb 2022, 18:28

    • Login

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