编译项目时pangolin出现莫名其妙的问题

问题:

/usr/local/include/pangolin/gl/gl.hpp:335:5: error: ‘glCopyImageSubDataNV’ was not declared in this scope
  335 |     glCopyImageSubDataNV(tex.tid, GL_TEXTURE_2D, 0, 0, 0, 0,
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlRenderBuffer::Reinitialise(GLint, GLint, GLint)’:
/usr/local/include/pangolin/gl/gl.hpp:509:9: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
  509 |         glDeleteRenderbuffersEXT(1, &rbid);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:514:5: error: ‘glGenRenderbuffersEXT’ was not declared in this scope
  514 |     glGenRenderbuffersEXT(1, &rbid);
      |     ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:515:5: error: ‘glBindRenderbufferEXT’ was not declared in this scope
  515 |     glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, rbid);
      |     ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:516:5: error: ‘glRenderbufferStorageEXT’ was not declared in this scope
  516 |     glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, internal_format, width, height);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In destructor ‘pangolin::GlRenderBuffer::~GlRenderBuffer()’:
/usr/local/include/pangolin/gl/gl.hpp:523:9: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
  523 |         glDeleteRenderbuffersEXT(1, &rbid);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In destructor ‘pangolin::GlFramebuffer::~GlFramebuffer()’:
/usr/local/include/pangolin/gl/gl.hpp:572:9: error: ‘glDeleteFramebuffersEXT’ was not declared in this scope
  572 |         glDeleteFramebuffersEXT(1, &fbid);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&)’:
