Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL/gl.h not found on Ubuntu 16.06 #770

Closed
Itanq opened this issue Jun 3, 2016 · 5 comments
Closed

GL/gl.h not found on Ubuntu 16.06 #770

Itanq opened this issue Jun 3, 2016 · 5 comments
Assignees
Labels
bug Bug reports and bugfix pull requests external Issues GLFW cannot reasonably solve X11
Milestone

Comments

@Itanq
Copy link

Itanq commented Jun 3, 2016

I don't know why,because i had execute sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev, my os is ubuntu16.06.who can help me? thank you very much!!

@elmindreda
Copy link
Member

You don't have the file /usr/include/GL/gl.h on your system?

@elmindreda elmindreda self-assigned this Jun 3, 2016
@elmindreda elmindreda added the X11 label Jun 3, 2016
@CaffeineViking
Copy link

CaffeineViking commented Jun 28, 2016

Might be too late now, but @Itanq, did you try linking with -lGL too? Remember, even if you are using GLEW (or similar extension wrangler), you would need as follows: -lglfw -lGLEW -lGL in that order. You can find further descriptions on how to do this within the GLEW documentation or in GLFW docs. Remember, that GLFW doesn't know anything about OpenGL functions, it's your job to supply those.

@tombsar
Copy link
Contributor

tombsar commented Jun 28, 2016

@CaffeineViking Good advice in general, but probably not going to help in this case; an error about a missing header file has to be from compile time, not link time.

@CaffeineViking
Copy link

@tombsar Ah, you are completely right! Anyway, since the problem is under compilation then it must mean that the compiler simply can't find GL/gl.h anywhere in the search path (just like @elmindreda has said). Now the cause for that is interesting. Could @Itanq provide the commands you have used to build your application? Also could you try executing find /usr/include -name 'gl.h' and see if there are any hits for a potential header file on your system? Might be it's located in a funky search path?

@elmindreda elmindreda changed the title while compiled: fatal error: GL/gl.h: No such file or directory compilation terminated GL/gl.h not found on Ubuntu 16.06 Jul 11, 2016
@tombsar
Copy link
Contributor

tombsar commented Feb 24, 2017

Bump. Did you ever figure this out, @Itanq?

@elmindreda elmindreda added bug Bug reports and bugfix pull requests external Issues GLFW cannot reasonably solve labels Mar 27, 2017
@elmindreda elmindreda added this to the None milestone Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports and bugfix pull requests external Issues GLFW cannot reasonably solve X11
Projects
None yet
Development

No branches or pull requests

4 participants