In kubuntu
18.04, xnview v0.91 (installed from the x64 deb package) also fails with:
Code: Select all
/opt/XnView/XnView: error while loading shared libraries: libva-drm.so.1: cannot open shared object file: No such file or directory
...and
Code: Select all
/opt/XnView/XnView: error while loading shared libraries: libva-x11.so.1: cannot open shared object file: No such file or directory
as a consequence of what @djcj has explained so very detailed (thanks a lot for this valuable help, djcj).
I would like to contribute to help those who come to this thread and don't know what to do other than wait for the fix. This is how I made it work --at least for now.
WORKAROUND
Note that this is not a final solution, it is just a hack to get you working until a fix is posted.
Basic background (you can just skip this part and go to the solution below if you want):
If you are missing
libva-drm.so.1 and/or
libva-x11.so.1, you should note that there are no packages that provide those specific versions for ubuntu 18.04. The available versions are
libva-drm.so.2 and/or
libva-x11.so.2. Now, there is the package
libva-dev, which provide libva-drm.so and libva-x11.so . I didn't install it, because if the versions wouldn't match, I would be in the same position: having an older version, or a newer one.
So I tried the following hack, with success: make symlinks (in the /opt/XnView/lib/ directory) to the available files. To put it simple:
If you are missing libva-drm.so.1 and/or libva-x11.so.1, enter this code in a console:
Code: Select all
cd /opt/XnView/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libva-drm.so.2 libva-drm.so.1
sudo ln -s /usr/lib/x86_64-linux-gnu/libva-x11.so.2 libva-x11.so.1
Assuming those where the only missing files in your system, as I had in my ubuntu 18.04 system, you should be done.
In my case, I did have a bit of strange behavior on the browser view (couldn't select files in detailed view) but I fixed it with this:
Settings -> Interface -> Recent files -> Purge now, and then restarted xnview. So far, it's working.
Edited on 15.09.2018 to add the following:
The above code doesn't affect any other thing than xnview; that's why the symlinks are done in XnView's directory.
If for any reason you would like to undo them, just enter this code to delete the two symlinks and get back to exactly how it was before:
Code: Select all
cd /opt/XnView/lib/
sudo rm -i libva-drm.so.1 libva-x11.so.1
The -i flag is just a simple precaution: it provides confirmation before deleting.