MARS and other apps that require libGL don't work on Nano

Hello,

With a fresh Jetpack install, it appears that M.A.R.S. and other snap apps (qmlcreator is the other one I tried) don’t run –

glenm@glennano:/usr/lib/aarch64-linux-gnu/qt5/examples$ marsshooter
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: BadValue
Request Major code 154 (GLX)
Request Minor code 3 ()
Value 0x0
Error Serial #36
Current Serial #39
glenm@glennano:/usr/lib/aarch64-linux-gnu/qt5/examples$ ldd which marsshooter
linux-vdso.so.1 (0x0000007f836ae000)
libgtk3-nocsd.so.0 => /usr/lib/aarch64-linux-gnu/libgtk3-nocsd.so.0 (0x0000007f829f0000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f829c4000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f8286b000)
/lib/ld-linux-aarch64.so.1 (0x0000007f83683000)
libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f82856000)
glenm@glennano:/usr/lib/aarch64-linux-gnu/qt5/examples$ ll /snap/marsshooter/87/usr/lib/aarch64-linux-gnu/mesa/libGL.so.1*
lrwxrwxrwx 1 root root 14 Jun 14 2018 /snap/marsshooter/87/usr/lib/aarch64-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r–r-- 1 root root 405904 Jun 14 2018 /snap/marsshooter/87/usr/lib/aarch64-linux-gnu/mesa/libGL.so.1.2.0

I sure don’t understand much about snap, but it sure looks like marsshooter was packaged/compressed using it, and shouldn’t have included libGL.so – instead /usr/lib/aarch64-linux-gnu/libGL.so.1 should have been used. That’s what glxgears uses and it works fine:

glenm@glennano:/usr/lib/aarch64-linux-gnu/qt5/examples$ ldd which glxgears
linux-vdso.so.1 (0x0000007f7a1a2000)
libgtk3-nocsd.so.0 => /usr/lib/aarch64-linux-gnu/libgtk3-nocsd.so.0 (0x0000007f7a123000)
libGL.so.1 => /usr/lib/aarch64-linux-gnu/libGL.so.1 (0x0000007f7a024000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f79f6a000)
libX11.so.6 => /usr/lib/aarch64-linux-gnu/libX11.so.6 (0x0000007f79e41000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f79ce8000)
/lib/ld-linux-aarch64.so.1 (0x0000007f7a177000)
libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f79cd3000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f79ca7000)
libGLX.so.0 => /usr/lib/aarch64-linux-gnu/libGLX.so.0 (0x0000007f79c67000)
libGLdispatch.so.0 => /usr/lib/aarch64-linux-gnu/libGLdispatch.so.0 (0x0000007f79b3b000)
libxcb.so.1 => /usr/lib/aarch64-linux-gnu/libxcb.so.1 (0x0000007f79b0b000)
libXau.so.6 => /usr/lib/aarch64-linux-gnu/libXau.so.6 (0x0000007f79af8000)
libXdmcp.so.6 => /usr/lib/aarch64-linux-gnu/libXdmcp.so.6 (0x0000007f79ae3000)
libbsd.so.0 => /lib/aarch64-linux-gnu/libbsd.so.0 (0x0000007f79ac1000)

Am I off-base here?

Thanks … Glen

Hi gmabey,

Could you confirm which file is the symbolic link of “libGL.so” point to? If you are using the libGL from mesa, then it may have problem.