Open iskunk opened 4 years ago
I can confirm I get the same error after installing. By default libw2xc.so gets installed to /usr/local/lib but the program looks for it in /usr/lib, hence the file not found error. A workaround is moving libw2xc.so from /usr/local/lib to /usr/lib, or create a symlink.
I had the same issue after sudo make install
> waifu2x-converter-cpp --help
waifu2x-converter-cpp: error while loading shared libraries: libw2xc.so: cannot open shared object file: No such file or directory
So I did
sudo ldconfig
as suggested in BUILDING.md
Then waifu2x-converter-cpp --help
worked as expected.
Note that ldconfig
only helps if the program is installed in a system location, like /usr/local/lib/
. (And this requires root access, naturally.)
I am able to build the project successfully on Linux, using e.g.
However, after the
make
andmake install
, when I go to run the program, I get this:It only runs correctly if I set
LD_LIBRARY_PATH=/tmp/WAIFU2X/lib
in the environment, which is annoying.I'd like to suggest a minor change, which will cause the project's built binaries to have a relative RPATH setting that allows them to work cleanly in the above scenario:
(There may be a better place to put this setting, as it is only applicable to
UNIX
builds.)