update odroid documentation, upgrade to gcc 4.7 on ubuntu 12.04

This commit is contained in:
c0ntrol
2016-03-19 18:02:06 +01:00
parent 10522e04c2
commit 5018085f41

View File

@@ -10,6 +10,15 @@ gcc : 4.6.3-1ubuntu5
Prerequisites
=============
Ubuntu 12.04 comes with gcc 4.6, please update your gcc to version 4.7:
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-4.7 g++-4.7
$ sudo update-alternatives --remove gcc /usr/bin/gcc-4.6
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
$ sudo update-alternatives --config gcc
Remove libav:
$ apt-get remove libavcodec53 libavformat53
$ apt-get remove libswscale2