[MPlayer-users] mingw vs. cygwin

Vinay Reddy vinayvinay at gmail.com
Tue Aug 21 01:18:05 CEST 2007


Thank you very much Henry. Used mingw, followed the instructions and
it worked just fine.

Cheers,
Vinay

On 8/20/07, Henry Garcia <defsyn at gmail.com> wrote:
> I'd stick with mingw as opposed to cygwin. I was able once awhile back to
> compile on cygwin--which usually has less problems than mingw compiling
> libraries--but now cygwin does not work for me--just mingw. You would think
> it would be the other way around. I don't really want to bother figuring out
> why Cygwin is not currently building.
>
> It's a time consuming process to build you a working compiler in mingw, but
> it's worth the process.
>
> I used the latest builds:
> http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780
>
> Install everything you can on the sourceforge site for mingw. And then go
> through the HOWTO.txt for mplayer on mingw.
>
> And then I went through the mingw_HOWTO.txt and followed the instructions
> step by step.
>
> At some points I failed to build the source codes, but there were some
> prebuilt binaries which I downloaded and extracted to the proper places.
> Always like to build from scratch, but some of the source code just doesn't
> compile. So I just let the experienced developers do the work for me and
> download their binaries whenever possible.
>
> A hint that you'll probably find useful in building some of the source code
> in the HOWTO's:
>
> Some of the source code will not compile with the latest make version.
> You'll need to use make-3.79.1 or make-3.80 as opposed to make-3.81. Why
> this is, I don't know. But it's just another wrinkle you have to be on the
> lookout for. For the final compile, I use make-3.79.1: make-3.81 fails to
> build. And as I recall, building some of the source code outlined in the
> HOWTO would not build but with make-3.79.1. Can't remember which ones. And
> then some would not build with either: this is where I was able to find some
> binaries provided by some other developers (wingtk?)
>
> So, I think you're seeing that building mplayer is not a walk in the park on
> Windows. But if you'll start from the top and work your way through from top
> to bottom in the HOWTO, we should be able to get you through to building
> your first Windows mplayer.exe file.
> If you get stuck anywhere in the process, post it. And we'll see what we can
> do.
>
> Hank
>
> On 8/20/07, Vinay Reddy < vinayvinay at gmail.com> wrote:
> > Thanks for pointing me to the documentation... I still get the
> > following error at the end of make:
> >
> > cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m
> -mtune=pentium-m
> > -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=6
> > 4 -D__CYGWIN__ -Ic -I/mingw/include  -I.  -I./libavutil
> -I./libavcodec -o mplaye
> > r.exe mplayer.o m_property.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o
> edl.o
> > find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o
> playtreepars
> > er.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o mixer.o
> parser-mpcmd.o su
> > bopt-helper.o osdep/mplayer-rc.o libvo/libvo.a libao2/libao2.a
> input/libinput.a
> >   libmpcodecs/libmpcodecs.a  libaf/libaf.a
> libmpdemux/libmpdemux.a stream/stream
> > .a libswscale/libswscale.a osdep/libosdep.a -Lc -L/mingw/lib
> -Llibmpdvdkit2 -lmp
> > dvdkit  libavformat/libavformat.a
> libavcodec/libavcodec.a  libavutil/libavutil.
> > a  libpostproc/libpostproc.a           -lz
> -ltermcap    -lgdi32 -lgdi32
> > -lwinmm          -liconv -lm    libfaad2/libfaad2.a
> mp3lib/libMP3.a liba52/liba
> > 52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a   -lopengl32 -lgdi32
> >    vidix/libvidix.a
> > libvo/libvo.a(font_load.o):font_load.c:(.text+0xc54):
> undefined reference to `__
> > imp___iob'
> > libvo/libvo.a(vo_winvidix.o):vo_winvidix.c:(.text+0x453):
> undefined reference to
> > `__errno'
> > libvo/libvo.a(vo_cvidix.o):vo_cvidix.c:(.text+0xe5):
> undefined reference to `__e
> > rrno'
> > libvo/libvo.a(vo_md5sum.o):vo_md5sum.c:(.text+0x173):
> undefined reference to `__
> > errno'
> >
> libvo/libvo.a(vosub_vidix.o):vosub_vidix.c:(.text+0x1661):
> undefined reference t
> > o `__stricmp'
> >
> libvo/libvo.a(vosub_vidix.o):vosub_vidix.c:(.text+0x16e1):
> undefined reference t
> > o `__stricmp'
> >
> libvo/libvo.a(vosub_vidix.o):vosub_vidix.c:(.text+0x1851):
> undefined reference t
> > o `__stricmp'
> >
> libvo/libvo.a(vosub_vidix.o):vosub_vidix.c:(.text+0x1879):
> undefined reference t
> > o `__stricmp'
> >
> libvo/libvo.a(vosub_vidix.o):vosub_vidix.c:(.text+0x18a6):
> undefined reference t
> > o `__stricmp'
> >
> libvo/libvo.a(vosub_vidix.o):vosub_vidix.c:(.text+0x190a):
> more undefined refere
> > nces to `__stricmp' follow
> > collect2: ld returned 1 exit status
> > make: *** [mplayer.exe] Error 1
> >
> > Are there any other libraries that I need to install? I installed
> > pretty much everything under cygwin.
> >
> > Thanks,
> > Vinay
> >
> > On 8/20/07, Henry Garcia <defsyn at gmail.com> wrote:
> > > When all else fails, read the instructions: i.e avoid the ugly.
> > >
> > > > Step 2 directx headers
> > > >
> > > > Get the directx header package at
> > > >
> > >
> http://www.mplayerhq.hu/MPlayer/releases/win32-beta/contrib/dx7headers.tgz
> > > >
> > >
> > > > Extract the headers and move them to your mingw inlucde dir
> > > (c:\mingw\include)
> > > > To do this use the following commands in your msys shell
> > > >
> > > > tar -xvvzf dx7headers.tgz
> > > > mv *.h c:/mingw/include
> > > >
> > >
> > > Follow the instructions.
> > >
> > >
> http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/MPlayer-MinGW-Howto.txt
> > >
> > >
> > > On 8/20/07, Vinay Reddy <vinayvinay at gmail.com> wrote:
> > > >
> > > > Hi,
> > > > I tried building mplayer (1.0rc1) on windows (with --enable-directx),
> > > > and got the following error:
> > > >
> > > > cc -c -I. -I.. -Wdeclaration-after-statement -fno-PIC -O4
> > > > -march=pentium-m -mtune=pentium-m -pipe -ffast-math
> > > > -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_O
> > > > FFSET_BITS=64 -D__CYGWIN__  -o ao_dsound.o ao_dsound.c
> > > > ao_dsound.c:29:20: dsound.h: No such file or directory
> > > > ao_dsound.c:113: error: parse error before "hds"
> > > >
> > > > I had the DirectX SDK, so I ended up pasting the header files into the
> > > > libao2 and libvo directories (I know it's an ugly solution...) and the
> > > > compile succeeded. But, when I try to open a file using the "-vo
> > > > directx" option, I get an error saying:
> > > > Error opening/initializing  the selected video_out (vo) device.
> > > >
> > > > Can anyone help me out?
> > > >
> > > > Thanks,
> > > > Vinay
> > > > _______________________________________________
> > > > MPlayer-users mailing list
> > > > MPlayer-users at mplayerhq.hu
> > > >
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> > > >
> > >
> > >
> >
>
>



More information about the MPlayer-users mailing list