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. Why must all project files be deployed to the device??
Forum Updated to NodeBB v4.3 + New Features

Why must all project files be deployed to the device??

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 763 Views 2 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by Diracsbracket
    #1

    Hi,
    I just got started with cross-compilation on Qt Creator for my Raspberry Pi 2.
    I wanted to test one of the examples in the Qtbase package. The build is OK, and when I manually copy the widget over to the Pi and run it, it works fine.

    However, when I try to deploy it from Qt Creator, in the Run settings (Projects -> Build & Run -> Run), all the files are included in the "Files to deploy" list, and they cannot be removed. I only need the compiled widget to be deployed and run of course.
    How can I achieve this?

    Also, the Remote Directory to which the files are copied is the same full directory structure of the source files on the host, which is also not what I want of course. How can I change this?

    Thanks for your help on this!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you retry this with a default project ?

      I may be wrong but I think it comes from the configuration of the examples themselves. See the "install" part of their .pro file.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • DiracsbracketD Offline
        DiracsbracketD Offline
        Diracsbracket
        wrote on last edited by Diracsbracket
        #3

        Hi SGaist.

        In my .pro file, I commented out the following lines:
        #target.path = $$[QT_INSTALL_EXAMPLES]/opengl/qopenglwidget
        #INSTALLS += target

        And replaced them by:

        TARGET = qopenglwidget
        target.path = /home/pi
        INSTALLS = target

        This solves my "problem".
        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