오류 libx264를 찾을 수 없습니다


9

이 설치 안내서를 따릅니다 . 3 단계 (종속성 설치)에서 :

sudo ./licode/scripts/installUbuntuDeps.sh 터미널에서

그러나 컴파일하는 동안 error libx264 not found이 오류가 발생한 이유와 해결 방법은 무엇입니까?


3
비디오 디코딩 패키지이며 다음과 함께 설치할 수 있습니다.sudo apt-get install libx264-142 libx264-dev

@ 123456 답을 추가해야합니다 :-)
Seth

답변:


6

--enable-libx264libx264 헤더가 필요한 libav를 컴파일하기 때문에 발생합니다 . 다음과 같이 구성 단계에서 실패합니다.

configure: error: libx264 not found

이것은 필요한 헤더 패키지 libx264-dev를 쉽게 설치하여 해결할 수 sudo apt-get install yasm libvpx. libx264.있지만 어떤 이유로 든 당신에게 적합하지 않습니다.

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.

나는 그것이 해결되었다고 생각했지만 이것을 얻었습니다 : sudo apt-get install yasm libvpx를 사용한 후 패키지 libx264를 찾을 수 없습니다. libx264
Muath

2
@MoathHowari 그것은 끝에 포인트를 가지고libx264.
Braiam

그렇습니다, 지금 installUbuntuDeps.sh를 다시 실행하여 오류가 계속 나타나는지 확인하십시오. 감사합니다
Muath

@Braiam 저는 ARM 프로세서를 위해 ffmpeg를 컴파일 할 것입니다. 그래서 내 PC에 설치되기 때문에 그렇게 설치할 수 없습니다. ./configure 명령에서 ARM 용으로 컴파일 된 x264 폴더를 추가해야합니다. 다음과 같이 추가했습니다 : --extra-cflags = "-I ../ x264"--extra-ldflags = "-L ../ x264"; 그러나 작동하지 않는 것 같습니다.
Dr.jacky

@ Mr.Hyde ARM의 빌드에 대해 잘 모르지만 해당 헤더를 포함하는 -dev 패키지가 없습니까? IMO, ffmpeg configure 스크립트가 찾아야합니다.
Braiam

1

--enable-static --disable-opencl 포함

예를 들어-

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

1
고맙지 만, 왜 이것이 작동하는지 이해합니까?
Meekohi

소스에서 libx264를 설치하지만 일반적으로 패키지 관리자를 사용하여 소프트웨어를 설치해야합니다.
David Foerster

0

AS 123456 은 사용sudo apt-get install libx264-142 libx264-dev

오류가 발생한 libx264가 설치됩니다.

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.