[MEncoder-users] Compiling in Windows
John Brown
johnbrown105 at hotmail.com
Sat Feb 14 17:42:30 CET 2009
James Hastings-Trew <jimht <at> shaw.ca> writes:
>
> John Brown wrote:
> > James Hastings-Trew <jimht <at> shaw.ca> writes:
> >
> >> It's been said in this list before that you'd have to be an idiot if you
> >> can't compile Mplayer and Mencoder from source.
> >>
> >
> > Really? Who said that?
> >
> I saw it in the archive while I was googling around yesterday looking
> for an up-to-date guide but I can't find the quote now. I want to say
> the name "Phil". maybe.
No, I think that Phil is the one who says that only programmers can
compile MPlayer on Windows.
> > You need pthreads. Download it at http://sourceware.org/pthreads-win32/.
> > I recommend that you download the source and compile it yourself. I also
> > recommend that you build the DLL version rather than the static library.
> >
<snip>
> I did this, and it solved the pthreads problem. Now when I look in
> configure.log I see this instead:
>
> ============ Checking for x264 ============
>
> #include <inttypes.h>
> #include <x264.h>
> #if X264_BUILD < 59
> #error We do not support old versions of x264. Get the latest from SVN.
> #endif
> int main(void) { x264_encoder_open((void*)0); return 0; }
>
> gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4
> -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -I.
> -Ilibdvdread4 -lwinmm -lws2_32 -liconv -lpng -lz -ljpeg -lgif -lz
> -lbz2 -lmad -lspeex -ldts -lmpcdec -ladvapi32 -lole32 -lxvidcore -lm
> -lopengl32 -lgdi32 -lgdi32 -lwinmm -ld3d9 -lgdi32 -lfaac -lfaac -o
> /tmp/mplayer-conf-16873-412.exe /tmp/mplayer-conf-29824-412.c -lx264
>
> -lpthreadGC2
> c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.4/../../../libx264.a(analyse.o):
(.text+0x5b9f):
> undefined reference to
> `__mingw_vfprintf'
> c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.4/../../../libx264.a
(ratecontrol.o):(.text+0x30f):
> undefined reference to `__mingw_vfprintf'
> collect2: ld returned 1 exit status
>
This looks like you need an updated mingw-runtime, available at
http://www.mingw.org. Download the binaries and extract them in your
MingW folder, making sure that you preserve the directory structure.
Do *not* try to build mingw-runtime from source.
If that doesn't work, then I believe that you may need to specify an
option to turn something on or off. I think that I saw something about
the printf family in the mingw-users list recently, but I don't remember
the details.
More information about the MEncoder-users
mailing list