Wednesday 2 March 2016

OpenMVG gcc version

在ubuntu 12.04上面装openMVG的时候,gcc用4.7.3的时候还是会fail,后来装了gcc 4.8才能成功安装。如何安装gcc 4.8可以参考这里

具体的步骤是
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ 
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
sudo update-alternatives --config gcc sudo update-alternatives --config g++

No comments:

Post a Comment