分享

运行Pangolin时出现的问题

 海漩涡 2017-07-13



Using on virtual machines people are getting the following error:

terminate called after throwing an instance of 'std::runtime_error'
what(): Pangolin X11: Unable to retrieve framebuffer options


=============================================================



Are you running ORB-SLAM2 in VMWare @lucasmedino ? It seems the issue stems from running Ubuntu using virtualisation software since I have managed to get it up and running on a dedicated build without any issue. Here is how I solved it (the solution is provided at stevenlovegrove/Pangolin#81) as the push which apparently fixed it didn't work for me.

Find the device directory:
cd Pangolin/src/display/device/

Open display_x11.cpp:
gedit display_x11.cpp

Comment out the following lines as such (Lines 123-124):

        //GLX_SAMPLE_BUFFERS  , glx_sample_buffers,
        //GLX_SAMPLES         , glx_sample_buffers > 0 ? glx_samples : 0,

Save the file, cd to the Pangolin build directory then rebuild:

cmake -DCPP11_NO_BOOST=1 ..
make -j

Try running a sequence afterwards and hopefully the runtime error has disappeared...hope this helps.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多