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 `DEPENDS` does not make available application for cmake
Forum Updated to NodeBB v4.3 + New Features

Yocto `DEPENDS` does not make available application for cmake

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 922 Views 1 Watching
  • 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.
  • MesrineM Offline
    MesrineM Offline
    Mesrine
    wrote on last edited by
    #1

    Hello everyone,
    This is not related directly to qt but you could know the solution.
    I am working with yocto.

    I have a recipe called dep that installs a library and an executable using cmake. Cmake installs a package called dep.

    And also have other recipes root that says

    DEPENDS = " dep "
    

    root recipe use cmake find_package to find the dep package.

    Cmake is able to find the library but not the executable in the 'in the appropriate staging sysroot,' .
    Because the executable from dep recipes is not on the root recipe staging sysroot.
    This throws an error when configuring cmake for the root recipe.

    I can see that in the root recipe staging sysroot are present the required libraries and also qmake and qt-cmake from Qt, but not my executable.

    How can make available to the root recipe staging sysroot the executable installed in the dep recipe?

    Thank you for your time.

    MesrineM 1 Reply Last reply
    0
    • MesrineM Mesrine

      Hello everyone,
      This is not related directly to qt but you could know the solution.
      I am working with yocto.

      I have a recipe called dep that installs a library and an executable using cmake. Cmake installs a package called dep.

      And also have other recipes root that says

      DEPENDS = " dep "
      

      root recipe use cmake find_package to find the dep package.

      Cmake is able to find the library but not the executable in the 'in the appropriate staging sysroot,' .
      Because the executable from dep recipes is not on the root recipe staging sysroot.
      This throws an error when configuring cmake for the root recipe.

      I can see that in the root recipe staging sysroot are present the required libraries and also qmake and qt-cmake from Qt, but not my executable.

      How can make available to the root recipe staging sysroot the executable installed in the dep recipe?

      Thank you for your time.

      MesrineM Offline
      MesrineM Offline
      Mesrine
      wrote on last edited by
      #2

      @Mesrine

      The solution is to add in the dep recipe

      SYSROOT_DIRS += " ${bindir} "
      

      because the bin dir is not added by defaults as explained here.

      1 Reply Last reply
      0
      • MesrineM Mesrine has marked this topic as solved on

      • Login

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