Install Cocos2d-x on Ubuntu 12.04

If you can, please switch to 14.04...

Download cmake binary from
Extract to /opt

sudo tar -xzf cmake*.tar.gz -C /opt

Make symlink

sudo ln -f -s /opt/cmake*/bin/cmake /usr/bin/cmake

Check version

cmake --version

Download glfw3 source code from

unzip glfw*.zip -d ~/
cd ~/glfw*
cmake -G "Unix Makefiles"
sudo make install

Then you can follow the instructions at

Running cpp-tests got this error
./cpp-tests: error while loading shared libraries: cannot open shared object file: No such file or directory

Make symlink to fix

cd <*COCOS FOLDER LOCATION*>/external/linux-specific/fmod/prebuilt/64-bit
ln -s
ln -s