-
Notifications
You must be signed in to change notification settings - Fork 853
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
[Install Pangolin] excute command : cmake --build . (Error like this) #268
Comments
I have the same problem. I guess this is the problem of the opengl, but i dont know how to solve it.hope someone can help solve it. |
Maybe not openGL, cause I have tested it; maybe the path of installation or the version of pangolin |
This is probably related to the version of your installed OpenGL, maybe GLEW. You can safely comment that line if you like and the rest should compile fine. The best solution is probably to find some #define with the OpenGL version to guard against this in the future. |
@stevenlovegrove , you are right, I believe it is because of OpenGL version. Checked the documention of OpenGL, (https://www.khronos.org/registry/OpenGL-Refpages/gl4/), found that "The GL_DISPATCH_INDIRECT_BUFFER and GL_SHADER_STORAGE_BUFFER targets are available only if the GL version is 4.3 or greater.". And according to the source code, where the error was thrown: /usr/local/include/pangolin/gl/gl.h:171:29: error: ‘GL_SHADER_STORAGE_BUFFER’ was not declared in this scope: #ifndef HAVE_GLES This is introduced in this change: e66e204#diff-d382887f3e1d2d9afcea169f207a1381 I need to checkout a previous commit in order to compile. If OpenGL 4.3 is a prerequisite, we should force that in the building step. If not, this should be fixed. |
In my case this problem occurred because I had As there exists a directory Edit: Indeed my |
@caselitz Thank you for your infomation. I use </usr/include/GL/glew.h> instead of <GL/glew.h> to solve this problem. |
@caselitz I meet the same problem. It works by changing the |
error: ‘GL_SHADER_STORAGE_BUFFER’ was not declared in this scope
GlShaderStorageBuffer = GL_SHADER_STORAGE_BUFFER
The text was updated successfully, but these errors were encountered: