How to set the path to OpenGL Extensions Viewer on Mac?

I downloaded OpenGL Extens Viewer for my Mac. I am trying to compile C ++ - a program that includes OpenGL dependencies, such as #include <glew.h> in the source code. To do this, in the terminal, I type:

 g++ /some/path/to/folder/Application.cpp 

But I get the error:

 fatal error: 'GL/glew.h' file not found 

Obviously, this is because glew.h is not in the GL folder, it is somewhere inside the OpenGL Extens Viewer. But I am having significant difficulties finding where the OpenGL Extensions Viewer application is downloaded accurately, since it does not appear in the My Downloads folder, and therefore I cannot find a suitable path to glew.h, which, apparently, should have viewer (as per the description on their website, it looks like the OpenGL Extensions Viewer should have every OpenGL file that I need in order to successfully compile my program in C ++).

0
source share

Source: https://habr.com/ru/post/977320/


All Articles