Last active
June 20, 2024 05:45
-
-
Save Nexarian/e4bbcb2c1d3b97c00a8af318e93780d3 to your computer and use it in GitHub Desktop.
Install FreeRDP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
sudo -v | |
sudo apt install -y make git g++ nasm | |
git clone https://github.com/cisco/openh264.git ~/openh264 | |
cd ~/openh264 | |
make clean all -j $(nproc) | |
sudo make install -j $(nproc) | |
sudo apt install -y flatpak | |
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo | |
flatpak install flathub org.freedesktop.Platform//21.08 | |
flatpak install flathub org.freedesktop.Platform.ffmpeg-full//21.08 | |
flatpak install flathub org.freedesktop.Sdk//21.08 | |
sudo apt install -y ninja-build build-essential git-core debhelper cdbs dpkg-dev autotools-dev cmake \ | |
pkg-config xmlto libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libfuse-dev \ | |
libxi-dev libxrender-dev libxext-dev libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev \ | |
libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev \ | |
libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ | |
libfaad-dev libfaac-dev libcairo-dev libcunit1-dev libdirectfb-dev xmlto doxygen libxtst-dev libavcodec-dev libswscale-dev | |
git clone https://github.com/FreeRDP/FreeRDP.git ~/FreeRDP | |
cd ~/FreeRDP | |
cmake -GNinja -DCHANNEL_URBDRC=ON -DWITH_DSP_FFMPEG=ON -DWITH_CUPS=ON -DWITH_PULSE=ON -DWITH_FAAC=ON \ | |
-DWITH_FAAD2=ON -DWITH_GSM=ON -DWITH_FFMPEG=ON -DWITH_OPENH264=OFF -DWITH_SWSCALE=ON -DWITH_CAIRO=ON \ | |
-DWITH_GFX_H264=ON -DWITH_KRB5=OFF -DCMAKE_BUILD_TYPE=Release . | |
cmake --build . | |
sudo cmake --build . --target install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment