[MPlayer-cygwin] x264 - linker error

Thomas Plank tplank at gmx.at
Sun Nov 4 00:15:34 CET 2007


Compn (tempn at twmi.rr.com) wrote:

> how did you install x264?

Addendum:

I managed it now, had a sudden inspiration.

$ ./configure

Then I opened the config.h file and deleted all "-mno-cygwin" occurencies
(2 times in the file, one at CFLAGS line one at LDFLAGS line).

$ make

But there is an error when linking the x264.exe, but the needed library is
already built, so I manually copied it to the right place.

Et voilá:

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if X264_BUILD < 53
#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/cygdrive/d/cdrtools/mplayer/live -I/usr/X11R6/include
-I/usr/local/include/freetype2 -I/usr/local/include -static
/cygdrive/d/cdrtools/mplayer/live/liveMedia/libliveMedia.a
/cygdrive/d/cdrtools/mplayer/live/groupsock/libgroupsock.a
/cygdrive/d/cdrtools/mplayer/live/UsageEnvironment/libUsageEnvironment.a
/cygdrive/d/cdrtools/mplayer/live/BasicUsageEnvironment/libBasicUsageEnvironment.a
-L/cygdrive/d/cdrtools/mplayer/live -lwinmm  -liconv -lncurses -lpng -lz
-ljpeg -lcdio_cdda -lcdio -lcdio_paranoia -lwinmm -L/usr/local/lib
-L/usr/local/lib -lfreetype -lz -lz -lvorbis -logg -lspeex -ladvapi32
-lole32  -lstdc++ -lxvidcore -lm  -lgdi32 -lwinmm -lgdi32  -o
/tmp/mplayer-conf-14466-1764.exe /tmp/mplayer-conf-26294-1764.c -lx264


Result is: yes (in libavcodec: yes)
##########################################

-- 
mfg Thomas



More information about the MPlayer-cygwin mailing list