Log in

View Full Version : Compiling FFMPEG CVS for Windows


superdump
17th August 2003, 23:12
While looking around on the FFMPEG website (http://ffmpeg.sourceforge.net) I stumbled across a guide on how to compile the FFMPEG CVS to make a dll for windows. I have had a number of compilation errors and was wondering if anyone else had tried the guide (http://ffmpeg.sourceforge.net/win32.html) and had more luck than me.

The CVS can be obtained by:
cvs -d:***pserver:anonymous@cvs.sourceforge.net:/cvsroot/ffmpeg login

cvs -z3 -d:***pserver:anonymous@cvs.sourceforge.net:/cvsroot/ffmpeg co ffmpeg
Remove the three asterisks from both commands. (Smilies. :))

I have MingW, MSYS and MSYS DTK installed and I've put nasm.exe in the MingW \bin folder. This is the current error that I get after running "./configure --enable-mingw32 --enable-win32 --cpu=i686 --disable-simple_idct" (also tried with --disable-ffserver as I didn't think I'd need this and I would think it is related to rtp stuff...) and then "make" from the ffmpeg dir:
gcc -Wl,--warn-common -g -o ffmpeg_g.exe ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -lm
./libavformat/libavformat.a(utils.o)(.text+0x43d): In function `av_open_input_file':
c:/stuff/cvs/ffmpeg/ffmpeg/libavformat/utils.c:339: undefined reference to `rtp_demux'
./libavformat/libavformat.a(utils.o)(.text+0xba3): In function `av_close_input_file':
c:/stuff/cvs/ffmpeg/ffmpeg/libavformat/utils.c:987: undefined reference to `rtp_demux'
make: *** [ffmpeg_g.exe] Error 1
If anyone who is good with MingW has managed to compile it, please PM me about it.

Thanks

BoNz1
25th August 2003, 16:49
superdump, I put up a build of the 0.4.7 release http://www.geocities.com/bonzi5252/ffmpeg.zip it is a mingw32 build. Complilation errors seems to be more or less fixed in 0.4.7, for windows just do ./configure --enable-mingw32 and then make.
EDIT: Keep in mind this build is completely untested.

superdump
25th August 2003, 18:54
I had asked Fabrice about the problem and he told me how to fix it, so I had managed to get it compiled. I couldn't get the dlls out but at that point I had an executable anyway. I couldn't figure out how to make it use skal's mpeg-4 codec. But nevermind, I have plenty of other codecs to play with.

Thanks anyway. :)