Qt Creator won't upload executable, but runs from terminal
-
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 -
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@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.
-
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. -
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.@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. -
Thank you again. I deleted the .pro.user but I still get the same output message. This is my Build tab.

-
and indeed there is no /opt/test5
-
Solved.
My Kits - Desktop Device Type was "QNX Device". Changed to "Desktop" and everything works. Thanks for the advice.