|
2014-01-13
, 17:33
|
|
Posts: 60 |
Thanked: 104 times |
Joined on Dec 2009
|
#2
|
pkcon install zypper zypper install cmake gcc gcc-c++ pkcon install qtchooser
mkdir ~/git cd ~/git git clone https://github.com/awakecoding/FreeRDP/ git clone https://github.com/hardening/qfreerdp_platform
#first build monolithic cd ~/git/FreeRDP cmake -DCMAKE_INSTALL_PREFIX="~/freerdp" -DCMAKE_BUILD_TYPE=Release -DSTATIC_CHANNELS=on -DWITH_SERVER=ON -DWITH_X11=OFF -DMONOLITHIC_BUILD=ON -DARM_FP_ABI=hard make make install #second build make clean rm CMakeCache.txt cmake -DCMAKE_INSTALL_PREFIX="~/freerdp" -DCMAKE_BUILD_TYPE=Release -DSTATIC_CHANNELS=on -DWITH_SERVER=ON -DWITH_X11=OFF -DARM_FP_ABI=hard make
pkcon install qt5-qmake libxkbcommon-devel glib2-devel qt5-qtgui qt5-qtcore qt5-qtdbus-devel zypper install qt5-qtplatformsupport-devel Problem: qt5-qtplatformsupport-devel-5.1.0+git28-1.10.2.armv7hl requires pkgconfig(Qt5Gui), but this requirement cannot be provided uninstallable providers: qt5-qtgui-devel-5.1.0+git28-1.10.2.armv7hl[jolla] Solution 1: Following actions will be done: deinstallation of libhybris-sbj-0.0.0.33-10.8.1.jolla.armv7hl deinstallation of libhybris-sbj-libEGL-0.0.0.33-10.8.1.jolla.armv7hl deinstallation of libhybris-sbj-libGLESv2-0.0.0.33-10.8.1.jolla.armv7hl deinstallation of libhybris-sbj-libhardware-0.0.0.33-10.8.1.jolla.armv7hl deinstallation of libhybris-sbj-libnfc-0.0.0.33-10.8.1.jolla.armv7hl deinstallation of libhybris-sbj-libwayland-egl-0.0.0.33-10.8.1.jolla.armv7hl deinstallation of pulseaudio-modules-droid-sbj-4.0.10-10.8.1.jolla.armv7hl deinstallation of hybris-libsensorfw-qt5-0.7.3.31-10.8.1.jolla.armv7hl deinstallation of gstreamer0.10-omx-0.0.20131205.0-10.6.1.jolla.armv7hl deinstallation of gstreamer0.10-colorconv-0.0.20131121.0-10.1.1.jolla.armv7hl deinstallation of libgstreamer0.10-nativebuffer-0.0.20131118.0-10.6.2.jolla.armv7hl deinstallation of libgstreamer0.10-gralloc-0.0.20131118.0-10.6.2.jolla.armv7hl deinstallation of gstreamer0.10-droideglsink-0.0.20131118.0-10.6.2.jolla.armv7hl deinstallation of gstreamer0.10-droidcamsrc-0.0.20131210.0-10.9.1.jolla.armv7hl deinstallation of geoclue-provider-hybris-0.0.14-10.5.1.jolla.armv7hl deinstallation of qt5-eglfs-qcom-hwcomposer-plugin-5.1.0+git15-10.4.14.jolla.armv7hl deinstallation of mce-plugin-libhybris-1.1.2-10.3.1.jolla.armv7hl deinstallation of tohd-plugin-nfc-nxp-1.0.0-10.1.1.jolla.armv7hl deinstallation of sbj-pulseaudio-settings-0.5.9-10.14.5.jolla.armv7hl deinstallation of hybris-libsensorfw-qt5-configs-0.7.3.31-10.8.1.jolla.noarch deinstallation of sbj-version-0.0.3-10.3.1.jolla.armv7hl Solution 2: do not install qt5-qtplatformsupport-devel-5.1.0+git28-1.10.2.armv7hl Solution 3: break qt5-qtplatformsupport-devel-5.1.0+git28-1.10.2.armv7hl by ignoring some of its dependencies #as info The following packages have to be installed: glib2-devel-2.32.4-1.2.1.armv7hl A library of handy utility functions pcre-devel-8.31-1.1.1.armv7hl Development files for pcre python-2.7.5-1.1.1.armv7hl An interpreted, interactive, object-oriented programming language python-libs-2.7.5-1.1.1.armv7hl Runtime libraries for Python
cd ~/git/qfreerdp_platform export INSTALL_PATH=$HOME/freerdp export PKG_CONFIG_PATH=$INSTALL_PATH/lib/pkgconfig/:$INSTALL_PATH/share/pkgconfig/ qtchooser --qt=5 -run-tool=qmake make
cd ~/git/FreeRDP git pull cd ~/git/qfreerdp_platform git pull
|
2014-01-16
, 06:56
|
|
Posts: 60 |
Thanked: 104 times |
Joined on Dec 2009
|
#3
|
## GIT sudo zypper install git ## QT5 qtchooser sudo zypper install qtchooser qt5-qmake libxkbcommon-devel glib2-devel qt5-qtgui qt5-qtcore ## CMAKE make sudo zypper install cmake make ## QT5-qtplatformsupport-devel sudo zypper install qt5-qtplatformsupport-devel ## download sources cd ~ mkdir git cd git git clone https://github.com/awakecoding/FreeRDP/ git clone https://github.com/hardening/qfreerdp_platform sb2 -t SailfishOS-armv7hl -R sudo zypper install libxkbcommon-devel glib2-devel sb2 -t SailfishOS-armv7hl -R zypper install cmake sb2 -t SailfishOS-armv7hl -R zypper install openssl-devel ## compile FreeRDP cd FreeRDP sb2 -t SailfishOS-armv7hl -R cmake -DCMAKE_INSTALL_PREFIX="~/freerdp" -DCMAKE_BUILD_TYPE=Release -DSTATIC_CHANNELS=on -DWITH_SERVER=ON -DWITH_X11=OFF -DMONOLITHIC_BUILD=ON -DARM_FP_ABI=hard sb2 -t SailfishOS-armv7hl -R make sb2 -t SailfishOS-armv7hl -R make install sb2 -t SailfishOS-armv7hl -R make clean sb2 -t SailfishOS-armv7hl -R rm CMakeCache.txt sb2 -t SailfishOS-armv7hl -R cmake -DCMAKE_INSTALL_PREFIX="~/freerdp" -DCMAKE_BUILD_TYPE=Release -DSTATIC_CHANNELS=on -DWITH_SERVER=ON -DWITH_X11=OFF -DARM_FP_ABI=hard sb2 -t SailfishOS-armv7hl -R make sb2 -t SailfishOS-armv7hl -R make install ## QT Plugin cd ~/git/qfreerdp_platform sudo zypper install pcre-devel glib2-devel libxkbcommon libxkbcommon-devel sb2 -t SailfishOS-armv7hl -R zypper install libxkbcommon-devel libxkbcommon glib2-devel pcre-devel sb2 -t SailfishOS-armv7hl -R zypper install qt5-qttools-qtuitools-devel export INSTALL_PATH=$HOME/freerdp export PKG_CONFIG_PATH=$INSTALL_PATH/lib/pkgconfig/:$INSTALL_PATH/share/pkgconfig/ sb2 -t SailfishOS-armv7hl -R qtchooser --qt=5 -run-tool=qmake sb2 -t SailfishOS-armv7hl -R make export QT_PLUGIN_PATH=$(pwd)/plugins #or later copy to qt plugins path: /usr/lib/qt5/plugins/platforms/
#### EXPERIMENTAL ##### ## try to build static ####### vi /srv/mer/targets/SailfishOS-armv7hl/usr/share/qt5/mkspecs/common/gcc-base-unix.conf #QMAKE_LFLAGS_SHLIB += -shared QMAKE_LFLAGS_SHLIB += -static #copy arm-compiled-freerdp-libs cp -R /home/mersdk/freerdp/lib/* /srv/mer/targets/SailfishOS-armv7hl/lib/freerdp/ #add ld-config vi /srv/mer/targets/SailfishOS-armv7hl/etc/ld.so.conf.d/freerdp.conf /srv/mer/targets/SailfishOS-armv7hl/lib/freerdp/ sb2 -t SailfishOS-armv7hl -R ldconfig #######################
|
2014-03-21
, 20:46
|
|
Posts: 1,055 |
Thanked: 4,107 times |
Joined on Oct 2009
@ Norway
|
#4
|
|
2014-03-21
, 23:36
|
|
Posts: 60 |
Thanked: 104 times |
Joined on Dec 2009
|
#5
|
The Following User Says Thank You to meShell For This Useful Post: | ||
|
2014-05-22
, 07:30
|
|
Posts: 60 |
Thanked: 104 times |
Joined on Dec 2009
|
#6
|
The Following User Says Thank You to meShell For This Useful Post: | ||
Tags |
freerdp, freerds, jolla, qt remote apps |
|
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:
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
Greeter -platform freerdp
Test with QT Browser QupZilla (Ubuntu)
2 simultaneous connections to the same QupZilla
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:
Requirements to build
- QT5, qtchooser
- FreeRDP (stable / nightly)
- qfreerdp_platform
(build tools: cmake, gcc, make, ...)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
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
File: /etc/profile:
Reboot
Then manually download the RPMs for zypper and augeas-libs (example Repo) by using
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
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
Last edited by meShell; 2014-01-29 at 08:45. Reason: SailfishOS SDK + Putty + Public Private KeyAuth