您好,欢迎来到尔游网。
搜索
您的当前位置:首页Ubuntu下Pangolin报错what(): Pangolin X11: Unable to retrieve framebuffer options

Ubuntu下Pangolin报错what(): Pangolin X11: Unable to retrieve framebuffer options

来源:尔游网

本文系作者原创,转载请注明出处。
作者:JAYSITE
邮箱: jaysite@163.com

在ubuntu上对ORB-SLAM进行运行的过程中,出现以下错误:

terminate called after throwing an instance of ‘std::runtime_error’

what(): Pangolin X11: Unable to retrieve framebuffer options

方案一:查阅了网上资料,很多回答是注释掉Pangolin/src/display/device/display_x11.cpp文件中的两行代码即可,具体如下:

staticint visual_attribs[] = 
{ 
    GLX_X_RENDERABLE , True, 
    GLX_DRAWABLE_TYPE , GLX_WINDOW_BIT, 
    GLX_RENDER_TYPE , GLX_RGBA_BIT, 
    GLX_X_VISUAL_TYPE , GLX_TRUE_COLOR, 
    GLX_RED_SIZE , 8, 
    GLX_GREEN_SIZE, 8, 
    GLX_BLUE_SIZE, 8, 
    GLX_ALPHA_SIZE, 8, 
    GLX_DEPTH_SIZE, 24, 
    GLX_STENCIL_SIZE, 8, 
    GLX_DOUBLEBUFFER , glx_doublebuffer ? True : False, 
    //注释这一行GLX_SAMPLE_BUFFERS , glx_sample_buffers, 
    //注释这一行 GLX_SAMPLES , glx_sa

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- axer.cn 版权所有 湘ICP备2023022495号-12

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务