Compiling mplayer on Mac OS X 10.7 (Lion)
Have been doing this for ages, but with Lion there's a new error:
~/mplayer > ./configure
No FFmpeg checkout, press enter to download one with git or CTRL+C to abort
Cloning into ffmpeg...
remote: Counting objects: 7969, done.
remote: Compressing objects: 100% (5420/5420), done.
Receiving objects: 100% (7969/7969), 9.84 MiB | 1.40 MiB/s, done.
remote: Total 7969 (delta 5169), reused 4198 (delta 2409)
Resolving deltas: 100% (5169/5169), done.
Checking for cc version ... 4.2.1
Checking for working compiler ... yes
Detected operating system: Darwin
Detected host architecture: x86_64
Checking for cross compilation ... no
Checking for host cc ... cc
Checking for CPU vendor ... GenuineIntel (6:23:10)
Checking for CPU type ... Intel(R) Core(TM)2 Duo CPU E8335 @ 2.93GHz
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of ssse3 ... yes
Checking for kernel support of cmov ... yes
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... core2
Checking for byte order ... little-endian
Checking for extern symbol prefix ... _
Checking for assembler support of -pipe option ... yes
Checking for GCC support of -mstackrealign ... no
Checking for PIC ... yes
Error: Your binutils version is too old to compile for 64-bit
Check "config.log" if you do not understand why it failed.
Googling for the answer didn't help, but I finally came across the solution: use clang.
~/mplayer > ./configure '--cc=clang'
and off it goes...
No comments:
Post a Comment