libvpx ios support

921 views
Skip to first unread message

srv

unread,
Mar 19, 2011, 11:33:42 AM3/19/11
to WebM Discussion
Does libvpx support ios ?
I have iPhone 4 and I want to compile decoder part for this device, is
it possible?

Thanks.

Josh Bleecher Snyder

unread,
Mar 19, 2011, 12:47:24 PM3/19/11
to webm-d...@webmproject.org, srv
> Does libvpx support ios ?
> I have iPhone 4 and I want to compile decoder part for this device, is
> it possible?

Did you try?

For the record, here's what I currently use:

mkdir armv6_build
cd armv6_build/
../configure --target=armv6-darwin-gcc
make
cd ..
mkdir armv7_build
cd armv7_build/
../configure --target=armv7-darwin-gcc
make
cd ..
mkdir i386_build
cd i386_build/
../configure --target=x86-darwin9-gcc
cd ..
mkdir universal_build
lipo armv6_build/libvpx.a -arch armv7 armv7_build/libvpx.a -arch i386
i386_build/libvpx.a -create -output universal_build/libvpx.a
cp vpx/*.h universal_build/
for f in universal_build/*.h; do sed -i '' 's/\#include
"vpx\//\#include "/' $f; done

This works for me as of 0.9.6. You may need to edit
build/make/configure.sh to update to the latest iOS SDK. (I've been
meaning to make it autodetect, but haven't gotten around to it.) If
you have MacPorts installed, you may need to prefix some of the
configure calls with CC=/usr/bin/gcc, to make sure you're compiling
with Apple's gcc, not MacPort's; the symptom here is a complaint that
-arch flag is not recognized. The last line is only necessary if
you're going to copy the header files from universal_build directly
into Xcode, which puts all its header files flat in the top directory.

Hope that helps,
Josh

srv

unread,
Mar 19, 2011, 1:12:44 PM3/19/11
to WebM Discussion
Thanks for reply.
No, i did not.
But I know iPhone 4 CPU is (A4) ARM Cortex-A8, I could not found this
configuration.

srv

unread,
Mar 21, 2011, 4:41:52 AM3/21/11
to WebM Discussion
What about generic-gnu
I wrote simple script

mkdir i386_build
cd i386_build/
../configure generic-gnu
make

And I have looping...


On 19 мар, 22:47, Josh Bleecher Snyder <joshar...@gmail.com> wrote:

John Koleszar

unread,
Mar 21, 2011, 7:32:46 AM3/21/11
to webm-d...@webmproject.org
To build with --target=generic-gnu, but targetting an ios device,
there are a bunch of extra flags you'd have to pass. Instead, you
could do something like:

../libvpx/configure --target=armv6-darwin-gcc --disable-armv6 --disable-armv5te

That should be equivalent.

Not sure why you'd want to though.. The resulting decoder won't be
fast enough to be useful.

> --
> 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.
>
>

Fritz Koenig

unread,
Mar 21, 2011, 11:55:08 AM3/21/11
to webm-d...@webmproject.org, srv
The configurations are based on the instructions set supported. ARM
Cortex-A8 supports NEON and v7 instructions [1]. So you would need to
use the armv7-darwin-gcc target.

[1] : http://www.arm.com/products/processors/cortex-a/cortex-a8.php

srv

unread,
Mar 22, 2011, 1:57:05 AM3/22/11
to WebM Discussion
No, I want to compile for i386, (Core2DUO CPU for example), not for
ios and mac os, Thanks!
> > To post to this group, send email to webm-disc...@webmproject.org.
> > To unsubscribe from this group, send email to webm-discuss+unsubscr...@webmproject.org.
> > For more options, visit this group athttp://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.- Скрыть цитируемый текст -
>
> - Показать цитируемый текст -

Attila Nagy

unread,
Mar 22, 2011, 2:13:43 AM3/22/11
to webm-d...@webmproject.org
../libvpx/configure --target=x86-linux-gcc

if you are building natively than you can just simply run configure ,
which will detect your system

> To post to this group, send email to webm-d...@webmproject.org.
> To unsubscribe from this group, send email to webm-discuss...@webmproject.org.

Reply all
Reply to author
Forward
0 new messages