Pangolin的版本不一致导致的无法编译,切换到V0.6

报错如下:

/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 functionvoid 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 functionvoid pangolin::GlFramebuffer::Bind() const:/usr/local/include/pangolin/gl/gl.hpp:628:5: error: ‘glBindFramebufferEXT’ was not declared in this scope  628 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鲨鱼辣椒不吃辣哦

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值