My Ubuntu version is 12.04.

I'm simply trying to include GL/glu.h in my program, but I get the error:
fatal error: GL/glu.h: No such file or directory

I include it like this:
#include <GL/glu.h>

I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed.

Recommended Answers

All 2 Replies

Sounds like you're missing the glu package (libglu1-mesa-dev). A quick 'sudo apt-get libglu1-mesa-dev' should solve that problem for you! :)

Thanks, that did the trick!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.