Tôi làm theo hướng dẫn cài đặt này . Ở bước 3 (Cài đặt phụ thuộc):
sudo ./licode/scripts/installUbuntuDeps.shtrong thiết bị đầu cuối
Nhưng trong khi biên dịch nó ném error libx264 not foundTại sao tôi gặp lỗi này và làm thế nào để khắc phục nó?
Tôi làm theo hướng dẫn cài đặt này . Ở bước 3 (Cài đặt phụ thuộc):
sudo ./licode/scripts/installUbuntuDeps.shtrong thiết bị đầu cuối
Nhưng trong khi biên dịch nó ném error libx264 not foundTại sao tôi gặp lỗi này và làm thế nào để khắc phục nó?
Câu trả lời:
Nó xảy ra bởi vì bạn đang biên dịch libav --enable-libx264mà sẽ cần các tiêu đề libx264 để hoàn thành. Nó không thành công ở giai đoạn cấu hình với:
configure: error: libx264 not found
Điều này có thể được sửa dễ dàng cài đặt gói tiêu đề cần thiết libx264-devnên được thực hiện sudo apt-get install yasm libvpx. libx264.nhưng vì một số lý do, nó không dành cho bạn:
sudo apt-get install yasm libvpx. libx264.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libvpx-doc' for regex 'libvpx.'
Note, selecting 'libvpx1-dbg' for regex 'libvpx.'
Note, selecting 'libvpx-dev' for regex 'libvpx.'
Note, selecting 'libvpx1' for regex 'libvpx.'
Note, selecting 'libx264-133' for regex 'libx264.'
Note, selecting 'libx264-142' for regex 'libx264.'
Note, selecting 'libx264-dev' for regex 'libx264.'
libvpx-dev is already the newest version.
libvpx1 is already the newest version.
libvpx1 set to manually installed.
yasm is already the newest version.
libx264-142 is already the newest version.
libx264-142 set to manually installed.
libx264-dev is already the newest version.
The following NEW packages will be installed:
libvpx-doc libvpx1-dbg
0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded.
Need to get 1,613 kB of archives.
After this operation, 8,027 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
libx264.
bao gồm --enable-static --disable-opencl
ví dụ -
cd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
PATH="$PATH:$HOME/bin" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static **--disable-opencl**
PATH="$PATH:$HOME/bin" make
make install
make distclean
sudo apt-get install libx264-142 libx264-dev