https://kotlinlang.org logo
Title
p

ppvi

07/15/2021, 2:20 PM
I'm running
[compose-jb/examples/codeviewer] $ ./gradlew :desktop:run
and getting
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /[...]/libskiko-linux-x64.so: libGL.so.1: cannot open shared object file: No such file or directory
READMEs don't mention anything about requirements and couldn't find "libGL.so.1" in the repo or this channel. Quick google search doesn't help either.
o

olonho

07/15/2021, 2:56 PM
will smth like
apt install libgl1-mesa-glx
help?
p

ppvi

07/15/2021, 2:57 PM
that's what the google search said but I already have that package installed
o

olonho

07/15/2021, 3:01 PM
what will
ldd path-of-skiko-lib
and
ldd path-of-gl-lib
print? seems you cannot load OpenGL or some of its dependencies
and better to open an issue on GitHub
p

ppvi

07/15/2021, 3:23 PM
linux-vdso.so.1 (0x00007fffb18b2000)
	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f002c7be000)
	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f002c778000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f002c634000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f002c46f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f002e2f5000)
	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f002c3b7000)
	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f002c381000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f002c2be000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f002c28f000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f002c286000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f002c264000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f002c25e000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f002c119000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f002c0df000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f002c0c2000)
	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f002c0b4000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f002c089000)
	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f002c064000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f002c05f000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f002c057000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f002c040000)
	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f002c033000)
% ldd /lib/x86_64-linux-gnu/libGL.so.1
	linux-vdso.so.1 (0x00007ffea5bc3000)
	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f9a5f092000)
	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f9a5f05e000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9a5ee99000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9a5ee93000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9a5ed50000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9a5f1ed000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9a5ed23000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9a5ed1e000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9a5ed16000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f9a5ecff000)
	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f9a5ecf2000)
o

olonho

07/15/2021, 3:35 PM
so far looks good, seems all library references in both libraries were resolved. Could be that certain symbol went unresolved. Please file an issue at https://github.com/JetBrains/compose-jb/issues and tell your Linux and JVM version along with Compose version used.