mplayer 설치 에러

개발공부 2017. 3. 5. 00:48
반응형

mplayer 설치 시,


libmpcodecs/ve_x264.c: In function 'put_image':

libmpcodecs/ve_x264.c:239: error: implicit declaration of function 'x264_picture_init'

libmpcodecs/ve_x264.c:249: error: 'X264_TYPE_KEYFRAME' undeclared (first use in this function)

libmpcodecs/ve_x264.c:249: error: (Each undeclared identifier is reported only once

libmpcodecs/ve_x264.c:249: error: for each function it appears in.)


이런 에러가 났다.


gcc 버전이 낮아서 나는 문제라고 해서 4.4.7 설치하는데 아래와 같은 에러 발견..  -> 버젼을 올려도 해결이 안됨.. 멘붕

gcc 빌드를 위해서는 mpfr, gmp 의 일정 이상 버전의 설치가 필요했다.

둘다 설치를 분명 했는데..

configure: error: cannot compute suffix of object files: cannot compile

이런 에러가 떨어졌다. config.log를 보아하니, libgmp.so, libmpfr.so를 못찾는 다는 에러가 뙇.


두개 다 #./configure --enable-shared 로 다시 설치했더니 

gcc는 제대로 make 진행중.. 이다가 또 에러 났다..

아래처럼 상위에 디렉토리를 하나 만들고 설치하니 잘 되었다.!!! 우왕 ㅠㅠ

After that, make a directory outside the GCC source directory, for example:

$ ls

./   ../    gcc-src-dir/

$ mkdir gcc-obj-dir

$ cd gcc-obj-dir

$ ../gcc-src-dir/configure

...

$ make

...

and so on.





===========================

ERROR: mplayer cfg-common.h error initializer element is not constant


cat /etc/readhat-release  => CentOS release 6.4(Final)

ffmpeg --version => 0.9.1

mplayer --version => mplayer-export-snapshot.tar.bz2 (1.1.1)



- X264


when I install "mplayer" source, it occurred this error.

====================================================================================================

libmpcodecs/ve_x264.c: In function 'put_image':

libmpcodecs/ve_x264.c:239: error: implicit declaration of function 'x264_picture_init'

libmpcodecs/ve_x264.c:249: error: 'X264_TYPE_KEYFRAME' undeclared (first use in this function)

libmpcodecs/ve_x264.c:249: error: (Each undeclared identifier is reported only once

libmpcodecs/ve_x264.c:249: error: for each function it appears in.)

====================================================================================================

upgrade gcc version to 4.4.7 and mpfr, gmp etc..

but it doesn't work.


And I realized that I didn't install libx264-devel.


So, get libx264-devel source, unpack gz file. 

And copy files each directory.

(libx264 source version should be same with x264.so.x.)

when you unpack the package, it create "usr" directory. 

and you can see where the destination is. 


for example,

source dir: usr/lib/include/x264.h  => destination dir: /usr/lib/include/.

======================================================================================================= 


- cannot find -logg

: yum install libogg-devel


반응형

'개발공부' 카테고리의 다른 글

mac putty ppk 사용  (0) 2017.03.05
eclipse maven 셋팅  (0) 2017.03.05
nodeJS 설치 에러  (0) 2017.03.05
svn branch, merge 관련  (0) 2017.03.05
NFS mount  (0) 2017.03.03
posted by 알릿수