[x265] x265 multilib on Linux: installation probably not working as expected, x265 doesn't find .so

Stephen Hutchinson qyot27 at gmail.com
Wed Aug 5 18:08:36 CEST 2015


On Wed, Aug 5, 2015 at 10:45 AM, Steve Borho <steve at borho.org> wrote:
> On 08/05, Mario *LigH* Rohkr??mer wrote:
>> ligh at ligh-VirtualBox:~/x265/build/linux_ml/8bit$ cd ~
>> ligh at ligh-VirtualBox:~$ x265 -V
>> x265: error while loading shared libraries: libx265.so.68: cannot
>> open shared object file: No such file or directory
>
> looks like a library load path issue.
>
> http://unix.stackexchange.com/questions/67781/use-shared-libraries-in-usr-local-lib
>

That's exactly what it is.  After installing shared libraries,
*always* run sudo ldconfig.



And just for safety's sake, it's better to use checkinstall so that
it's registered in dpkg
and you can remove or upgrade the package cleanly.  checkinstall can
also register
the shared objects so that ldconfig isn't a necessary after-step.

sudo checkinstall --pkgname=x265 --pkgversion="1:$(grep X265_VERSION \
build.ninja | sed 's/X265_VERSION=/\t/' | cut -f2 | sed 's/ /\t/g' |
cut -f1)-$(date \
--rfc-3339=date | sed 's/-//g')-hg" --backup=no --deldoc=yes --delspec=yes \
--deldesc=yes --strip=yes --stripso=yes --addso=yes --fstrans=no
--default ninja install

Granted, I was using Ninja there, but checkinstall by itself will use
make unless
you tell it not to.  The pkgversion just needs to be adjusted to point
at whatever
file houses X265_VERSION's definition.


More information about the x265-devel mailing list