Deploy on remote windows/android device
-
@jsulm
I do not quite understand how to do this. Do I need to use Debug > Start Debugging > Attach to Running Debug Server?@JobRecrd said in Deploy on remote windows/android device:
Do I need to use Debug > Start Debugging > Attach to Running Debug Server?
This is for debugging, not deploying.
You would first need to deploy it to the remote machine.
I'm not sure QtCreator supports deployment to a Windows machine.
If you go to "Options/Devices/Devices" you can only add Linux QNX devices, no Windows.
You should be able to add a deployment step in your pro file (but can't tell you exactly how).
Or you create a package using windeployqt, copy it manually to the remote machine and start it there. -
The documentation shows how to do this for Linux and QNX, is there such a possibility on Windows and Android?
@JobRecrd Can you be more specific?
For android QtCreator should already create an apk package to deploy it to the device (it should even deploy to connected device).
For Windows see: https://doc.qt.io/qt-5/windows-deployment.html
-
@JobRecrd Can you be more specific?
For android QtCreator should already create an apk package to deploy it to the device (it should even deploy to connected device).
For Windows see: https://doc.qt.io/qt-5/windows-deployment.html
-
@JobRecrd What is your use case? Can you please explain what you want to do?
For Windows you can create a package (as explained in the link) containing your app and all needed Qt stuff and upload this package to your remote device and use it there.But you did not say anything about this remote device! What is it? What OS is there? How do you access it?
-
@JobRecrd What is your use case? Can you please explain what you want to do?
For Windows you can create a package (as explained in the link) containing your app and all needed Qt stuff and upload this package to your remote device and use it there.But you did not say anything about this remote device! What is it? What OS is there? How do you access it?
-
@jsulm
I do not quite understand how to do this. Do I need to use Debug > Start Debugging > Attach to Running Debug Server?@JobRecrd said in Deploy on remote windows/android device:
Do I need to use Debug > Start Debugging > Attach to Running Debug Server?
This is for debugging, not deploying.
You would first need to deploy it to the remote machine.
I'm not sure QtCreator supports deployment to a Windows machine.
If you go to "Options/Devices/Devices" you can only add Linux QNX devices, no Windows.
You should be able to add a deployment step in your pro file (but can't tell you exactly how).
Or you create a package using windeployqt, copy it manually to the remote machine and start it there. -
I think what he is trying to do is to start a remote debug session on a different windows machine. He means by deploying:
- Copy newly compiled outputs to remote (Win machine)
- Start a debug session on remote, which is controlled from local machine
This should be possible by following this guide : https://doc.qt.io/qtcreator/creator-debugger-operating-modes.html - header Remote Debugging
Unfortunately I could not start a full functional debug session with this guide. Is there somebody who could share how to configure it successfully?