How i can install OpenGL 4.0 or 4.5 from terminal for developing in C++? I search about it but i can't find a source. And i do not have a directory named GL in usr/include.
Asked
Active
Viewed 3.0k times
1 Answers
3
Mesa is the GL library used. Ubuntu 16.04 includes Mesa 11.2 which supports OpenGL 4.1. Just install the libgl1-mesa-dev
and mesa-common-dev
packages to install the development files for it.
If you really need 4.5, you will likely need to develop against the propreitary AMD or NVidia drivers, and you will need a card which actually supports 4.5 to run any software you create using that version of the API.

dobey
- 40,982
glxinfo | grep -i opengl
still showsOpenGL version string: 3.0 Mesa 11.2.0
. How do I develop in OpenGL4? – Shashwat Mar 19 '17 at 15:31NVidia GeForce 920M
graphics card but still the vendor is shown to beIntel Open Source Technology Center
. How can I change that and have support for OpenGL 4.x? Thank you! – Shashwat Mar 19 '17 at 20:49