[Ffmpeg-devel] Compiling ffmpeg on OS X

Anthony N. Frasso afrasso
Tue May 30 05:24:34 CEST 2006


Hello, and thanks in advance for your help.

I finally got around to building and installing
subversion and downloading the latest ffmpeg source
code.  Unfortunately, I had trouble getting ffmpeg to
compile successfully.  I'm using version 10.3.9 of Mac
OS X.

$ ./configure --enable-mp3lame --enable-xvid
--enable-x264 --enable-a52 --enable-gpl
ld: table of contents for archive:
/usr/local/lib//libxvidcore.a is out of date; rerun
ranlib(1) (can't load from it)
ld: can't locate file for: -lx264
install prefix   /usr/local
source path      /Users/tony/Software/ffmpeg
C compiler       cc
make             make
CPU              powerpc (generic)
big-endian       yes
inttypes.h       yes
broken inttypes.h no
AltiVec enabled  yes
gprof enabled    no
zlib enabled     yes
lzo enabled      no
libgsm enabled   no
mp3lame enabled  yes
libogg enabled   no
Vorbis enabled   no
Theora enabled   no
FAAD enabled     no
faadbin enabled  no
FAAC enabled     no
XviD enabled     yes
x264 enabled     yes
a52 support      yes
a52 dlopened     no
DTS support      no
pp support       no
debug symbols    yes
strip symbols    yes
optimize         yes
static           yes
shared           no
video hooking    yes
SDL support      no
Imlib2 support   no
FreeType support no
Sun medialib support no
pthreads support no
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
AMR-WB IF2 support no
network support      yes
IPv6 support         yes
License: GPL
Creating config.mak and config.h...

And then the build error:
cc -O3 -g -Wall -Wno-switch  -no-cpp-precomp -pipe
-fomit-frame-pointer -force_cpusubtype_ALL
-Wno-sign-compare -faltivec -mdynamic-no-pic
-DHAVE_AV_CONFIG_H -I..
-I/Users/tony/Software/ffmpeg/libavutil
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_GNU_SOURCE   -c -o x264.o x264.c
In file included from
/Users/tony/Software/ffmpeg/libavutil/avutil.h:24,
                 from avcodec.h:14,
                 from x264.c:20:
/Users/tony/Software/ffmpeg/libavutil/common.h:620:
warning: static declaration for `lrintf' follows
non-static
x264.c:21:18: x264.h: No such file or directory
x264.c:28: error: parse error before "x264_param_t"
x264.c:28: warning: no semicolon at end of struct or
union
x264.c:29: warning: type defaults to `int' in
declaration of `enc'
x264.c:29: warning: data definition has no type or
storage class
x264.c:30: error: parse error before "pic"
x264.c:30: warning: type defaults to `int' in
declaration of `pic'
x264.c:30: warning: data definition has no type or
storage class
x264.c:32: error: parse error before '}' token
x264.c:32: warning: type defaults to `int' in
declaration of `X264Context'
x264.c:32: warning: data definition has no type or
storage class
x264.c: In function `X264_log':
x264.c:38: error: `X264_LOG_ERROR' undeclared (first
use in this function)
x264.c:38: error: (Each undeclared identifier is
reported only once
x264.c:38: error: for each function it appears in.)
x264.c:38: error: nonconstant array index in
initializer
x264.c:38: error: (near initialization for
`level_map')
x264.c:39: error: `X264_LOG_WARNING' undeclared (first
use in this function)
x264.c:39: error: nonconstant array index in
initializer
x264.c:39: error: (near initialization for
`level_map')
x264.c:40: error: `X264_LOG_INFO' undeclared (first
use in this function)
x264.c:40: error: nonconstant array index in
initializer
x264.c:40: error: (near initialization for
`level_map')
x264.c:41: error: `X264_LOG_DEBUG' undeclared (first
use in this function)
x264.c:41: error: nonconstant array index in
initializer
x264.c:41: error: (near initialization for
`level_map')
x264.c: At top level:
x264.c:52: error: parse error before "x264_nal_t"
x264.c: In function `encode_nals':
x264.c:54: error: `buf' undeclared (first use in this
function)
x264.c:57: error: `nnal' undeclared (first use in this
function)
x264.c:58: warning: implicit declaration of function
`x264_nal_encode'
x264.c:58: error: `size' undeclared (first use in this
function)
x264.c:58: error: `nals' undeclared (first use in this
function)
x264.c: In function `X264_frame':
x264.c:70: error: `x4' undeclared (first use in this
function)
x264.c:72: error: `x264_nal_t' undeclared (first use
in this function)
x264.c:72: error: `nal' undeclared (first use in this
function)
x264.c:74: error: `x264_picture_t' undeclared (first
use in this function)
x264.c:74: error: parse error before "pic_out"
x264.c:76: error: `X264_CSP_I420' undeclared (first
use in this function)
x264.c:85: error: `X264_TYPE_AUTO' undeclared (first
use in this function)
x264.c:87: warning: implicit declaration of function
`x264_encoder_encode'
x264.c:87: error: `pic_out' undeclared (first use in
this function)
x264.c:98: error: `X264_TYPE_IDR' undeclared (first
use in this function)
x264.c:99: error: `X264_TYPE_I' undeclared (first use
in this function)
x264.c:102: error: `X264_TYPE_P' undeclared (first use
in this function)
x264.c:105: error: `X264_TYPE_B' undeclared (first use
in this function)
x264.c:106: error: `X264_TYPE_BREF' undeclared (first
use in this function)
x264.c: In function `X264_close':
x264.c:120: error: `x4' undeclared (first use in this
function)
x264.c:123: warning: implicit declaration of function
`x264_encoder_close'
x264.c: In function `X264_init':
x264.c:131: error: `x4' undeclared (first use in this
function)
x264.c:133: warning: implicit declaration of function
`x264_param_default'
x264.c:189: error: `X264_ANALYSE_I4x4' undeclared
(first use in this function)
x264.c:191: error: `X264_ANALYSE_I8x8' undeclared
(first use in this function)
x264.c:193: error: `X264_ANALYSE_PSUB16x16' undeclared
(first use in this function)
x264.c:195: error: `X264_ANALYSE_PSUB8x8' undeclared
(first use in this function)
x264.c:197: error: `X264_ANALYSE_BSUB16x16' undeclared
(first use in this function)
x264.c:205: error: `X264_ME_DIA' undeclared (first use
in this function)
x264.c:207: error: `X264_ME_HEX' undeclared (first use
in this function)
x264.c:209: error: `X264_ME_UMH' undeclared (first use
in this function)
x264.c:211: error: `X264_ME_ESA' undeclared (first use
in this function)
x264.c:245: error: `X264_LOG_DEBUG' undeclared (first
use in this function)
x264.c:255: warning: implicit declaration of function
`x264_encoder_open'
x264.c:262: error: `x264_nal_t' undeclared (first use
in this function)
x264.c:262: error: `nal' undeclared (first use in this
function)
x264.c:265: warning: implicit declaration of function
`x264_encoder_headers'
make[1]: *** [x264.o] Error 1
make: *** [lib] Error 2

Does anyone have any thoughts on what might be wrong?

Thanks again for your help!

Regards,
Anthony Frasso
anf4 at cornell.edu

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the ffmpeg-devel mailing list