Building libvpx problems on Mac OS X 10.7.3

1,042 views
Skip to first unread message

jogga

unread,
Feb 17, 2012, 6:30:45 AM2/17/12
to WebM Discussion
Hi all,

I'm trying to build libvpx for including in ffmpeg. I can't make it
work. This is what I have tried so far...

Downloaded, built and installed yasm from git clone git://github.com/yasm/yasm.git
without problems.

Downloaded and tried to build libvpx from git clone
http://git.chromium.org/webm/libvpx.git

./configure gives me the following output...

Configuring selected codecs
enabling vp8_encoder
enabling vp8_decoder
Configuring for target 'x86_64-darwin11-gcc'
enabling x86_64
enabling runtime_cpu_detect
enabling mmx
enabling sse
enabling sse2
enabling sse3
enabling ssse3
enabling sse4_1
using yasm
enabling postproc
Unable to invoke compiler: gcc -isysroot -mmacosx-version-min=10.7 -
m64 -fomit-frame-pointer -arch x86_64 -O3 -Wall -Wdeclaration-after-
statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wno-
unused-function

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.err) to determine what
configure was trying to do when it died.

Any ideas what might cause this error?

Cheers / Jorgen

Johann Koenig

unread,
Feb 17, 2012, 12:59:44 PM2/17/12
to webm-d...@webmproject.org
On Fri, Feb 17, 2012 at 03:30, jogga <jorgeni...@gmail.com> wrote:
> Unable to invoke compiler: gcc  -isysroot  -mmacosx-version-min=10.7 -
> m64 -fomit-frame-pointer -arch x86_64 -O3 -Wall -Wdeclaration-after-
> statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wno-
> unused-function
>
> Any ideas what might cause this error?

Do you have XCode installed? What is in config.err?

Also, are you running libvpx HEAD or a release? HEAD needs
https://gerrit.chromium.org/gerrit/16079
--
- johann koenig
  google

jogga

unread,
Feb 19, 2012, 5:31:31 AM2/19/12
to WebM Discussion


On Feb 17, 6:59 pm, Johann Koenig <johannkoe...@google.com> wrote:
> On Fri, Feb 17, 2012 at 03:30, jogga <jorgenisaks...@gmail.com> wrote:
> > Unable to invoke compiler: gcc  -isysroot  -mmacosx-version-min=10.7 -
> > m64 -fomit-frame-pointer -arch x86_64 -O3 -Wall -Wdeclaration-after-
> > statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wno-
> > unused-function
>
> > Any ideas what might cause this error?
>
> Do you have XCode installed? What is in config.err?
>
> Also, are you running libvpx HEAD or a release? HEAD needshttps://gerrit.chromium.org/gerrit/16079

For the record I get the same error when trying to configure the
libvpx-v1.0.0.zip release from http://code.google.com/p/webm/downloads/list

/ Jorgen

jogga

unread,
Feb 19, 2012, 5:05:15 AM2/19/12
to WebM Discussion


On Feb 17, 6:59 pm, Johann Koenig <johannkoe...@google.com> wrote:
> On Fri, Feb 17, 2012 at 03:30, jogga <jorgenisaks...@gmail.com> wrote:
> > Unable to invoke compiler: gcc  -isysroot  -mmacosx-version-min=10.7 -
> > m64 -fomit-frame-pointer -arch x86_64 -O3 -Wall -Wdeclaration-after-
> > statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wno-
> > unused-function
>
> > Any ideas what might cause this error?
>
> Do you have XCode installed?

Yes, latest version of Xcode installed. Version 4.3.

> What is in config.err?