/usr/local/include/pangolin/gl/gl.hpp:579:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
  579 |     glGenFramebuffersEXT(1, &fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:587:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
  587 |     glGenFramebuffersEXT(1, &fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:596:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
  596 |     glGenFramebuffersEXT(1, &fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:606:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
  606 |     glGenFramebuffersEXT(1, &fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:617:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
  617 |     glGenFramebuffersEXT(1, &fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Bind() const’:
/usr/local/include/pangolin/gl/gl.hpp:628:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
  628 |     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:629:5: error: ‘glDrawBuffers’ was not declared in this scope; did you mean ‘glDrawBuffer’?
  629 |     glDrawBuffers( attachments, attachment_buffers );
      |     ^~~~~~~~~~~~~
      |     glDrawBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Reinitialise()’:
/usr/local/include/pangolin/gl/gl.hpp:635:9: error: ‘glDeleteFramebuffersEXT’ was not declared in this scope
  635 |         glDeleteFramebuffersEXT(1, &fbid);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:637:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
  637 |     glGenFramebuffersEXT(1, &fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Unbind() const’:
/usr/local/include/pangolin/gl/gl.hpp:642:5: error: ‘glDrawBuffers’ was not declared in this scope; did you mean ‘glDrawBuffer’?
  642 |     glDrawBuffers( 1, attachment_buffers );
      |     ^~~~~~~~~~~~~
      |     glDrawBuffer
/usr/local/include/pangolin/gl/gl.hpp:643:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
  643 |     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘GLenum pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&)’:
/usr/local/include/pangolin/gl/gl.hpp:651:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
  651 |     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:652:5: error: ‘glFramebufferTexture2DEXT’ was not declared in this scope
  652 |     glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, color_attachment, GL_TEXTURE_2D, tex.tid, 0);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:663:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
  663 |     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:665:5: error: ‘glFramebufferRenderbufferEXT’ was not declared in this scope
  665 |     glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, rb.rbid);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Free()’:
/usr/local/include/pangolin/gl/gl.hpp:721:9: error: ‘glDeleteBuffers’ was not declared in this scope; did you mean ‘glSelectBuffer’?
  721 |         glDeleteBuffers(1, &bo);
      |         ^~~~~~~~~~~~~~~
      |         glSelectBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Reinitialise(pangolin::GlBufferType, GLsizeiptr, GLenum, const void*)’:
/usr/local/include/pangolin/gl/gl.hpp:738:9: error: ‘glGenBuffers’ was not declared in this scope; did you mean ‘glReadBuffer’?
  738 |         glGenBuffers(1, &bo);
      |         ^~~~~~~~~~~~
      |         glReadBuffer
/usr/local/include/pangolin/gl/gl.hpp:746:5: error: ‘glBufferData’ was not declared in this scope; did you mean ‘GlBufferData’?
  746 |     glBufferData(buffer_type, size_bytes, data, gluse);
      |     ^~~~~~~~~~~~
      |     GlBufferData
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Bind() const’:
/usr/local/include/pangolin/gl/gl.hpp:752:5: error: ‘glBindBuffer’ was not declared in this scope; did you mean ‘glReadBuffer’?
  752 |     glBindBuffer(buffer_type, bo);
      |     ^~~~~~~~~~~~
      |     glReadBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Unbind() const’:
/usr/local/include/pangolin/gl/gl.hpp:757:5: error: ‘glBindBuffer’ was not declared in this scope; did you mean ‘glReadBuffer’?
  757 |     glBindBuffer(buffer_type, 0);
      |     ^~~~~~~~~~~~
      |     glReadBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Upload(const GLvoid*, GLsizeiptr, GLintptr)’:
/usr/local/include/pangolin/gl/gl.hpp:767:5: error: ‘glBufferSubData’ was not declared in this scope; did you mean ‘GlBufferData’?
  767 |     glBufferSubData(buffer_type,offset,size_bytes,data);
      |     ^~~~~~~~~~~~~~~
      |     GlBufferData
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Download(GLvoid*, GLsizeiptr, GLintptr) const’:
/usr/local/include/pangolin/gl/gl.hpp:774:5: error: ‘glGetBufferSubData’ was not declared in this scope
  774 |     glGetBufferSubData(buffer_type, offset, size_bytes, data);
      |     ^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBuffer::Resize(GLuint)’:
/usr/local/include/pangolin/gl/gl.hpp:849:9: error: ‘glGetBufferSubData’ was not declared in this scope
  849 |         glGetBufferSubData(buffer_type, 0, backup_size_bytes, backup);
      |         ^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:850:9: error: ‘glBufferData’ was not declared in this scope; did you mean ‘GlBufferData’?
  850 |         glBufferData(buffer_type, new_num_elements*GlDataTypeBytes(datatype)*count_per_element, 0, gluse);
      |         ^~~~~~~~~~~~
      |         GlBufferData
/usr/local/include/pangolin/gl/gl.hpp:851:9: error: ‘glBufferSubData’ was not declared in this scope; did you mean ‘GlBufferData’?
  851 |         glBufferSubData(buffer_type, 0, backup_size_bytes, backup);
      |         ^~~~~~~~~~~~~~~
      |         GlBufferData
In file included from /usr/local/include/pangolin/plot/plotter.h:37,
                 from /usr/local/include/pangolin/pangolin.h:48,
                 from /home/yangjq/GitSource/SensorsCalibration-master/radar2camera/manual_calib/src/run_radar2camera.cpp:9:
/usr/local/include/pangolin/gl/glsl.h: In static member function ‘static void pangolin::GlSlUtilities::UseNone()’:
/usr/local/include/pangolin/gl/glsl.h:250:9: error: ‘glUseProgram’ was not declared in this scope; did you mean ‘GlSlProgram’?
  250 |         glUseProgram(0);
      |         ^~~~~~~~~~~~
      |         GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In function ‘bool pangolin::IsLinkSuccessPrintLog(GLhandleARB)’:
/usr/local/include/pangolin/gl/glsl.h:339:5: error: ‘glGetProgramiv’ was not declared in this scope
  339 |     glGetProgramiv(prog, GL_LINK_STATUS, &status);
      |     ^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:345:9: error: ‘glGetProgramInfoLog’ was not declared in this scope
  345 |         glGetProgramInfoLog(prog, PROGRAM_LOG_MAX_LEN, &len, infolog);
      |         ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/pangolin/plot/plotter.h:37,
                 from /usr/local/include/pangolin/pangolin.h:48,
                 from /home/yangjq/GitSource/SensorsCalibration-master/radar2camera/manual_calib/src/run_radar2camera.cpp:9:
/usr/local/include/pangolin/gl/glsl.h: In function ‘bool pangolin::IsCompileSuccessPrintLog(GLhandleARB, const string&, const string&)’:
/usr/local/include/pangolin/gl/glsl.h:359:5: error: ‘glGetShaderiv’ was not declared in this scope; did you mean ‘glGetMapiv’?
  359 |     glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
      |     ^~~~~~~~~~~~~
      |     glGetMapiv
/usr/local/include/pangolin/gl/glsl.h:365:9: error: ‘glGetShaderInfoLog’ was not declared in this scope
  365 |         glGetShaderInfoLog(shader, SHADER_LOG_MAX_LEN, &len, infolog);
      |         ^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In destructor ‘pangolin::GlSlProgram::~GlSlProgram()’:
/usr/local/include/pangolin/gl/glsl.h:396:9: error: ‘glDeleteProgram’ was not declared in this scope
  396 |         glDeleteProgram(prog);
      |         ^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘bool pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, const string&, const string&)’:
/usr/local/include/pangolin/gl/glsl.h:416:16: error: ‘glCreateProgram’ was not declared in this scope
  416 |         prog = glCreateProgram();
      |                ^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:419:26: error: ‘glCreateShader’ was not declared in this scope; did you mean ‘GlSlVertexShader’?
  419 |     GLhandleARB shader = glCreateShader(shader_type);
      |                          ^~~~~~~~~~~~~~
      |                          GlSlVertexShader
/usr/local/include/pangolin/gl/glsl.h:421:5: error: ‘glShaderSource’ was not declared in this scope
  421 |     glShaderSource(shader, 1, &source, NULL);
      |     ^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:422:5: error: ‘glCompileShader’ was not declared in this scope; did you mean ‘GlSlComputeShader’?
  422 |     glCompileShader(shader);
      |     ^~~~~~~~~~~~~~~
      |     GlSlComputeShader
/usr/local/include/pangolin/gl/glsl.h:425:9: error: ‘glAttachShader’ was not declared in this scope
  425 |         glAttachShader(prog, shader);
      |         ^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::ClearShaders()’:
/usr/local/include/pangolin/gl/glsl.h:519:9: error: ‘glDetachShader’ was not declared in this scope
  519 |         glDetachShader(prog, shaders[i]);
      |         ^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:520:9: error: ‘glDeleteShader’ was not declared in this scope; did you mean ‘GlSlVertexShader’?
  520 |         glDeleteShader(shaders[i]);
      |         ^~~~~~~~~~~~~~
      |         GlSlVertexShader
/usr/local/include/pangolin/gl/glsl.h: In member function ‘bool pangolin::GlSlProgram::Link()’:
/usr/local/include/pangolin/gl/glsl.h:653:5: error: ‘glLinkProgram’ was not declared in this scope; did you mean ‘GlSlProgram’?
  653 |     glLinkProgram(prog);
      |     ^~~~~~~~~~~~~
      |     GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::Bind()’:
/usr/local/include/pangolin/gl/glsl.h:660:5: error: ‘glUseProgram’ was not declared in this scope; did you mean ‘GlSlProgram’?
  660 |     glUseProgram(prog);
      |     ^~~~~~~~~~~~
      |     GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SaveBind()’:
/usr/local/include/pangolin/gl/glsl.h:666:5: error: ‘glUseProgram’ was not declared in this scope; did you mean ‘GlSlProgram’?
  666 |     glUseProgram(prog);
      |     ^~~~~~~~~~~~
      |     GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::Unbind()’:
/usr/local/include/pangolin/gl/glsl.h:671:5: error: ‘glUseProgram’ was not declared in this scope; did you mean ‘GlSlProgram’?
  671 |     glUseProgram(prev_prog);
      |     ^~~~~~~~~~~~
      |     GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘GLint pangolin::GlSlProgram::GetAttributeHandle(const string&)’:
/usr/local/include/pangolin/gl/glsl.h:676:12: error: ‘glGetAttribLocation’ was not declared in this scope
  676 |     return glGetAttribLocation(prog, name.c_str());
      |            ^~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘GLint pangolin::GlSlProgram::GetUniformHandle(const string&)’:
/usr/local/include/pangolin/gl/glsl.h:681:12: error: ‘glGetUniformLocation’ was not declared in this scope
  681 |     return glGetUniformLocation(prog, name.c_str());
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int)’:
/usr/local/include/pangolin/gl/glsl.h:686:5: error: ‘glUniform1i’ was not declared in this scope
  686 |     glUniform1i( GetUniformHandle(name), x);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int, int)’:
