[FFmpeg-devel] Cross-compiling for windows?
Gianluigi Tiesi
mplayer
Sat Nov 24 12:50:05 CET 2007
On Fri, Nov 23, 2007 at 12:22:13PM -0200, Ramiro Ribeiro Polla wrote:
> Luca Abeni wrote:
> > Hi all,
> >
> > I am trying to check if my libavnet patch breaks windows builds, but it seems
> > to me that there are problems even cross-compiling an unpatched ffmpeg...
> >
> > I configure r10927 with:
> > ./configure --prefix=/tmp/FW --cross-compile --cross-prefix=i586-mingw32msvc- --enable-memalign-hack --target-os=mingw32
> > and I am getting
> > [...]
> > i586-mingw32msvc-gcc -L"/tmp/T/ffmpeg"/libavformat -L"/tmp/T/ffmpeg"/libavcodec -L"/tmp/T/ffmpeg"/libavutil -Wl,--warn-common -Wl,-rpath-link,"/tmp/T/ffmpeg"/libavcodec
> > -Wl,-rpath-link,"/tmp/T/ffmpeg"/libavformat -Wl,-rpath-link,"/tmp/T/ffmpeg"/libavutil -g -o ffmpeg_g.exe ffmpeg.o cmdutils.o -lavformat -lavcodec -lavutil -lm -lws2_32
> > /tmp/T/ffmpeg/libavformat/libavformat.a(utils.o): In function `av_gettime':/tmp/T/ffmpeg/libavformat/utils.c:2613: undefined reference to `_gettimeofday'
> > collect2: ld returned 1 exit status
> > make: *** [ffmpeg_g.exe] Error 1
> >
> > Looks like mingw is missing gettimeofday()? How can I cross-compile for windows?
>
> You need a newer version of mingw-runtime. Look at r9705.
gettimeofday was added in 3.10 iirc,
mplayer checks if it present if not uses its own
implementation (that is the same of newer mingw, I think there are no
many ways to implement gettimeofday in win :D)
Regards
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
More information about the ffmpeg-devel
mailing list