'ffmpeg cross'에 해당되는 글 1건

  1. 2010.03.08 ffmpeg 크로스컴파일시 오류발생 (STLinux2.2) (2)
회사일/STLinux2010. 3. 8. 17:22
STLinux2.2에서 크로스 컴파일을 시도하는데
sh4-linux-gcc -DHAVE_AV_CONFIG_H -I. -I"/home/morpheuz/st7109/target_ori/root/ffmpeg" --sysroot=/home/morpheuz/st7109/target_ori -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-tree-vectorize        -MMD -MF ffserver.d -MT ffserver.o -c -o ffserver.o ffserver.c

libavcodec/vorbis_dec.c:1409: warning: no previous prototype for 'vorbis_inverse_coupling'
libavcodec/vorbis_dec.c: In function 'vorbis_decode_init':
libavcodec/vorbis_dec.c:575: warning: 'book_idx' is used uninitialized in this function
libavcodec/vorbis_dec.c:998: internal compiler error: in schedule_insns, at sched-rgn.c:2605
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://bugzilla.stlinux.com> for instructions.
make: *** [libavcodec/vorbis_dec.o] Error 1 
요런 에러가 발생한다.

물론, 컴파일도 제대로 완료되지 못하고 결과물도 생성되지 않는다.
버그리폿하려다가 그냥 STLinux2.3에 들어있는 sh4-linux-gcc로 하니 문제없이 해결!

뭥미? ㄱ-




아무튼, PATH 변수의 경로를 바꾸는 법이 있다지만, 귀차니즘으로 인해
config.mak 파일의 CC= AS= 등에
전부 절대경로로 바꾸어 넣어주었다.

# ./configure --enable-shared --target-os=linux --arch=sh4 --cross-prefix=sh4-linux- --enable-cross-compile

# vi config.mak
CC=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
AS=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
LD=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
DEPCC=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
AR=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-ar
RANLIB=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-ranlib
STRIP=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-strip

'회사일 > STLinux' 카테고리의 다른 글

glibc 타겟보드 컴파일  (2) 2010.03.15
VLC 와 pkg-config  (0) 2010.03.09
python 2.5.4 컴파일시 bzip 에러  (0) 2010.02.25
python2.4 on STLinux with google api(gdata)  (0) 2010.02.23
cross compiled python2.4 on STLinux2.3  (2) 2010.02.23
Posted by 구차니

댓글을 달아 주세요