I've been trying to use freeglut in a Qt project. Unfortunately when I use some glut function like 'glutWireSphere' or 'glutWireTorus' I get an error:
freeglut ERROR: Function called without first calling 'glutInit'.
And when I try to run an application it immediately quits itself. I don't know where exactly should I call 'glutInit'. I've installed freeglut according to this tutorial:
https://www.youtube.com/watch?v=M4fm-cHGoYU&index=1&list=LLkYBBRyDu3gfOojsRQOM3JQ