Ubuntu系统工程中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 sc
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值