[QtonPi] Problem with deployment in QtCreator 2.5.2
Tobias Kempkensteffen
tobias.kempkensteffen at gmail.com
Sat Oct 20 22:24:28 CEST 2012
Hi,
I build two scripts, which deploy programs to my raspberryPi and run it remotely:
https://gist.github.com/3924586
Instructions:
1) Copy the three files in any directory (but all in the same)
2) chmod u+x * (make all files executable)
3) Change piConfig.cfg
remote_ip: IP of raspberryPi
remote_user: ssh-username on raspberryPi
remote_progName: no need to be changed
remote_dir: directory on raspberryPi for deployed files
4) Open qtCreator --> open your Project --> "Projects" --> "Run Settings"
Deployment:
--> Method: Add (Deploy Configuration) --> Add Deployment Step (Custom Process Step)
--> Command: /path/to/scripts/deployPi.sh
--> Working Directory: %{buildDir}
--> Command arguments: /absolute/path/to/qml-folder (add absolute path for every additional file/folder which should be deployed - like folders with qml-files - separated by space)
Run:
--> Run configuration: Add (Custom Executable)
--> Executable: /path/to/scripts/runPi.sh
--> Working Directory: %{buildDir}
5) You have to be able to login to your raspberryPi without a password. Generate a public-key and copy it to your raspberryPi's ~/.ssh/authorized_keys file:
1) ssh-keygen
2) add contents of local file "~/.ssh/id_rsa.pub" to raspberryPi's file "~/.ssh/authorized_keys"
Tobias
Am 17.10.2012 um 19:18 schrieb Trismer Technologies:
> Hi,
>
> Yes, I had the same problem. I believe starting from version 2.6 QtCreator handles it correctly. On the other hand, there is a bug in osx version of QtCreator 2.6 which doesn't allow to establish the ssh connecton with Rpi. It has been fixed, but you have to grab the latest code of QtCreator 2.6 from git and compile it by yourself.
>
> Best regards,
> Maciej Kujalowicz
> Trismer Technologies
> _______________________________________________
> QtonPi mailing list
> QtonPi at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qtonpi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qtonpi/attachments/20121020/60aba906/attachment.html
More information about the QtonPi
mailing list