lnwin521
2022-08-13 21:05
采纳率: 0%
浏览 55

linux下 Qtcreator无法复现SLAM3

在ubutun1804 系统、qtcreator中复现SLAM3出现问题,具体如下:

1、已经通过cmake已经完成slam3的复现,成功验证,准备在qtcreator中再次复现一遍(结果出问题);
2、在把所有的头文件、源文件以及所需要连接的库全部连接后,编译报错:pangolin库编译出错,各种未定以的函数。如下所示:

/usr/local/include/pangolin/gl/gl.hpp:579: error: ‘glGenFramebuffersEXT’ was not declared in this scope
     glGenFramebuffersEXT(1, &fbid);
     ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:523: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
         glDeleteRenderbuffersEXT(1, &rbid);
         ^~~~~~~~~~~~~~~~~~~~~~~~

差不多1200多个,主要集中在gl.hpp和glsl.h这两个文件中。

我的解答思路和尝试过的方法 :

1、在Qt工程pro文件中链接pangolin编译产生的.so文件,如下所示:


unix:!macx: LIBS += -L$$PWD/../../../../../usr/local/lib/ -lpango_windowing

INCLUDEPATH += $$PWD/../../../../../usr/local/include
DEPENDPATH += $$PWD/../../../../../usr/local/include

unix:!macx: LIBS += -L$$PWD/../../../../../usr/local/lib/ -lpango_video

INCLUDEPATH += $$PWD/../../../../../usr/local/include
DEPENDPATH += $$PWD/../../../../../usr/local/include

unix:!macx: LIBS += -L$$PWD/../../../../../usr/local/lib/ -lpango_vars

INCLUDEPATH += $$PWD/../../../../../usr/local/include
DEPENDPATH += $$PWD/../../../../../usr/local/include

结果还是无效。
2、针对的pangolin库的 卸载再安装,结果还是一样。

3条回答 默认 最新

相关推荐 更多相似问题