dlopen(libXss.so) should be replaced by dlopen(libXss.so.1) on linux

Hi,

In juce_linux_X11_Windowing.cpp, then are quite a few X11 extensions that are opened via dlopen. However most of them (except libXinerama) use the non-versioned .so file name. These files (which are links to the fully versioned so file) , such as ‘libXss.so’ are created only when the ‘libxss1-dev’ development package is installed. When only the ‘libxss1’ package is installed, ‘libXss.so’ does not exist. But ‘libXss.so.1’ does exist.

So I suggest to put the major version number after each ‘.so’ file mentionned in linux_X11_Windowing. It seems there is also a typo here:

libXrandr = dlopen ("libXinerama.so.2", RTLD_GLOBAL | RTLD_NOW);

1 Like

Thank you for spotting. A fix for this will be pushed to develop shortly.