先安装一些库:
12.04 (LTS)
Follow this step for Ubuntu 12.04 (LTS).
You need to install a g++ version with C++0x/C++11 support, so install this PPA first:
sudo add-apt-repository ppa:dolphin-emu/gcc-4.8-precise
sudo apt-get update
This PPA will update libstdc++6 package too, which is an important component from the system, so be careful and use at your own risk.
Cmake needs to be updated too:
sudo add-apt-repository ppa:kalakris/cmake
sudo apt-get update
Now, install all necessary packages by running the following command:
sudo apt-get install cmake git gcc-4.8 g++-4.8 pkg-config libao-dev libasound2-dev libbluetooth-dev libgl1-mesa-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline6-dev libsdl1.2-dev libsoil-dev libsoundtouch-dev libusb-1.0-0-dev libxext-dev libxrandr-dev zlib1g-dev
14.04 (LTS)
Follow this step for Ubuntu 14.04 (LTS).
Install all necessary packages by running the following command:
sudo apt-get install cmake pkg-config git g++ libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpolarssl-dev portaudio19-dev libpulse-dev libreadline6-dev libsdl2-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev zlib1g-dev
14.10 and newer
Follow this step for Ubuntu 14.10 and future versions.
Install all necessary packages by running the following command:
sudo apt-get install cmake pkg-config git g++ libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpolarssl-dev portaudio19-dev libpulse-dev libreadline6-dev libsdl2-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev zlib1g-dev
楼主是14.04的机器,就按照14.04的方法安装就行了