# ./configure
Configuring selected codecs
enabling vp8_encoder
enabling vp8_decoder
Configuring for target 'x86_64-darwin11-gcc'
enabling x86_64
enabling runtime_cpu_detect
enabling mmx
enabling sse
enabling sse2
enabling sse3
enabling ssse3
enabling sse4_1
check_cflags -fomit-frame-pointer
check_cc -fomit-frame-pointer
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -c -
o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-27.o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
using yasm
check_cflags -O3
check_cc -O3
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -c -o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-27.o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-3804.c
check_cc
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E';
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -c -o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-27.o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-3804.c
check_header pthread.h
check_cpp
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 #include "pthread.h"
2 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -E -o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-27.o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-3804.c
/var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c:1:21: error: pthread.h: No such file or directory
check_header unistd.h
check_cpp
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 #include "unistd.h"
2 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -E -o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-27.o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/
T//vpx-conf-43366-3804.c
/var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c:1:20: error: unistd.h: No such file or directory
check_cflags -Wall
check_cc -Wall
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -c -o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
check_cflags -Wdeclaration-after-statement
check_cc -Wdeclaration-after-statement
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -c -o /var/folders/
bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /var/folders/
bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
check_cflags -Wdisabled-optimization
check_cc -Wdisabled-optimization
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -Wdisabled-
optimization -c -o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//
vpx-conf-43366-27.o /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//
vpx-conf-43366-3804.c
check_cflags -Wpointer-arith
check_cc -Wpointer-arith
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -Wdisabled-
optimization -Wpointer-arith -c -o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
check_cflags -Wtype-limits
check_cc -Wtype-limits
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -Wdisabled-
optimization -Wpointer-arith -Wtype-limits -c -o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
cc1: error: unrecognized command line option "-Wtype-limits"
check_cflags -Wcast-qual
check_cc -Wcast-qual
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -Wdisabled-
optimization -Wpointer-arith -Wcast-qual -c -o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /var/folders/bn/
d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
check_cflags -Wno-unused-function
check_cc -Wno-unused-function
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -Wdisabled-
optimization -Wpointer-arith -Wcast-qual -Wno-unused-function -c -o /
var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /
var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
enabling postproc
check_header stdio.h
check_cpp
BEGIN /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
1 #include "stdio.h"
2 int x;
END /var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c
gcc -isysroot -mmacosx-version-min=10.7 -m64 -fomit-frame-pointer -
arch x86_64 -O3 -Wall -Wdeclaration-after-statement -Wdisabled-
optimization -Wpointer-arith -Wcast-qual -Wno-unused-function -E -o /
var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-27.o /
var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-conf-43366-3804.c
/var/folders/bn/d3jcdrjs3_367y0pcplrrzwr0000gn/T//vpx-
conf-43366-3804.c:1:19: error: stdio.h: No such file or directory

> Also, are you running libvpx HEAD or a release? HEAD needshttps://gerrit.chromium.org/gerrit/16079

git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/aylesbury
remotes/origin/bali
remotes/origin/cayuga
remotes/origin/dixie
remotes/origin/experimental
remotes/origin/master
remotes/origin/sandbox/atna/dec_sem_sync
remotes/origin/sandbox/awatry/initial_opencl_implementation
remotes/origin/sandbox/hlundin/error-concealment
remotes/origin/sandbox/holmer/error-concealment
remotes/origin/sandbox/jkoleszar/cached-multibit
remotes/origin/sandbox/jkoleszar/experimental-knobs
remotes/origin/sandbox/jkoleszar/new-rate-control
remotes/origin/sandbox/jkoleszar/new-rtcd
remotes/origin/sandbox/jkoleszar/use-memcpy
remotes/origin/sandbox/slavarnway/test

Seems like I'm using master?

/ Jorgen

James Zern

unread,
Feb 19, 2012, 10:36:18 PM2/19/12
to webm-d...@webmproject.org
On Sun, Feb 19, 2012 at 02:05, jogga <jorgeni...@gmail.com> wrote:
>
>
> On Feb 17, 6:59 pm, Johann Koenig <johannkoe...@google.com> wrote:
>> On Fri, Feb 17, 2012 at 03:30, jogga <jorgenisaks...@gmail.com> wrote:
>> > Unable to invoke compiler: gcc  -isysroot  -mmacosx-version-min=10.7 -
>> > m64 -fomit-frame-pointer -arch x86_64 -O3 -Wall -Wdeclaration-after-
>> > statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wno-
>> > unused-function
>>
>> > Any ideas what might cause this error?
>>
>> Do you have XCode installed?
>
> Yes, latest version of Xcode installed. Version 4.3.
>
The value generated by configure and passed to -isysroot is empty
causing the compile to fail as it's unable to locate system header
files.
Line 647 in build/make/configure.sh is expecting the SDK root to be
"/Developer/SDKs/MacOSX10.7.sdk". Do you have this installed to a
non-standard location (or is the default in fact different from this)?