/usr/local/include/pangolin/gl/glsl.h:691:5: error: ‘glUniform2i’ was not declared in this scope
  691 |     glUniform2i( GetUniformHandle(name), x1, x2);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int, int, int)’:
/usr/local/include/pangolin/gl/glsl.h:696:5: error: ‘glUniform3i’ was not declared in this scope
  696 |     glUniform3i( GetUniformHandle(name), x1, x2, x3);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int, int, int, int)’:
/usr/local/include/pangolin/gl/glsl.h:701:5: error: ‘glUniform4i’ was not declared in this scope
  701 |     glUniform4i( GetUniformHandle(name), x1, x2, x3, x4);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float)’:
/usr/local/include/pangolin/gl/glsl.h:706:5: error: ‘glUniform1f’ was not declared in this scope
  706 |     glUniform1f( GetUniformHandle(name), f);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float, float)’:
/usr/local/include/pangolin/gl/glsl.h:711:5: error: ‘glUniform2f’ was not declared in this scope
  711 |     glUniform2f( GetUniformHandle(name), f1,f2);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float, float, float)’:
/usr/local/include/pangolin/gl/glsl.h:716:5: error: ‘glUniform3f’ was not declared in this scope
  716 |     glUniform3f( GetUniformHandle(name), f1,f2,f3);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float, float, float, float)’:
