Use Qt creator to create remote linux application
-
Hello,
I'm having troubles to create a qt aplication with qt creator for remote linux devices.The problem is i can't set the target path in the run settings :
remote directory : <no target path set>
According to "Qt reference documentation":http://doc.qt.nokia.com/qtcreator-2.5/creator-deployment-maemo.html
I know I must modifie the .pro file but .. how?
I find on this forum the folowing solution (which does not work):
add the following lines of the .pro file:
@
linux-* {
target.path = /home/username/executable
}
@
I also try to use the DEPLOYMENT, DESTDIR and DESTDIR_TARGET variables without results.
==> always "<no target path set>" in the Run settings ...
Ragards,
Mickael -
I'm having the same problem. The documentation is surprisingly vague, but I've found that:
[CODE]
linux-* {
target.path = ssh://yourname@xxx.xxx.xxx.xxx/remote/directory
INSTALLS += target
}
[/CODE]at least shows up in the target path. I haven't tried to deploy it yet, but it's a start!
But see correction below!
(Sorry, I'd have edited this post if I'd realised it was possible.)
-
PS: I'm assuming it's an SSH connection. If not, change as appropriate, but the principle would be the same.
-
Correction: You don't have to put the full path in 'target.path...'. Instead click the 'Manage device configuration' link. This brings up a very straightforward wizard which allows you to set up your connection details, including the file path.
The .pro file entry can then be as simple as:
[CODE]
linux-* {
target.path = ./
INSTALLS += target
}
[/CODE]
as the path is now in the device configuration.It worked first time!
-
[quote author="Exeunt Omnes" date="1340222214"]
The .pro file entry can then be as simple as:
[CODE]
linux-* {
target.path = ./
INSTALLS += target
}
[/CODE]
as the path is now in the device configuration.
It worked first time![/quote]
Thank you very much!!!
It`s really worked!