Hi, thank you for your great work and I attempt to reproduce this project to see how scene graph is generated incrementally. But I have encountered lots of errors while compiling this project (in order to generate inseg.ply files). I followed README.md to prepare environment, and then run "cmake .." with no error. Then run "make", lots of errors appeared! In file glModel.hpp glShader.hpp glUtils.hpp Render.h Renderer3RScan.h RendererScanNet.h, there are many errors of no definition.
I guess something necessary was missed but I haven't found what is wrong. Could you please give me a cue to solve these errors?
Thanks for your time.
![2022-03-30 16-52-13 的屏幕截图](https://user-images.githubusercontent.com/94791260/160792572-e57390fc-d388-4989-ba2b-d8f0dd903988.png)
Errors:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::compileShader(const char*, const char*, const char*)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:158:22: error: ‘glCreateShader’ was not declared in this scope
vertex = glCreateShader(GL_VERTEX_SHADER);
^~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:158:22: note: suggested alternative: ‘compileShader’
vertex = glCreateShader(GL_VERTEX_SHADER);
^~~~~~~~~~~~~~
compileShader
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:159:13: error: ‘glShaderSource’ was not declared in this scope
glShaderSource(vertex, 1, &vShaderCode, NULL);
^~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:159:13: note: suggested alternative: ‘geShaderCode’
glShaderSource(vertex, 1, &vShaderCode, NULL);
^~~~~~~~~~~~~~
geShaderCode
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:160:13: error: ‘glCompileShader’ was not declared in this scope
glCompileShader(vertex);
^~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:160:13: note: suggested alternative: ‘compileShader’
glCompileShader(vertex);
^~~~~~~~~~~~~~~
compileShader
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:176:18: error: ‘glCreateProgram’ was not declared in this scope
ID = glCreateProgram();
^~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:176:18: note: suggested alternative: ‘glGetHistogram’
ID = glCreateProgram();
^~~~~~~~~~~~~~~
glGetHistogram
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:177:13: error: ‘glAttachShader’ was not declared in this scope
glAttachShader(ID, vertex);
^~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:181:13: error: ‘glLinkProgram’ was not declared in this scope
glLinkProgram(ID);
^~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:181:13: note: suggested alternative: ‘glHistogram’
glLinkProgram(ID);
^~~~~~~~~~~~~
glHistogram
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:184:13: error: ‘glDeleteShader’ was not declared in this scope
glDeleteShader(vertex);
^~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:184:13: note: suggested alternative: ‘glDeleteLists’
glDeleteShader(vertex);
^~~~~~~~~~~~~~
glDeleteLists
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::use()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:194:13: error: ‘glUseProgram’ was not declared in this scope
glUseProgram(ID);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:194:13: note: suggested alternative: ‘glHistogram’
glUseProgram(ID);
^~~~~~~~~~~~
glHistogram
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/GUI3D.h:4:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:19:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, T) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:202:30: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform1ui(glGetUniformLocation(ID, name.c_str()), value); // value: number of element if a vector type is given.
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:202:30: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:204:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:206:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform1f(glGetUniformLocation(ID, name.c_str()), value);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:208:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, T, T) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:217:30: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform2ui(glGetUniformLocation(ID, name.c_str()), value1, value2);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:219:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform2i(glGetUniformLocation(ID, name.c_str()), value1, value2);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:221:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform2f(glGetUniformLocation(ID, name.c_str()), value1, value2);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, T, T, T) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:232:30: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform3ui(glGetUniformLocation(ID, name.c_str()), value1, value2, value3);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:234:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform3i(glGetUniformLocation(ID, name.c_str()), value1, value2, value3);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:236:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform3f(glGetUniformLocation(ID, name.c_str()), value1, value2, value3);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, T, T, T, T) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:247:30: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform4ui(glGetUniformLocation(ID, name.c_str()), value1, value2, value3, value4);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:249:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform4i(glGetUniformLocation(ID, name.c_str()), value1, value2, value3, value4);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:251:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform4f(glGetUniformLocation(ID, name.c_str()), value1, value2, value3, value4);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, const Eigen::Matrix<Type, 4, 4>&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:261:32: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, mat.template cast().data());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, const Eigen::Transform<T, 3, 3>&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:267:32: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, affine.template cast().data());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, const Eigen::Matrix<Type, 3, 3>&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:273:32: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniformMatrix3fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, mat.template cast().data());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, const Eigen::Transform<T, 2, 2>&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:279:32: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniformMatrix3fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, affine.template cast().data());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, const Eigen::Matrix<Type, 3, 1>&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:286:30: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform3ui(glGetUniformLocation(ID, name.c_str()), (unsigned int) v.x(), (unsigned int) v.y(), (unsigned int) v.z());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:288:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform3i(glGetUniformLocation(ID, name.c_str()), (int) v.x(), (int) v.y(), (int) v.z());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:290:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform3f(glGetUniformLocation(ID, name.c_str()), (float) v.x(), (float) v.y(), (float) v.z());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, const Eigen::Matrix<Type, 4, 1>&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:301:30: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform4ui(glGetUniformLocation(ID, name.c_str()), (unsigned int) v.x(), (unsigned int) v.y(), (unsigned int) v.z(), (unsigned int) v.w());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:303:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform4i(glGetUniformLocation(ID, name.c_str()), (int) v.x(), (int) v.y(), (int) v.z(), (int) v.w());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:305:29: error: there are no arguments to ‘glGetUniformLocation’ that depend on a template parameter, so a declaration of ‘glGetUniformLocation’ must be available [-fpermissive]
glUniform4f(glGetUniformLocation(ID, name.c_str()), (float) v.x(), (float) v.y(), (float) v.z(), (float) v.w());
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::setTexture(const string&, int) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:334:25: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:334:25: note: suggested alternative: ‘__errno_location’
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
^~~~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:334:13: error: ‘glUniform1i’ was not declared in this scope
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
^~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, glm::mat4) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:339:32: error: ‘glGetUniformLocation’ was not declared in this scope
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, glm::value_ptr(matrix));
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:339:32: note: suggested alternative: ‘__errno_location’
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, glm::value_ptr(matrix));
^~~~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:339:13: error: ‘glUniformMatrix4fv’ was not declared in this scope
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, glm::value_ptr(matrix));
^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:339:13: note: suggested alternative: ‘glLoadMatrixf’
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, glm::value_ptr(matrix));
^~~~~~~~~~~~~~~~~~
glLoadMatrixf
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, glm::vec3) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:344:26: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform3fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:344:26: note: suggested alternative: ‘__errno_location’
glUniform3fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:344:13: error: ‘glUniform3fv’ was not declared in this scope
glUniform3fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:344:13: note: suggested alternative: ‘glColor3fv’
glUniform3fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~
glColor3fv
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::set(const string&, glm::vec4) const’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:349:26: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform4fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:349:26: note: suggested alternative: ‘__errno_location’
glUniform4fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:349:13: error: ‘glUniform4fv’ was not declared in this scope
glUniform4fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:349:13: note: suggested alternative: ‘glColor4fv’
glUniform4fv(glGetUniformLocation(ID, name.c_str()), 1, glm::value_ptr(vec));
^~~~~~~~~~~~
glColor4fv
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In member function ‘void glUtil::Shader::checkCompileErrors(unsigned int, std::__cxx11::string)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:361:17: error: ‘glGetShaderiv’ was not declared in this scope
glGetShaderiv(shader, GL_COMPILE_STATUS, &success);
^~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:361:17: note: suggested alternative: ‘glGetMapiv’
glGetShaderiv(shader, GL_COMPILE_STATUS, &success);
^~~~~~~~~~~~~
glGetMapiv
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:364:21: error: ‘glGetShaderInfoLog’ was not declared in this scope
glGetShaderInfoLog(shader, 1024, NULL, infoLog);
^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:364:21: note: suggested alternative: ‘glGetString’
glGetShaderInfoLog(shader, 1024, NULL, infoLog);
^~~~~~~~~~~~~~~~~~
glGetString
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:370:17: error: ‘glGetProgramiv’ was not declared in this scope
glGetProgramiv(shader, GL_LINK_STATUS, &success);
^~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:370:17: note: suggested alternative: ‘glGetHistogram’
glGetProgramiv(shader, GL_LINK_STATUS, &success);
^~~~~~~~~~~~~~
glGetHistogram
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:373:21: error: ‘glGetProgramInfoLog’ was not declared in this scope
glGetProgramInfoLog(shader, 1024, NULL, infoLog);
^~~~~~~~~~~~~~~~~~~
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/GUI3D.h:7:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:19:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp: In member function ‘virtual void glUtil::Mesh::Draw()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:135:13: error: ‘glBindVertexArray’ was not declared in this scope
glBindVertexArray(VAO);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:135:13: note: suggested alternative: ‘glBindTexture’
glBindVertexArray(VAO);
^~~~~~~~~~~~~~~~~
glBindTexture
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp: In member function ‘void glUtil::Mesh::setupMesh()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:188:13: error: ‘glGenVertexArrays’ was not declared in this scope
glGenVertexArrays(1, &VAO);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:188:13: note: suggested alternative: ‘glGenTextures’
glGenVertexArrays(1, &VAO);
^~~~~~~~~~~~~~~~~
glGenTextures
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:189:13: error: ‘glGenBuffers’ was not declared in this scope
glGenBuffers(1, &VBO);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:189:13: note: suggested alternative: ‘glReadBuffer’
glGenBuffers(1, &VBO);
^~~~~~~~~~~~
glReadBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:193:13: error: ‘glBindVertexArray’ was not declared in this scope
glBindVertexArray(VAO);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:193:13: note: suggested alternative: ‘glBindTexture’
glBindVertexArray(VAO);
^~~~~~~~~~~~~~~~~
glBindTexture
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:195:13: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(GL_ARRAY_BUFFER, VBO);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:195:13: note: suggested alternative: ‘glReadBuffer’
glBindBuffer(GL_ARRAY_BUFFER, VBO);
^~~~~~~~~~~~
glReadBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:199:13: error: ‘glBufferData’ was not declared in this scope
glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(Vertex), &vertices[0], GL_STATIC_DRAW);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:199:13: note: suggested alternative: ‘ImGuiKeyData’
glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(Vertex), &vertices[0], GL_STATIC_DRAW);
^~~~~~~~~~~~
ImGuiKeyData
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:208:13: error: ‘glEnableVertexAttribArray’ was not declared in this scope
glEnableVertexAttribArray(0);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:209:13: error: ‘glVertexAttribPointer’ was not declared in this scope
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex), (void*)0);
^~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:209:13: note: suggested alternative: ‘glVertexPointer’
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex), (void*)0);
^~~~~~~~~~~~~~~~~~~~~
glVertexPointer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp: In member function ‘void glUtil::Mesh::Reset()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:230:13: error: ‘glDeleteVertexArrays’ was not declared in this scope
glDeleteVertexArrays(1, &VAO);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:230:13: note: suggested alternative: ‘glDeleteTextures’
glDeleteVertexArrays(1, &VAO);
^~~~~~~~~~~~~~~~~~~~
glDeleteTextures
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:231:13: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &VBO);
^~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:231:13: note: suggested alternative: ‘glSelectBuffer’
glDeleteBuffers(1, &VBO);
^~~~~~~~~~~~~~~
glSelectBuffer
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/GUI3D.h:8:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:19:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp: At global scope:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:72:46: error: ‘precision’ is not a member of ‘glm’
static inline glm::mat<m, n, float, glm::precision::highp> E2GLM(const Eigen::Matrix<T, m, n>& em)
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:72:62: error: template argument 4 is invalid
static inline glm::mat<m, n, float, glm::precision::highp> E2GLM(const Eigen::Matrix<T, m, n>& em)
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp: In function ‘int glUtil::E2GLM(const Eigen::Matrix<T, m, n>&)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:74:36: error: ‘precision’ is not a member of ‘glm’
glm::mat<m, n, float, glm::precision::highp> mat;
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:74:52: error: template argument 4 is invalid
glm::mat<m, n, float, glm::precision::highp> mat;
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:79:22: error: invalid types ‘int[int]’ for array subscript
mat[j][i] = em(i, j);
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp: At global scope:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:82: error: ‘precision’ is not a member of ‘glm’
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:98: error: template argument 4 is invalid
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:82: error: ‘precision’ is not a member of ‘glm’
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:98: error: template argument 4 is invalid
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:82: error: ‘precision’ is not a member of ‘glm’
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:98: error: template argument 4 is invalid
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:82: error: ‘precision’ is not a member of ‘glm’
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:98: error: template argument 4 is invalid
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:55: error: invalid template-id
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:82: error: ‘precision’ is not a member of ‘glm’
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:49: error: expected primary-expression before ‘const’
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:86:106: error: expected ‘;’ before ‘{’ token
static inline Eigen::Matrix<T, m, n> GLM2E(const glm::mat<m, n, float, glm::precision::highp> &mat) {
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:99:43: error: ‘precision’ is not a member of ‘glm’
static inline glm::vec<m, float, glm::precision::highp> E2GLM(const Eigen::Matrix<T, m, 1>& em)
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:99:59: error: template argument 3 is invalid
static inline glm::vec<m, float, glm::precision::highp> E2GLM(const Eigen::Matrix<T, m, 1>& em)
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp: In function ‘int glUtil::E2GLM(const Eigen::Matrix<Type, Size, 1>&)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:101:33: error: ‘precision’ is not a member of ‘glm’
glm::vec<m, float, glm::precision::highp> v;
^~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:101:49: error: template argument 3 is invalid
glm::vec<m, float, glm::precision::highp> v;
^
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glUtils.hpp:104:16: error: invalid types ‘int[int]’ for array subscript
v[i] = em(i);
^
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/GUI3D.h:11:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:19:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h: In constructor ‘glUtil::GLImageRenderer::GLImageRenderer(unsigned char*, int, int)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:22:13: error: ‘glGenVertexArrays’ was not declared in this scope
glGenVertexArrays(1, &quadVAO);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:22:13: note: suggested alternative: ‘glGenTextures’
glGenVertexArrays(1, &quadVAO);
^~~~~~~~~~~~~~~~~
glGenTextures
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:23:13: error: ‘glGenBuffers’ was not declared in this scope
glGenBuffers(1, &quadVBO);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:23:13: note: suggested alternative: ‘glReadBuffer’
glGenBuffers(1, &quadVBO);
^~~~~~~~~~~~
glReadBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:24:13: error: ‘glBindVertexArray’ was not declared in this scope
glBindVertexArray(quadVAO);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:24:13: note: suggested alternative: ‘glBindTexture’
glBindVertexArray(quadVAO);
^~~~~~~~~~~~~~~~~
glBindTexture
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:25:13: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(GL_ARRAY_BUFFER, quadVBO);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:25:13: note: suggested alternative: ‘glReadBuffer’
glBindBuffer(GL_ARRAY_BUFFER, quadVBO);
^~~~~~~~~~~~
glReadBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:26:13: error: ‘glBufferData’ was not declared in this scope
glBufferData(GL_ARRAY_BUFFER, sizeof(quadVertices), &quadVertices, GL_STATIC_DRAW);
^~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:26:13: note: suggested alternative: ‘ImGuiKeyData’
glBufferData(GL_ARRAY_BUFFER, sizeof(quadVertices), &quadVertices, GL_STATIC_DRAW);
^~~~~~~~~~~~
ImGuiKeyData
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:27:13: error: ‘glEnableVertexAttribArray’ was not declared in this scope
glEnableVertexAttribArray(0);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:28:13: error: ‘glVertexAttribPointer’ was not declared in this scope
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 4 * sizeof(float), (void ) 0);
^~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:28:13: note: suggested alternative: ‘glVertexPointer’
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 4 * sizeof(float), (void ) 0);
^~~~~~~~~~~~~~~~~~~~~
glVertexPointer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h: In destructor ‘glUtil::GLImageRenderer::~GLImageRenderer()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:46:13: error: ‘glDeleteVertexArrays’ was not declared in this scope
glDeleteVertexArrays(1, &VAO);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:46:13: note: suggested alternative: ‘glDeleteTextures’
glDeleteVertexArrays(1, &VAO);
^~~~~~~~~~~~~~~~~~~~
glDeleteTextures
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:47:13: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &VBO);
^~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:47:13: note: suggested alternative: ‘glSelectBuffer’
glDeleteBuffers(1, &VBO);
^~~~~~~~~~~~~~~
glSelectBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h: In member function ‘void glUtil::GLImageRenderer::draw(glUtil::Shader)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:60:13: error: ‘glBindVertexArray’ was not declared in this scope
glBindVertexArray(VAO);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glImageRenderer.h:60:13: note: suggested alternative: ‘glBindTexture’
glBindVertexArray(VAO);
^~~~~~~~~~~~~~~~~
glBindTexture
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererFactory.h:7:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:20:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h: In destructor ‘virtual PSLAM::MeshRendererInterface::~MeshRendererInterface()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:19:13: error: ‘glDeleteFramebuffers’ was not declared in this scope
glDeleteFramebuffers(1,&framebuffer);
^~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:19:13: note: suggested alternative: ‘glfwGetFramebufferSize’
glDeleteFramebuffers(1,&framebuffer);
^~~~~~~~~~~~~~~~~~~~
glfwGetFramebufferSize
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:20:13: error: ‘glDeleteRenderbuffers’ was not declared in this scope
glDeleteRenderbuffers(1, &rbo);
^~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:20:13: note: suggested alternative: ‘glDeleteTextures’
glDeleteRenderbuffers(1, &rbo);
^~~~~~~~~~~~~~~~~~~~~
glDeleteTextures
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h: In member function ‘void PSLAM::MeshRendererInterface::InitGL()’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:35:13: error: ‘glGenFramebuffers’ was not declared in this scope
glGenFramebuffers(1, &framebuffer);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:35:13: note: suggested alternative: ‘framebuffer’
glGenFramebuffers(1, &framebuffer);
^~~~~~~~~~~~~~~~~
framebuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:36:13: error: ‘glBindFramebuffer’ was not declared in this scope
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:36:13: note: suggested alternative: ‘framebuffer’
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
^~~~~~~~~~~~~~~~~
framebuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:43:13: error: ‘glFramebufferTexture2D’ was not declared in this scope
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColorbuffer, 0);
^~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:43:13: note: suggested alternative: ‘glPrioritizeTextures’
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColorbuffer, 0);
^~~~~~~~~~~~~~~~~~~~~~
glPrioritizeTextures
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:46:13: error: ‘glGenRenderbuffers’ was not declared in this scope
glGenRenderbuffers(1, &rbo);
^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:46:13: note: suggested alternative: ‘glReadBuffer’
glGenRenderbuffers(1, &rbo);
^~~~~~~~~~~~~~~~~~
glReadBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:47:13: error: ‘glBindRenderbuffer’ was not declared in this scope
glBindRenderbuffer(GL_RENDERBUFFER, rbo);
^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:47:13: note: suggested alternative: ‘glReadBuffer’
glBindRenderbuffer(GL_RENDERBUFFER, rbo);
^~~~~~~~~~~~~~~~~~
glReadBuffer
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:48:13: error: ‘glRenderbufferStorage’ was not declared in this scope
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT32F, m_width, m_height); // use a single renderbuffer object for both a depth AND stencil buffer.
^~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:48:13: note: suggested alternative: ‘GL_ARB_buffer_storage’
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT32F, m_width, m_height); // use a single renderbuffer object for both a depth AND stencil buffer.
^~~~~~~~~~~~~~~~~~~~~
GL_ARB_buffer_storage
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererFactory.h:7:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:20:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:49:13: error: ‘glFramebufferRenderbuffer’ was not declared in this scope
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rbo); // now actually attach it
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:51:16: error: ‘glCheckFramebufferStatus’ was not declared in this scope
if(glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
^~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer.h:51:16: note: suggested alternative: ‘glfwGetFramebufferSize’
if(glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
^~~~~~~~~~~~~~~~~~~~~~~~
glfwGetFramebufferSize
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer3RScan.h:8:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererFactory.h:9,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:20:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/../libGUI3D/libGUI3D/glModel.hpp: In member function ‘unsigned int glUtil::Model::TextureFromFile(const char, const string&, bool)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/../libGUI3D/libGUI3D/glModel.hpp:555:17: error: ‘glGenerateMipmap’ was not declared in this scope
glGenerateMipmap(GL_TEXTURE_2D);
^~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/../libGUI3D/libGUI3D/glModel.hpp:555:17: note: suggested alternative: ‘glGetMinmax’
glGenerateMipmap(GL_TEXTURE_2D);
^~~~~~~~~~~~~~~~
glGetMinmax
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererFactory.h:9:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:20:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer3RScan.h: In member function ‘virtual void PSLAM::MeshRenderer3RScan::Render(const Matrix4f&, const Matrix4f&, float, float)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer3RScan.h:34:13: error: ‘glBindFramebuffer’ was not declared in this scope
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer3RScan.h:34:13: note: suggested alternative: ‘framebuffer’
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
^~~~~~~~~~~~~~~~~
framebuffer
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererFactory.h:10:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:20:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererScanNet.h: In member function ‘virtual void PSLAM::MeshRendererScanNet::Render(const Matrix4f&, const Matrix4f&, float, float)’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererScanNet.h:29:13: error: ‘glBindFramebuffer’ was not declared in this scope
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
^~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/RendererScanNet.h:29:13: note: suggested alternative: ‘framebuffer’
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
^~~~~~~~~~~~~~~~~
framebuffer
In file included from /home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/GUI3D.h:4:0,
from /home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/main.cc:19:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In instantiation of ‘void glUtil::Shader::set(const string&, T) const [with T = int; std::__cxx11::string = std::__cxx11::basic_string]’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glMesh.hpp:130:65: required from here
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:202:50: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform1ui(glGetUniformLocation(ID, name.c_str()), value); // value: number of element if a vector type is given.
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:202:50: note: suggested alternative: ‘__errno_location’
glUniform1ui(glGetUniformLocation(ID, name.c_str()), value); // value: number of element if a vector type is given.
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:202:29: error: ‘glUniform1ui’ was not declared in this scope
glUniform1ui(glGetUniformLocation(ID, name.c_str()), value); // value: number of element if a vector type is given.
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:202:29: note: suggested alternative: ‘glColor4ui’
glUniform1ui(glGetUniformLocation(ID, name.c_str()), value); // value: number of element if a vector type is given.
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glColor4ui
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:204:49: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:204:49: note: suggested alternative: ‘__errno_location’
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:204:28: error: ‘glUniform1i’ was not declared in this scope
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:206:49: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform1f(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:206:49: note: suggested alternative: ‘__errno_location’
glUniform1f(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:206:28: error: ‘glUniform1f’ was not declared in this scope
glUniform1f(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:208:49: error: ‘glGetUniformLocation’ was not declared in this scope
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:208:49: note: suggested alternative: ‘__errno_location’
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:208:28: error: ‘glUniform1i’ was not declared in this scope
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp: In instantiation of ‘void glUtil::Shader::set(const string&, const Eigen::Matrix<Type, 4, 4>&, bool) [with T = float; std::__cxx11::string = std::__cxx11::basic_string]’:
/home/flj/3DSceneGraphFusion/SceneGraphFusion/app/GraphSLAM/../../renderer/Renderer3RScan.h:37:43: required from here
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:261:52: error: ‘glGetUniformLocation’ was not declared in this scope
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, mat.template cast().data());
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:261:52: note: suggested alternative: ‘__errno_location’
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, mat.template cast().data());
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
__errno_location
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:261:31: error: ‘glUniformMatrix4fv’ was not declared in this scope
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, mat.template cast().data());
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/flj/3DSceneGraphFusion/SceneGraphFusion/libGraphSLAM/../lib/../libGUI3D/libGUI3D/glShader.hpp:261:31: note: suggested alternative: ‘glLoadMatrixf’
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, mat.template cast().data());
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glLoadMatrixf
app/GraphSLAM/CMakeFiles/exe_GraphSLAM.dir/build.make:75: recipe for target 'app/GraphSLAM/CMakeFiles/exe_GraphSLAM.dir/main.cc.o' failed
make[2]: *** [app/GraphSLAM/CMakeFiles/exe_GraphSLAM.dir/main.cc.o] Error 1
CMakeFiles/Makefile2:228: recipe for target 'app/GraphSLAM/CMakeFiles/exe_GraphSLAM.dir/all' failed
make[1]: *** [app/GraphSLAM/CMakeFiles/exe_GraphSLAM.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2