opengl-tutorials/ogl

Can't compile due to the lack of glplatform.h

wellinton-capixaba opened this issue · 2 comments

Hello. I was trying to compile the Ogl 2.1 branch, and during the make stage I received this:

[code]In file included from /home/leopoldo/demos/ogl-2.1_branch/external/glfw-3.1.2/src/../include/GLFW/glfw3.h:153,
from /home/leopoldo/demos/ogl-2.1_branch/external/glfw-3.1.2/src/internal.h:63,
from /home/leopoldo/demos/ogl-2.1_branch/external/glfw-3.1.2/src/context.c:28:
/usr/local/include/GL/gl.h:6:29: error: GLES/glplatform.h: No such file or directory
In file included from /home/leopoldo/demos/ogl-2.1_branch/external/glfw-3.1.2/src/../include/GLFW/glfw3.h:153,
from /home/leopoldo/demos/ogl-2.1_branch/external/glfw-3.1.2/src/internal.h:63,
from /home/leopoldo/demos/ogl-2.1_branch/external/glfw-3.1.2/src/context.c:28:
/usr/local/include/GL/gl.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘GLbyte’
/usr/local/include/GL/gl.h:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘GLubyte’
/usr/local/include/GL/gl.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘GLfloat’
....
....
[/code]

The total errors messages occupied more than 1000 lines of a txt file, so only showing the first. Anyway the problem is that I do not have this glplatform.h file. I found it here: https://google.github.io/fplbase/glplatform_8h_source.html. Would like to download the file, but don't know to do it, except getting the whole project through git, but when trying to do so, I receive:

[code]error: gnutls_handshake() failed: A TLS fatal alert has been received. while accessing https://github.com/google/fplbase.git/info/refs

fatal: HTTP request failed
[/code]

I would rather do not use package manager to do so, since a couple hours ago, I deleted several files from it to release space on my HD and now it's not working. I can reinstall it, but only as a last resource

When I wrote my first post, I have not done the libraries step. However I reinstalled the OS. While installing other software, all the required software packages where installed. Yet the problem persisted. So yes, I followed the steps.

About the OGl stuff, be surprised then, because it does not support. Nonetheless, I tried to compile the tutorial 3 and some errors appeared. They were related to header files location, edited their locations and the problems were gone, yet many linking problems showed up, even complaining of stuff that belongs to library files that I have installed and that work with my own opengl code. Currently trying to port part of the window's code of my own gl code to replace the glfw part of tutorial 3 to see if the problems vanish (and also because my disk OS cannot run glfw 3 code)