> --
> You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
> To post to this group, send email to webm-d...@webmproject.org.
> To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
> For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.
>

jogga

unread,
Feb 20, 2012, 7:16:35 AM2/20/12
to WebM Discussion
> The value generated by configure and passed to -isysroot is empty
> causing the compile to fail as it's unable to locate system header
> files.
> Line 647 in build/make/configure.sh is expecting the SDK root to be
> "/Developer/SDKs/MacOSX10.7.sdk". Do you have this installed to a
> non-standard location (or is the default in fact different from this)?

OK, now I understand. Xcode 4.3 is no longer using the old location
for it's Developer folder.

It used to be /Developer but now it's inside the .app bundle of Xcode
itself. I just added a new check in build/make/configure.sh

if [ -d "/Applications/Xcode.app/Contents/Developer/Platforms/
MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ]; then
osx_sdk_dir="/Applications/Xcode.app/Contents/Developer/Platforms/
MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
fi

Now -isysroot is properly set and configure and make works as it
should.

Thx for all the help / Jorgen

Chris McClanahan

unread,
Feb 21, 2012, 5:09:28 PM2/21/12
to WebM Discussion
@jogga
Thanks!

John Koleszar

unread,
Feb 21, 2012, 5:43:42 PM2/21/12
to webm-d...@webmproject.org
Tried to fix this upstream, but I don't have a mac handy to test on:

https://gerrit.chromium.org/gerrit/#change,16316

jogga

unread,
Feb 22, 2012, 3:02:21 AM2/22/12
to WebM Discussion


On Feb 21, 11:43 pm, John Koleszar <jkoles...@google.com> wrote:
> Tried to fix this upstream, but I don't have a mac handy to test on:
>
> https://gerrit.chromium.org/gerrit/#change,16316

The proper way to find the /Developer folder on OS X is to use "xcode-
select -print-path".

You should also check the DEVELOPER_DIR environment variable. If set
it overrides the Xcode folder path.

/ Jorgen

Johann Koenig

unread,
Sep 24, 2012, 1:36:29 PM9/24/12
to webm-d...@webmproject.org
On Sun, Sep 23, 2012 at 6:53 PM, <st...@dekorte.com> wrote:
> With Xcode 4.5 I had to use:
>
> if [ -d
> "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
> ]; then

What does
xcode-select -print-path
return?

Do you have the full xcode 4.5 installed or just the command line tools?

Johann Koenig

unread,
Mar 19, 2013, 2:23:26 PM3/19/13
to webm-d...@webmproject.org
On Tue, Mar 19, 2013 at 11:18 AM, <iamso...@gmail.com> wrote:
> returns
> "/Applications/Xcode.app/Contents/Developer"

Are you having trouble building? We have been programmatically
locating Xcode for a while now.

nneuh...@gmail.com

unread,
Feb 10, 2015, 3:28:53 PM2/10/15
to webm-d...@webmproject.org, jorgeni...@gmail.com
This is kind of old but I am not sure exactly sure where to modify the above code as you suggested, is there any way you could send me the .sh file?

Thanks a million

Johann Koenig

unread,
Feb 10, 2015, 3:43:36 PM2/10/15
to webm-d...@webmproject.org
On Tue, Feb 10, 2015 at 12:28 PM, <nneuh...@gmail.com> wrote:
> This is kind of old but I am not sure exactly sure where to modify the above
> code as you suggested, is there any way you could send me the .sh file?

This should have been taken care of in the auto detection. We also
recently got a contribution to fix detection on a broader range of
Xcode versions:
https://gerrit.chromium.org/gerrit/#/c/73592/

If you try a git checkout, does it work? If not, it would be useful to
know your OS X and Xcode version.
Reply all
Reply to author
Forward
0 new messages