![]() |
SailfishOS RDP Server Plugin for QT Apps
Soooo my first day with the SailfishOS SDK + Emulator ... tried something funny what mabye can be integrated + advanced in future.
Access your QT-App remotly with RDP Simply add this plugin to your QT-Plugin-Folder and without any change to the sourcecode of your application run it like this: Code:
./myqtapp -platform freerdp I was told that for now or longer there will be no QTQuick2-Apps / OpenGL support possible, as "Qt guys have dropped the raster backend for QtQuick" But you CAN code SailfishOS QT-Apps WITHOUT QTQuick. I successfully commented out the lines and had to restructure some elements as they now are not available any longer. But slidemenu etc still working. #in files .cpp //#include <QtQuick> #in files .qml //import QtQuick 2.0 Greeter -platform wayland-egl http://www.imgbox.de/users/public/images/V7zuoLvEr5.png Greeter -platform freerdp http://www.imgbox.de/users/public/images/Bt15j81yBj.png Test with QT Browser QupZilla (Ubuntu) http://www.imgbox.de/users/public/images/WOJxomj0Rq.png 2 simultaneous connections to the same QupZilla http://www.imgbox.de/users/public/images/lFgB89HaSP.png About This is a QT platform plugin that allows QT-Applications to run headless and listening on RDP-Port for incoming RDP-Connections. All one has to do would be to deploy the rquired libraries and the single QT-Platform-Plugin "libqfreerdp.so" to the Plugins dir. Then one can call QT-Application like this without any change to the sourcecode of your application: Code:
./myqtapp -platform freerdp Requirements to build
Would be great to get RDP-QT-Remote-App-Support in future! I was in contact with the author of the plugin and he was so kind to fix some problems that made it harder to get it compiled, fixed the distorted output (resizing) and added improvements already (thank you very much for that!). Videos See more advanced and working examples here: http://www.youtube.com/watch?v=EI0dUL1SzI4 http://www.youtube.com/channel/UCNMm...?feature=watch VirtualBox Portable + SailfishOS SDK Setup I am running a portable version of VirtualBox v4.3.6 and in the past the SailfishOS SDK was searching for a regpath to VirtualBox, so I added the following on my Windows x64 Code:
Windows Registry Editor Version 5.00 VirtualBox + SailfishOS SDK + Proxy I had some trouble because I am behind a proxy. For me it helped to install packages with zypper, but isn't installed by default. File: /etc/sysconfig/proxy Code:
PROXY_ENABLED="yes" File: /etc/profile: Code:
sudo vim /etc/profile Reboot Then manually download the RPMs for zypper and augeas-libs (example Repo) by using Code:
VirtualBox + MerSDK + Shared Folder + Symlink = Protocol Error I had a problem compiling FreeRDP on my Windows 8.1 because I got an Error about symlinks. Then tried to create one on my own, it failed. My short workaround: I copied the directories ".ssh" + ".scratchbox2" then made the shared folder unavailable so that I had the Linux home folder of the MerSDK-VM, copied back the folders. There is mentioned some ways to fix this, but all of it didn't work for me. Link1 Link2 Code:
SailfishOS SDK + Putty + Public Private KeyAuth Download and run PuttyGen Generate Keypair: SSH-2 RSA 2048 bit Save the private key to file Save public key to file APPEND (Copy&paste) the public key (displayed in the upper textarea in PuttyGen) to the authorized_key files of SailfishOS SDK: SailfishOS\mersdk\ssh\root\authorized_keys SailfishOS\mersdk\ssh\mersdk\authorized_keys SailfishOS\emulator\1\ssh\nemo\authorized_keys SailfishOS\emulator\1\ssh\root\authorized_keys |
Re: SailfishOS RDP Server Plugin for QT Apps
Developer Infos
I will try to write some information so if someone wants to try to build for arm. Code:
pkcon install zypper Download Sources Code:
mkdir ~/git Prepare and build For now I needed to build FreeRDP-Libs two times, once monolithic and once without, as the other sources currently search from both. "-DARM_FP_ABI=hard" is only needed on arm. FreeRDP Code:
#first build monolithic QT-Plugin old first try: cannot be built on the phone shows conflicts... Code:
pkcon install qt5-qmake libxkbcommon-devel glib2-devel qt5-qtgui qt5-qtcore qt5-qtdbus-devel Code:
cd ~/git/qfreerdp_platform Updateing Sources from GIT For completeness. Code:
|
Re: SailfishOS RDP Server Plugin for QT Apps
QT-Plugin
Update 2014-01-15 I succesfully compiled FreeRDP + qfreerdp on the SailfishOS SDK VM for armv7hl Next step: Now is the question how to get the missing QT-Libs onto the phone together with the app. ... work in progress ... would be happy about any help! Compile on MerSDK-VM I documented nearly every step what I did, so there may be more than nessesary, if: tell me. I connected directly to the MerSDK-VM with putty after generating my own keys like descriped earlier. mersdk@127.0.0.1 Port: 2222 use private key file Code:
## GIT Running on the Jolla Phone Now how to get it running on the phone, what is missing ... Static build possible? Maybe it would be possible to build the plugin as static, but that may require to recompile QT. Code:
#### EXPERIMENTAL ##### |
Re: SailfishOS RDP Server Plugin for QT Apps
A static build of Qt won't work, at least not out of the box. You could static link your dependencies into the plugin you're building (but keep in mind that you have three license choices for Qt when thinking about redistribution of your plugin).
If your plugin has dependencies, you can statically link those into the plugin if that's an option. Alternatively, you need to deploy all libraries it depends on as well as the plugin itself. To view dependencies at link time, take a look around google for 'ldd'. |
Re: SailfishOS RDP Server Plugin for QT Apps
thank you very much for your quick answer. yes I read about the license problem, and as qt is completely new for me it is vefy difficult to find workarounds.
so if I underdtand, I would have to extract everything that conflicts and put in in place manually and hope to get it working. |
Re: SailfishOS RDP Server Plugin for QT Apps
RDP integrated into Tizen by default?
https://lists.tizen.org/pipermail/iv...il/002167.html Theay are able to run GL-Applications over RDP: https://lists.tizen.org/pipermail/iv...il/002241.html https://www.youtube.com/watch?v=WA0esHzOnOk |
All times are GMT. The time now is 23:59. |
vBulletin® Version 3.8.8