[MEncoder-users] Compiling in Windows
James Hastings-Trew
jimht at shaw.ca
Sat Feb 14 17:05:19 CET 2009
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.
> 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.
>
> Copy the pthread headers (.h) to \MinGW\include, the import library
> (lib*.a) to \MinGW\lib, and the pthread DLL to \MinGW\bin if the
> pthreads build system does not do it for you.
>
> After that, go to your MPlayer source directory and run
> 'make distclean' then run 'configure' again.
>
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
More information about the MEncoder-users
mailing list