This article is based on the following publications:
The C++ source code of the barnes hut galaxy simulator is available for download at GitHub. In order to open the project you will need the NetBeans IDE with C++ Plugin. If you have not already installed Netbeans I recommend using the original installer from Oracle since some Linux distributions will install an incomplete version that is missing vital files. If you can compile the project and create a binary file but are unable to start it from within the IDE you are likely affected (Ubuntu and derivatives).
For compiling the program you will need the development versions of the OpenGL, SDL, SDL_TTF libraries.
Source code archive via GitHub.
You might also like: