This is a Qt5 platform plugin to export application through RDP without modifying the original code.
- Qt5 development librairies (>= 5.12.8)
- libfreerdp (>= 2.4.1)
$ export INSTALL_PATH=/your/preferred/install/path
$ export PKG_CONFIG_PATH=${INSTALL_PATH}/usr/lib/pkgconfig:${INSTALL_PATH}/usr/lib/x86_64-linux-gnu/pkgconfig
$ export LD_LIBRARY_PATH=${INSTALL_PATH}/usr/lib/
### system libraries apt install qtbase5-private-dev libxkbcommon-dev libglib2.0-dev libxrender-dev libudev-dev libfontconfig1-dev libfreetype6-dev
qmake PREFIX=${INSTALL_PATH}/usr && make -j4 all
Install windows specific layouts
mkdir -p $HOME/.xkb/symbols/ && cp -rf xkbsymbols/* $HOME/.xkb/symbols/
To use the platform plugin you need to specify the path where QT can find plugins:
$ export QT_PLUGIN_PATH=${INSTALL_PATH}/usr/lib/
Now launch any Qt5 program (you'll find many in the examples directory) with the -platform freerdp parameter, for example:
$ ./menus -platform freerdp