Re: x264 - linker error

Thomas Plank <[email protected]>
Newsgroups gmane.comp.video.mplayer.cygwin
Message-ID <[email protected]>
Compn ([email protected]) 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.