How to configue libvpx for mingw

1,186 views
Skip to first unread message

YIRAN LI

unread,
May 12, 2013, 1:59:24 AM5/12/13
to webm-d...@webmproject.org
Hi friends,

I am building libvpx on mingw for windows and want to use it together with ffmpeg.

I've downloaded libvpx-v1.1.0 source code. and did a simple configure: ./configure --prefix=/mingw
and build failed because of undefined reference to '_imp__pthread_once' 

Could any one tell me how to correctly configure that? I'm building on Windows with MinGW and 
I want to generate dll so that I can build it into FFmpeg (also on Windows),

Thanks! 

Johann Koenig

unread,
May 12, 2013, 11:17:01 PM5/12/13
to webm-d...@webmproject.org
On Sat, May 11, 2013 at 10:59 PM, YIRAN LI <mrfun...@gmail.com> wrote:
> I am building libvpx on mingw for windows and want to use it together with
> ffmpeg.
>
> I've downloaded libvpx-v1.1.0 source code. and did a simple configure:
> ./configure --prefix=/mingw
> and build failed because of undefined reference to '_imp__pthread_once'

I believe this is fixed in v1.2.0
https://gerrit.chromium.org/gerrit/#/c/33908/

However we don't have a tarball for v1.2.0 posted.

You can get it with:
$ git clone http://git.chromium.org/webm/libvpx.git
$ cd libvpx
$ git checkout v1.2.0

YIRAN LI

unread,
May 13, 2013, 2:53:40 AM5/13/13
to webm-d...@webmproject.org
Thanks Koenig,

Yes I got the latest code using git. and configured with --disable-multithread. But I still met a 'Bad file number' error.

[STRIP] libvpx.a < libvpx_g.a
/bin/sh: /mingw/bin/strip: Bad file number
make[1]: ***[libvpx.a] Error 126
make: ***[.DEFAULT] Error 2

I copied libvpx_g.a to libvpx.a and make again, and finally build succeeded.


2013/5/13 Johann Koenig <johann...@google.com>

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



Johann Koenig

unread,
May 13, 2013, 2:20:45 PM5/13/13
to webm-d...@webmproject.org
On Sun, May 12, 2013 at 11:53 PM, YIRAN LI <mrfun...@gmail.com> wrote:
> Yes I got the latest code using git. and configured with
> --disable-multithread. But I still met a 'Bad file number' error.
>
> [STRIP] libvpx.a < libvpx_g.a
> /bin/sh: /mingw/bin/strip: Bad file number

That's strange. MSDN suggests that "Bad file number" relates to file
permissions:
http://msdn.microsoft.com/en-us/library/ms832230.aspx

If you can reproduce, please check the permissions on the file (we may
not be setting it correctly) and try to run 'strip' manually. You can
check the command line by running 'make V=1'

YIRAN LI

unread,
May 20, 2013, 4:55:34 AM5/20/13
to webm-d...@webmproject.org
Hi Johann,

Here I have some questions maybe you can help with.

I'm building ffmpeg with libvpx enabled. I've downloaded libvpx and built succeeded. ffmpeg.exe can convert video into webm format.
And I can programmatically use VP8 encoder in my program via opening AVCODE_ID_VP8 encoder and then do video conversion, everything is ok

And then I'd like to know, what's that ffmpeg patch used for?  Here you have a patch for ffmpeg 0.6.3 https://code.google.com/p/webm/downloads/list
I never applied it and everything works fine. In what circumstance do I need it? Can I apply it to latest ffmpeg version?

Great thanks! 

Lou Quillio

unread,
May 20, 2013, 1:37:53 PM5/20/13
to WebM Discussion
On Mon, May 20, 2013 at 1:55 AM, YIRAN LI <mrfun...@gmail.com> wrote:

> And then I'd like to know, what's that ffmpeg patch used for? Here you have
> a patch for ffmpeg 0.6.3 https://code.google.com/p/webm/downloads/list

That's deprecated. I'll take it down and substitute this link:

https://sites.google.com/a/webmproject.org/wiki/ffmpeg/building-with-libvpx

LQ


--
Lou Quillio
Webmaster, WebMProject.org

Frank Galligan

unread,
May 20, 2013, 2:12:46 PM5/20/13
to WebM Discussion
Awesome job on the ffmpeg guide!


Reply all
Reply to author
Forward
0 new messages