-
Notifications
You must be signed in to change notification settings - Fork 73
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
Compile error aarch64 build via OpenGLES2 #1561
Comments
Looks like there is a bug in |
@kloptops You are right. Are you able to submit this as a PR? You can even do that via the github web page by editing the file in the browser and following the steps it shows you. Thanks a lot! |
Unfortunately while that does fix the glad error, it now has missing definitions/functions required in Here's the output with It seems GLES doesn't have a bunch of OpenGL functions you use. I can still fix the other issue, but GLES isn't working with the current state of things. Edit: fixed link to the actual log file. |
Ah yes, I think I remember that I wanted to port that stuff to actual shaders etc. which would then support GLES but never had the time to do so. The use of Glad was only the first step in preparation of that but the work required looks more than I initially anticipated. So yes, it won't work with GLES (among others...) currently. However your fix certainly improves things. |
Hi guys,
currently tryring to compile rttr for an embedded linux handheld with an RK3566 no x or opengl.
Compiled via
cmake .. -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DRTTR_USE_SYSTEM_LIBS=ON -DRTTR_INCLUDE_DEVTOOLS=OFF -DRTTR_OPENGL=GLES2.0
It complains about missing declares ```
`/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp: In member function ‘virtual bool DummyRenderer::initOpenGL(IRenderer::OpenGL_Loader_Proc)’:
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:46:10: error: ‘glVertexPointer’ was not declared in this scope; did you mean ‘rttrOglMock::glVertexPointer’?
46 | MOCK(glVertexPointer);
| ^~~~~~~~~~~~~~~
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:39:20: note: in definition of macro ‘MOCK’
39 | #define MOCK(FUNC) FUNC = rttrOglMock::FUNC
| ^~~~
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:24:15: note: ‘rttrOglMock::glVertexPointer’ declared here
24 | void APIENTRY glVertexPointer(GLint, GLenum, GLsizei, const GLvoid*) {}
| ^~~~~~~~~~~~~~~
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:47:10: error: ‘glTexCoordPointer’ was not declared in this scope; did you mean ‘rttrOglMock::glTexCoordPointer’?
47 | MOCK(glTexCoordPointer);
| ^~~~~~~~~~~~~~~~~
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:39:20: note: in definition of macro ‘MOCK’
39 | #define MOCK(FUNC) FUNC = rttrOglMock::FUNC
| ^~~~
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:25:15: note: ‘rttrOglMock::glTexCoordPointer’ declared here
25 | void APIENTRY glTexCoordPointer(GLint, GLenum, GLsizei, const GLvoid*) {}
| ^~~~~~~~~~~~~~~~~
/root/compile/s25client/libs/s25main/ogl/DummyRenderer.cpp:48:10: error: ‘glColor4ub’ was not declared in this scope; did you mean ‘rttrOglMock::glColor4ub’?
48 | MOCK(glColor4ub);```
I investigated the glad dependency a bit and found this in my CmakeFiles
It copied the OpenGL2.0 glad folder instead of the OpenGLES2.0.
So this might be a problem too.
I'm compiling inside an generic aarch64 chroot so no limitations in that regard
Any ideas?
The text was updated successfully, but these errors were encountered: