compiling OpenGL program GL/glew.h missing

I installed OpenGL onto my computer running Linux Mint following the instructions on this tutorial. I am trying to compile a program that uses OpenGL, but I'm getting a compile error: fatal error: GL/glew.h: No such file or directory. I check the /usr/include/GL folder, and glew.h is indeed missing. I don't know why it's missing,

I installed OpenGL onto my computer running Linux Mint following the instructions on this tutorial. I am trying to compile a program that uses OpenGL, but I'm getting a compile error: fatal error: GL/glew.h: No such file or directory. I check the /usr/include/GL folder, and glew.h is indeed missing. I don't know why it's missing, because I did the command sudo apt-get install libglew1.5 and it gives the output:

Reading package lists... Done Building dependency tree Reading state information... Done libglew1.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 465 not upgraded. 

Why is the glew.h file missing?

4

2 Answers

libglew is just the library, but not the development files (headers). You need to install those separately. The package name on Debian based systems is libglew-dev and for fedora(and possibly its derivatives) it is glew-devel

2

Run the following command:

sudo apt-get install libglew-dev 
0

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJoaG5wZWeBcoOOnKamqJmhtq%2BzjKinnqaXoXqxvs6gqZqlXZy5brPLnq5moF2itrS%2FyKee

 Share!