[MPlayer-users] Building MPlayer Fails

Ivan Kowalenko ivan.kowalenko at gmail.com
Wed Jun 14 09:26:34 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jun 14, 2006, at 00.30, Guillaume POIRIER wrote:

> Hi,
>
> On 6/14/06, Ivan Kowalenko <ivan.kowalenko at gmail.com> wrote:
>> Hello. I'm attempting to build MPlayer SVN on my Mac OS X 10.4.6
>> machine (768 MB RAM, 1 GHz PPC G4).
>>
>> This is my configuration line:
>> ./configure --with-extraincdir=/sw/include/:/opt/local/include/:/usr/
>> include/:/usr/local/include/ --with-extralibdir=/sw/lib/:/opt/local/
>> lib/:/usr/lib/:/usr/local/lib/ --enable-crash-debug --cc="distcc
>> gcc-3.4" --disable-tv --enable-macosx-finder-support --enable-macosx-
>> bundle --enable-menu --enable-joystick --enable-largefiles
>
> mplayer's configure doesn't work the same way as most apps. When you
> use --enable-xx what really happens is that you force the compilation
> of xx feature.
>
> So the rule is to rule to run the configure script with no option at
> all except maybe options adding some search path... and look at the
> list of modules that were detected by MPlayer. All modules that were
> detected should compile, the others should not.

Well, when I tried to compile it with the last CVS snapshot (before  
the SVN servers were up), those options worked. But, I decided to not  
include them. Here is my revised configure line:

./configure --with-extraincdir=/sw/include/:/opt/local/include/:/usr/ 
include/:/usr/local/include/:/Developer/SDKs/MacOSX10.4u.sdk/user/ 
include/:/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers --with- 
extralibdir=/sw/lib/:/opt/local/lib/:/usr/lib/:/usr/local/lib/:/ 
Developer/SDKs/MacOSX10.4u.sdk/usr/lib/:/Developer/SDKs/ 
MacOSX10.4u.sdk/System/Library/:/Developer/SDKs/MacOSX10.4u.sdk/ 
System/Library/Frameworks/ --enable-crash-debug --cc="distcc gcc-3.4"

I can confirm the /Developer/ subdirectories as existing. Now,  
however, MPlayer no longer finds the Mac OS X APIs, Finder Support,  
or Bundle locations. I'm wondering how I would go about getting these  
things to work (open question, I guess). Since those options have  
been there for a while, I'm guessing someone got them to work at some  
point under some conditions.

I probably should have mentioned this earlier, but I'm attempting to  
use GCC 3.4.6, as opposed to the Apple provided GCC 4.0.1. Don't know  
if this is an issue, but it's probably worth mentioning.

Oh, how does one go about enabling XviD Two-Pass these days? I've  
never seen it before, and I imagine not having it might interfere  
with encoding things using XviD and two passes (but that's just a  
guess ;)

> The error seems pretty obvious to me: CoreFoundation/CoreFoundation.h
> can't be found.
>
> No idea what you need to install to get it though...

Found the file, it's in /Developer/SDKs/MacOSX10.4u.sdk/System/ 
Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/
This lead to the inclusion of the /Developer/ directories in the  
revised configuration line, though it was never mentioned on any of  
my earlier builds.

New error now:

make -C libavcodec LIBPREF=lib LIBSUF=.a
gcc-3.4 -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=7450 - 
mtune=7450 -pipe -ffast-math -fomit-frame-pointer -faltivec - 
D__APPLE_ALTIVEC__ -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - 
DCONFIG_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE - 
D_FILE_OFFSET_BITS=64 -I/sw/include/ -I/opt/local/include/ -I/usr/ 
include/ -I/usr/local/include/ -I/Developer/SDKs/MacOSX10.4u.sdk/user/ 
include/ -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers - 
DHAVE_AV_CONFIG_H -I.. -I/Users/kichigai/Downloads/compile/mplayer- 
svn/trunk/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE - 
D_GNU_SOURCE   -c -o imgresample.o imgresample.c
imgresample.c:282: error: syntax error before "vector"
imgresample.c:282: warning: no semicolon at end of struct or union
imgresample.c:284: error: syntax error before '}' token
imgresample.c:284: warning: data definition has no type or storage class
imgresample.c:287: error: syntax error before "vector"
imgresample.c:287: warning: no semicolon at end of struct or union
imgresample.c:289: error: syntax error before '}' token
imgresample.c:289: warning: data definition has no type or storage class
imgresample.c: In function `v_resample16_altivec':
imgresample.c:296: error: `vector' undeclared (first use in this  
function)
imgresample.c:296: error: (Each undeclared identifier is reported  
only once
imgresample.c:296: error: for each function it appears in.)
imgresample.c:296: error: syntax error before "unsigned"
imgresample.c:309: error: `fv' undeclared (first use in this function)
imgresample.c:313: error: `zero' undeclared (first use in this function)
imgresample.c:314: error: `zeros' undeclared (first use in this  
function)
imgresample.c:348: error: `tv' undeclared (first use in this function)
imgresample.c:348: error: syntax error before "unsigned"
imgresample.c:349: error: `tmp' undeclared (first use in this function)
imgresample.c:350: error: `srchv' undeclared (first use in this  
function)
imgresample.c:350: error: syntax error before "signed"
imgresample.c:351: error: `srclv' undeclared (first use in this  
function)
imgresample.c:351: error: syntax error before "signed"
imgresample.c:352: error: `sumhv' undeclared (first use in this  
function)
imgresample.c:353: error: `sumlv' undeclared (first use in this  
function)
imgresample.c:355: error: syntax error before "unsigned"
imgresample.c:357: error: syntax error before "signed"
imgresample.c:358: error: syntax error before "signed"
imgresample.c:362: error: syntax error before "unsigned"
imgresample.c:364: error: syntax error before "signed"
imgresample.c:365: error: syntax error before "signed"
imgresample.c:369: error: syntax error before "unsigned"
imgresample.c:371: error: syntax error before "signed"
imgresample.c:372: error: syntax error before "signed"
imgresample.c:380: error: `dstv' undeclared (first use in this function)
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: syntax error before "unsigned"
imgresample.c:381: error: invalid parameter combination for `vec_st'  
AltiVec intrinsic
make[1]: *** [imgresample.o] Error 1
make: *** [libavcodec/libavcodec.a] Error 2

I'd truncate that, but, as a total moron when it comes to these  
things, I'm not totally sure what's safe to cut.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEj7ot187keuSyQSQRAodjAJ9aR2M2Ppfc1dff2r5DWTvsMP31CgCfc80H
a3mogPvF/FZi60RDESy7gkU=
=01cP
-----END PGP SIGNATURE-----



More information about the MPlayer-users mailing list