I have started playing with the Cocos2d-x Game Framework for some game development and had some initial troubles getting it to run on Ubuntu, So I made a simple bash script to handle the installation of some system dependencies.

As with most development tools these days, they are aimed at OS X users or provide a hack to use on Windows, with Linux being “supported” but with minimal documentation. So through Stack Overflow, Cocos2d Forums and myself, here is a tiny bash script to handle the dependency setup for you: