If you can, please switch to 14.04...
Download cmake binary from https://cmake.org/download/
Extract to /opt
Download glfw3 source code from http://www.glfw.org/download.html
Then you can follow the instructions at http://www.cocos2d-x.org/wiki/Linux_Installation_and_Setup
Running cpp-tests got this error
./cpp-tests: error while loading shared libraries: libfmod.so.6: cannot open shared object file: No such file or directory
Make symlink to fix