[Ffmpeg-devel] Compilation for Windows under Cygwin

Vincent Honnet vhonnet
Thu Aug 4 16:21:26 CEST 2005


I have a Problem:
I need to develop an application using FFMpeg which must compile with 
Microsoft Visual Studio .Net 2003. My first problem is to get FFMpeg 
compiled under Cygwin. What I did:
./configure --enable-mingw32 --enable-shared --enable-memalign-hac
make lib

libavcodec compiles but I can't get any dll
w32thread.o(.text+0x25c): In function `avcodec_thread_init':
undefined reference to `__beginthreadex'
collect2: ld returned 1 exit status
make: *** [avcodec.dll] Error 1

libavformat does not compile:
gcc -O3 -g -Wall  -I.. -I/cygdrive/f/Programme/ffmpeg-0.4.9-pre1 
-I/cygdrive/f/Programme/ffmpeg-0.4.9-pre1/libavcodec -D
-D_GNU_SOURCE -c -o ffm.o ffm.c
In file included from /usr/include/unistd.h:4,
                 from ffm.c:20:
/usr/include/sys/unistd.h:202: error: parse error before '(' token
ffm.c:736: warning: initialization from incompatible pointer type
make: *** [ffm.o] Error 1

I need help. I tried nearly everything: with the ffmpeg-0.4.8 t and with 
the 0.9-pre1.

Thanks a lot in advance


More information about the ffmpeg-devel mailing list