Last active
April 26, 2019 11:29
-
-
Save naranjja/50e5a4d544ed016673930b16fdbf64e8 to your computer and use it in GitHub Desktop.
Install scrcpy on *buntu
This file contains hidden or 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
# Install runtime dependencies | |
sudo apt install ffmpeg libsdl2-2.0.0 | |
# Install client build dependencies | |
sudo apt install make \ | |
gcc \ | |
pkg-config meson \ | |
libavcodec-dev \ | |
libavformat-dev \ | |
libavutil-dev \ | |
libsdl2-dev | |
# Install server build dependencies | |
sudo apt install openjdk-8-jdk | |
# Install Android 27 SDK Platform Tools (assuming $ANDROID_HOME) | |
sudo $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-27" | |
# Clone scrcpy | |
git clone https://github.com/Genymobile/scrcpy /opt/scrcpy | |
cd /opt/scrcpy | |
# Build scrcpy | |
meson x --buildtype release --strip -Db_lto=true | |
cd x | |
ninja | |
# Install scrcpy | |
sudo ninja install | |
# Add to path | |
sudo echo "export PATH=${PATH}:/usr/local/bin" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment