Important: Please read the Qt Code of Conduct -

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

  • 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!

  • Lifetime Qt Champion

    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.

  • 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".

Log in to reply