On 16 Jun 2015, at 11:47 , Matthieu Lacaton <matthieu.lacaton@gmail.com> wrote:
Hello,
I am currently using Archlinux and I don't have the SDL2 library loaded into my system. Yesterday I downloaded the latest Pharo 5 vm and image thanks to the zeroconf scripts.
When I tried to call "OSSDL2Driver hasPlugin" the return was "false" with the following message console : ioLoadModule(.../pharo-vm/libSDL2DisplayPlugin.so): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
The library itself (libSDL2-2.0.so.0) is located in the pharo-vm folder, however it seems that the vm is looking for it somewhere else because after copying the file in /usr/lib32/ the VM was able to find it correctly.
I was wondering : shouldn't the vm only rely on the SDL2 library inside pharo-vm folder ?
Thanks,
Matthieu
IIRC, you get the same error message if a library SDL2-2.0.so relies on cannot be found. So, assuming the zeroconf has dealth with setting LD_LIBRARY_PATH to include the vm directory, I'd try readelf -d, and check that all (32-bit versions of) the libraries SDL needs are available. Cheers, Henry