/usr/local/include/pangolin/gl/glsl.h:721:5: error: ‘glUniform4f’ was not declared in this scope
  721 |     glUniform4f( GetUniformHandle(name), f1,f2,f3,f4);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, pangolin::Colour)’:
/usr/local/include/pangolin/gl/glsl.h:726:5: error: ‘glUniform4f’ was not declared in this scope
  726 |     glUniform4f( GetUniformHandle(name), c.r, c.g, c.b, c.a);
      |     ^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, const pangolin::OpenGlMatrix&)’:
/usr/local/include/pangolin/gl/glsl.h:736:5: error: ‘glUniformMatrix4fv’ was not declared in this scope
  736 |     glUniformMatrix4fv( GetUniformHandle(name), 1, GL_FALSE, m);
      |     ^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::BindPangolinDefaultAttribLocationsAndLink()’:
/usr/local/include/pangolin/gl/glsl.h:793:5: error: ‘glBindAttribLocation’ was not declared in this scope
  793 |     glBindAttribLocation(prog, DEFAULT_LOCATION_POSITION, DEFAULT_NAME_POSITION);
      |     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘GLint pangolin::GlSlProgram::GetProgramResourceIndex(const string&)’:
/usr/local/include/pangolin/gl/glsl.h:803:12: error: ‘glGetProgramResourceIndex’ was not declared in this scope; did you mean ‘GetProgramResourceIndex’?
  803 |     return glGetProgramResourceIndex(prog, GL_SHADER_STORAGE_BLOCK, name.c_str());
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
      |            GetProgramResourceIndex
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetShaderStorageBlock(const string&, const int&)’:
/usr/local/include/pangolin/gl/glsl.h:808:5: error: ‘glShaderStorageBlockBinding’ was not declared in this scope
  808 |     glShaderStorageBlockBinding(prog, GetProgramResourceIndex(name), bindingIndex);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yangjq/GitSource/SensorsCalibration-master/radar2camera/manual_calib/src/run_radar2camera.cpp:26:
/home/yangjq/GitSource/SensorsCalibration-master/radar2camera/manual_calib/include/projector_radar.hpp: In member function ‘void Projector::ProjectToRawMat(cv::Mat, cv::Mat, cv::Mat, cv::Mat, cv::Mat, cv::Mat&, cv::Mat&)’:
/home/yangjq/GitSource/SensorsCalibration-master/radar2camera/manual_calib/include/projector_radar.hpp:192:13: warning: unused variable ‘y’ [-Wunused-variable]
  192 |       float y = transCloud2d.at(1, i);
      |             ^
/home/yangjq/GitSource/SensorsCalibration-master/radar2camera/manual_calib/include/projector_radar.hpp:218:13: warning: unused variable ‘d’ [-Wunused-variable]
  218 |       float d = points[i].dist;
      |             ^
make[2]: *** [CMakeFiles/RadarToCamera.dir/build.make:63: CMakeFiles/RadarToCamera.dir/src/run_radar2camera.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/RadarToCamera.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

解决方法:

进入pangolin的安装文件夹里(就是最开始安装pangolin时从git下载的文件夹中),进入文件夹中的build打开终端,输入:

sudo make uninstall
sudo make install

就是重新安装了一下pangolin,问题解决。

你可能感兴趣的:(错误解决,c++,ubuntu)