pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Trying to build mplayer on Mac OS X 10.6 (Snow Leopard)



All,

I'm trying to build mplayer under Snow Leopard with no success (yet). My initial attempt failed during 'configure' with the following:

===> Configuring for mplayer-1.0rc10nb14
Detected operating system: Darwin
Detected host architecture: i386
Checking for gcc version ... 4.2.1, ok
Checking for host cc ... gcc
Checking for cross compilation ... yes
Checking for GCC & CPU optimization abilities ... i486
Checking for assembler support of -pipe option ... no
Checking for compiler support of named assembler arguments ... yes
Checking for GCC support of -mstackrealign ... no
Checking for assembler (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/as 1.38) ... ok
Checking for .align is a power of two ... no
Checking for -lposix ... no
Checking for -lm ... no
Checking for langinfo ... no
Checking for language ... using en (man pages: en )
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... yes
Checking for restrict keyword ... none
Checking for __builtin_expect ... no
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... no
Checking for mkstemp ... no
Checking for nanosleep ... no
Checking for socklib ... no
Checking for inet_pton() ... no (trying inet_aton next)
Checking for inet_aton() ... no (network support disabled)
Checking for network ... no
Checking for inttypes.h (required) ... no
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.

Check "configure.log" if you do not understand why it failed.
*** Error code 1

Stop.

A quick Google turned up the answer (http://lists.mplayerhq.hu/pipermail/mplayer-users/2009-September/077726.html ) -- you have to pass '-target=x86_64-Darwin' to gcc to correctly set the CPU type for the mplayer configure script. When I do this on the command line from within the work/MPlayer directory and run 'configure' it goes to completion. I can't figure out how to do this from within the pkgsrc Makefile, though. Setting 'CFLAGS+=- target=x86_64-Darwin' or 'CFLAGS=-target=x86_64-Darwin' in the Makefile doesn't seem to work. I'm sure this is straightforward but I can't seem to figure it out!

Thanks for any help,

Steve


Home | Main Index | Thread Index | Old Index