Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Creator won't upload executable, but runs from terminal
Qt 6.11 is out! See what's new in the release blog

Qt Creator won't upload executable, but runs from terminal

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 2 Posters 818 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.
  • P Offline
    P Offline
    pierrealexis
    wrote on last edited by
    #1

    I have no experience on current Qt, though many years ago I used Qt3, apologies if this is a dumb configuration issue.
    II have just installed Qt 5 on Debian Buster. and I have tried a few very basic Widget applications using Qt Creator 4.8.2. In all cases when I try to run the executable it says:

    Failed to upload file "/home/abc/C_projects/build-test5-Desktop-Debug/test5"

    but if I open a terminal window in the appropriate directory and type

    ./test5

    I get:

    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

    and my GUI application opens and runs ok.
    I tried changing permissions on the directory and files but it still won't work.

    Thanks for any advice!
    Pierre Alexis

    jsulmJ 1 Reply Last reply
    0
    • P pierrealexis

      I have no experience on current Qt, though many years ago I used Qt3, apologies if this is a dumb configuration issue.
      II have just installed Qt 5 on Debian Buster. and I have tried a few very basic Widget applications using Qt Creator 4.8.2. In all cases when I try to run the executable it says:

      Failed to upload file "/home/abc/C_projects/build-test5-Desktop-Debug/test5"

      but if I open a terminal window in the appropriate directory and type

      ./test5

      I get:

      Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

      and my GUI application opens and runs ok.
      I tried changing permissions on the directory and files but it still won't work.

      Thanks for any advice!
      Pierre Alexis

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @pierrealexis said in Qt Creator won't upload executable, but runs from terminal:

      Failed to upload file

      This sounds like QtCreator tries to upload your executable. Did you add any "Deploy Step"? By default there should not be any and QtCreator should just start the executable from the build folder without uploading anything.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pierrealexis
        wrote on last edited by
        #3

        Thanks.
        I had selected "Always deploy project before running it" in Build&Run.
        I deselected it and now upon Run I get:

        13:50:20: Starting /opt/test5/bin/test5...
        bash: /var/run/qtc.4.pid: Permission denied
        bash: /opt/test5/bin/test5: No such file or directory
        13:50:20: Application finished with exit code 1.

        jsulmJ 1 Reply Last reply
        0
        • P pierrealexis

          Thanks.
          I had selected "Always deploy project before running it" in Build&Run.
          I deselected it and now upon Run I get:

          13:50:20: Starting /opt/test5/bin/test5...
          bash: /var/run/qtc.4.pid: Permission denied
          bash: /opt/test5/bin/test5: No such file or directory
          13:50:20: Application finished with exit code 1.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @pierrealexis You should check your Run configuration - there should not be any "/opt/test5".
          As alternative you can delete your *.pro.user files and open the project again in QtCreator.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pierrealexis
            wrote on last edited by
            #5

            Thank you again. I deleted the .pro.user but I still get the same output message. This is my Build tab.Screenshot from 2023-01-18 14-19-45.png

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pierrealexis
              wrote on last edited by
              #6

              and indeed there is no /opt/test5

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pierrealexis
                wrote on last edited by
                #7

                Solved.
                My Kits - Desktop Device Type was "QNX Device". Changed to "Desktop" and everything works. Thanks for the advice.

                1 Reply Last reply
                1

                • Login

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