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.
联系客服