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

Steve Borho steve at borho.org
Wed Aug 5 16:45:55 CEST 2015


On 08/05, Mario *LigH* Rohkr??mer wrote:
> Just tried to build x265 under Ubuntu MATE 15.04. Worked well so far
> with installed libnuma-dev and yasm-1.3.0 for Thrusty. I adapted the
> scripts a bit to compile different flavours in parallel (using
> build/linux_ml as a copy of build/linux as base of the multilib
> compilation).
> 
> Installing the multilib version of x265 (with a small stub x265
> binary and each a large libx265.so.68 and libx265.a) seemed to work
> well; but it doesn't run, the binary doesn't find its shared object:
> 
> +----
> ligh at ligh-VirtualBox:~$ cd x265/build/linux_ml/8bit/
> ligh at ligh-VirtualBox:~/x265/build/linux_ml/8bit$ sudo make install
> [sudo] password for ligh:
> [ 63%] Built target common
> [ 87%] Built target encoder
> [ 87%] Built target x265-shared
> [100%] Built target cli
> [100%] Built target x265-static
> Install the project...
> -- Install configuration: "Release"
> -- Installing: /usr/local/lib/libx265.a
> -- Up-to-date: /usr/local/include/x265.h
> -- Installing: /usr/local/include/x265_config.h
> -- Installing: /usr/local/lib/libx265.so.68
> -- Up-to-date: /usr/local/lib/libx265.so
> -- Installing: /usr/local/lib/pkgconfig/x265.pc
> -- Installing: /usr/local/bin/x265
> -- Removed runtime path from "/usr/local/bin/x265"
> 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

> +----
> 
> A "make install" without sudo fails:
> 
> +----
> ligh at ligh-VirtualBox:~/x265/build/linux_ml/8bit$ make install
> [ 63%] Built target common
> [ 87%] Built target encoder
> [ 87%] Built target x265-shared
> [100%] Built target cli
> [100%] Built target x265-static
> Install the project...
> -- Install configuration: "Release"
> -- Up-to-date: /usr/local/lib/libx265.a
> CMake Error at cmake_install.cmake:36 (file):
>   file INSTALL cannot set permissions on "/usr/local/lib/libx265.a"
> 
> 
> Makefile:66: recipe for target 'install' failed
> make: *** [install] Error 1

pretty much standard unix behavior

> +----
> 
> The content of the 8bit directory (after stripping x265):
> 
> +----
> ligh at ligh-VirtualBox:~/x265/build/linux_ml/8bit$ ls -l
> insgesamt 35364
> drwxrwxr-x 2 ligh ligh     4096 Aug  5 15:56 cmake
> -rw-rw-r-- 1 ligh ligh    17030 Aug  5 15:56 CMakeCache.txt
> drwxrwxr-x 9 ligh ligh     4096 Aug  5 16:04 CMakeFiles
> -rw-rw-r-- 1 ligh ligh     4135 Aug  5 15:56 cmake_install.cmake
> drwxrwxr-x 3 ligh ligh     4096 Aug  5 15:56 common
> drwxrwxr-x 3 ligh ligh     4096 Aug  5 15:56 encoder
> -rw-r--r-- 1 root root      192 Aug  5 16:00 install_manifest.txt
> -rw-rw-r-- 1 ligh ligh 16746576 Aug  5 15:58 libx265.a
> lrwxrwxrwx 1 ligh ligh       18 Aug  5 15:56 libx265_main10.a ->
> ../10bit/libx265.a
> lrwxrwxrwx 1 ligh ligh       18 Aug  5 15:56 libx265_main12.a ->
> ../12bit/libx265.a
> -rw-rw-r-- 1 ligh ligh  5189524 Aug  5 15:58 libx265_main.a
> lrwxrwxrwx 1 ligh ligh       13 Aug  5 15:57 libx265.so -> libx265.so.68
> -rwxrwxr-x 1 ligh ligh 14102736 Aug  5 15:57 libx265.so.68
> -rw-rw-r-- 1 ligh ligh    15614 Aug  5 15:56 Makefile
> -rwxrwxr-x 1 ligh ligh    88904 Aug  5 15:58 x265
> -rw-rw-r-- 1 ligh ligh     1414 Aug  5 15:56 x265_config.h
> -rw-rw-r-- 1 ligh ligh      450 Aug  5 15:56 x265.def
> -rw-rw-r-- 1 ligh ligh      251 Aug  5 15:56 x265.pc
> +----

yep

-- 
Steve Borho


More information about the x265-devel mailing list