Last active
August 20, 2017 14:15
-
-
Save leonj1/d30c40a81b1d2d6b66c4e0c0c3ea0d44 to your computer and use it in GitHub Desktop.
How to install Go and ffmpeg in Raspberry Pi
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
mkdir -p /tmp/go | |
cd /tmp/go | |
wget https://storage.googleapis.com/golang/go1.8.3.linux-armv6l.tar.gz | |
sudo tar -C /usr/local -xzf go1.8.3.linux-armv6l.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile | |
. ~/.profile | |
mkdir -p ~/go/src | |
mkdir -p ~/go/bin | |
mkdir -p ~/go/pkg | |
sudo apt-get install -y gcc make | |
cd /usr/src | |
sudo git clone git://git.videolan.org/x264 | |
cd x264 | |
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl | |
sudo make | |
sudo make install | |
cd /usr/src | |
sudo git clone git://source.ffmpeg.org/ffmpeg.git | |
cd ffmpeg/ | |
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree | |
sudo make | |
time sudo make install | |
# above command may take 4 hrs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment