I’m having trouble understanding how the
opengl interface works, and how snaps interact with my video card. For example, I’m trying to launch pMarineViewer (an FLTK component of MOOS-IvP, autonomy middleware), and I’m seeing:
XOpenIM() failed libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast
I see both
swrast_dri.so on my host system (a Dell M3800) in
/usr/lib/x86_64-linux-gnu/dri/, but that directory is not accessible from within snap shell, so I figured some bind-mount magic was happening within
snap-confine. However, I don’t see either of them using
snap run --shell (on an app that uses the
kyrofa@Pandora:~$ snap run --shell moos-ivp.pMarineViewer To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. kyrofa@Pandora:~$ cd $SNAP kyrofa@Pandora:/snap/moos-ivp/x1$ find . -name '*swrast*' kyrofa@Pandora:/snap/moos-ivp/x1$ find . -name '*i965_dri*'
Am I missing something?