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


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 (0x0000007f836ae000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f829f0000) => /lib/aarch64-linux-gnu/ (0x0000007f829c4000) => /lib/aarch64-linux-gnu/ (0x0000007f8286b000)
/lib/ (0x0000007f83683000) => /lib/aarch64-linux-gnu/ (0x0000007f82856000)
glenm@glennano:/usr/lib/aarch64-linux-gnu/qt5/examples$ ll /snap/marsshooter/87/usr/lib/aarch64-linux-gnu/mesa/*
lrwxrwxrwx 1 root root 14 Jun 14 2018 /snap/marsshooter/87/usr/lib/aarch64-linux-gnu/mesa/ ->
-rw-r–r-- 1 root root 405904 Jun 14 2018 /snap/marsshooter/87/usr/lib/aarch64-linux-gnu/mesa/

I sure don’t understand much about snap, but it sure looks like marsshooter was packaged/compressed using it, and shouldn’t have included – instead /usr/lib/aarch64-linux-gnu/ 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 (0x0000007f7a1a2000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a123000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a024000) => /lib/aarch64-linux-gnu/ (0x0000007f79f6a000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f79e41000) => /lib/aarch64-linux-gnu/ (0x0000007f79ce8000)
/lib/ (0x0000007f7a177000) => /lib/aarch64-linux-gnu/ (0x0000007f79cd3000) => /lib/aarch64-linux-gnu/ (0x0000007f79ca7000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f79c67000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f79b3b000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f79b0b000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f79af8000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f79ae3000) => /lib/aarch64-linux-gnu/ (0x0000007f79ac1000)

Am I off-base here?

Thanks … Glen

Hi gmabey,

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