List Info

Thread: mencoder doesn't compile with xvid under cygwin




mencoder doesn't compile with xvid under cygwin
user name
2007-12-06 20:45:24
I've been following this guide to compile mplayer using
cygwin:
http://64.233.183.104/search?q=cache:JV
uAY5Vm0p8J:www.lyseo.edu.ouka.fi/~pexu/pub/mplayer_windows_h
owto/index.txt+mplayer_windows_howto/index.txt&hl=es&
;ct=clnk&cd=1&client=opera

I compiled xvidcore as it says:
./configure 
make 
make install 
mv /usr/local/lib/xvidcore.a /lib/libxvidcore.a

Now mplayer compiles with xvid support, but mencoder fails
when linking:

cc -o mencoder.exe mencoder.o mp_msg-mencoder.o
parser-mecmd.o xvid_vbr.o 
asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o
get_path.o m_config.o 
m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o
playtreeparser.o 
spudec.o sub_cc.o subopt-helper.o subreader.o vobsub.o
unrarlib.o 
libmpcodecs/libmpencoders.a lib mpdemux/libmpmux.a
libmpcodecs/libmpcodecs.a 
libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a
libswscale/libswscale.a 
libvo/libosd.a libavformat/libavformat.a
libavcodec/libavcodec.a 
libavutil/libavutil.a libpostproc/libpostproc.a
loader/libloader.a 
mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a
libfaad2/libfaad2.a 
tremor/libvorbisidec.a dvdread/libdvdread.a
libdvdcss/libdvdcss.a 
libass/libass.a osdep/libosdep.a  -lwinmm  -liconv -ltermcap
-lpng -lz 
-lfreetype -lz -lfontconfig -lexpat -lfreetype -lz -lz
-ladvapi32 -lole32 
-lxvidcore -lm -lole32 -luuid    -static -lm
/usr/local/lib/libxvidcore.a(plugin_2pass1.obj):plugin_2pass
1.c:(.text+0x215): 
undefined reference to `__errno'
collect2: ld returned 1 exit status
make: *** [mencoder.exe] Error 1

I tried with xvidcore 1.1.3 and 1.1.0. The same problem with
both.

Is there any way to fix that error?

-- 
RVM
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: mencoder doesn't compile with xvid under cygwin
user name
2007-12-07 03:33:39
On Dec 7, 2007 3:45 AM, RVM <rvm3000ya.com> wrote:

>  I've been following this guide to compile mplayer
using cygwin:
> >
> > http://64.233.18
3.104/search?q=cache:JVuAY5Vm0p8J:www.lyseo.edu.ouka.fi/~pex
u/pub/mplayer_windows_howto/index.txt+mplayer_windows_howto/
index.txt&hl=es&ct=clnk&cd=1&client=opera<
;http://64.233.183.104/search?q=cache:JVuAY5Vm0p8J:www.lyseo
.edu.ouka.fi/%7Epexu/pub/mplayer_windows_howto/index.txt+mpl
ayer_windows_howto/index.txt&hl=es&ct=clnk&cd=1&
amp;client=opera>
> >
> > I compiled xvidcore as it says:
> > ./configure
> > make
> > make install
> > mv /usr/local/lib/xvidcore.a /lib/libxvidcore.a
> >
> > Now mplayer compiles with xvid support, but
mencoder fails when linking:
> >
> > cc -o mencoder.exe mencoder.o mp_msg-mencoder.o
parser-mecmd.oxvid_vbr.o
> > asxparser.o codec-cfg.o cpudetect.o edl.o
find_sub.o get_path.o
> > m_config.o
> > m_option.o m_struct.o mpcommon.o parser-cfg.o
playtree.o
> > playtreeparser.o
> > spudec.o sub_cc.o subopt-helper.o subreader.o
vobsub.o unrarlib.o
> > libmpcodecs/libmpencoders.a lib
mpdemux/libmpmux.a
> > libmpcodecs/libmpcodecs.a
> > libaf/libaf.a libmpdemux/libmpdemux.a
stream/stream.a
> > libswscale/libswscale.a
> > libvo/libosd.a libavformat/libavformat.a
libavcodec/libavcodec.a
> > libavutil/libavutil.a libpostproc/libpostproc.a
loader/libloader.a
> > mp3lib/libmp3.a liba52/liba52.a
libmpeg2/libmpeg2.a libfaad2/libfaad2.a
> > tremor/libvorbisidec.a dvdread/libdvdread.a
libdvdcss/libdvdcss.a
> > libass/libass.a osdep/libosdep.a  -lwinmm  -liconv
-ltermcap -lpng -lz
> > -lfreetype -lz -lfontconfig -lexpat -lfreetype -lz
-lz -ladvapi32
> > -lole32
> > -lxvidcore -lm -lole32 -luuid    -static -lm
> >
> >
/usr/local/lib/libxvidcore.a(plugin_2pass1.obj):plugin_2pass
1.c:(.text+0x215):
> > undefined reference to `__errno'
> > collect2: ld returned 1 exit status
> > make: *** [mencoder.exe] Error 1
> >
> > I tried with xvidcore 1.1.3 and 1.1.0. The same
problem with both.
> >
> > Is there any way to fix that error?
>
>
Well yes.  look at what the 5th elemement on your howto
says.

5. Get Xvidcore (1.1.0) from <http://www.xvi
d.org/downloads.html> and
   install it. At build/generic directory say:


     ./configure && make && make install cp
*mv
/usr/local/lib/xvidcore.a /lib/libxvidcore.a*

after make install you should *not* apply this command.
"mv
/usr/local/lib/xvidcore.a /lib/libxvidcore.a "

Normally I do not do that any more. and BTW, that guide is
quite old. it
first appears on the mailing list more than 2 years now. a
lot has changed
since then.

DEF

--
>
>
> >
>
>
> > RVM
> > _______________________________________________
> > MPlayer-cygwin mailing list
> > MPlayer-cygwinmplayerhq.hu
> > http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in
> >
>
>
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: mencoder doesn't compile with xvid under cygwin
user name
2007-12-07 05:50:01
El Viernes, 7 de Diciembre de 2007 10:33, DEF escribió:
> On Dec 7, 2007 3:45 AM, RVM <rvm3000ya.com> wrote:
(...)
> > >
/usr/local/lib/libxvidcore.a(plugin_2pass1.obj):plugin_2pass
1.c:(.text+
> > >0x215): undefined reference to `__errno'
> > > collect2: ld returned 1 exit status
> > > make: *** [mencoder.exe] Error 1
> > >
> > > I tried with xvidcore 1.1.3 and 1.1.0. The
same problem with both.
> > >
> > > Is there any way to fix that error?
>
> Well yes.  look at what the 5th elemement on your howto
says.
>
> 5. Get Xvidcore (1.1.0) from <http://www.xvi
d.org/downloads.html> and
>    install it. At build/generic directory say:
>
>
>      ./configure && make && make
install cp *mv
> /usr/local/lib/xvidcore.a /lib/libxvidcore.a*
>
> after make install you should *not* apply this command.
"mv
> /usr/local/lib/xvidcore.a /lib/libxvidcore.a "
>
> Normally I do not do that any more. and BTW, that guide
is quite old. it
> first appears on the mailing list more than 2 years
now. a lot has changed
> since then.

If I don't rename xvidcore.a to libxvidcore.a then the
mplayer configure 
doesn't find xvid (at least with the --enable-static option,
I haven't tested 
without it). 

(If compiling with mingw instead of cygwin, the configure
does find it, but 
then the binary depends on xvidcore.dll, so I also had to
rename it to avoid 
it).

Anyway I finally fixed the problem by editing
src/plugins/plugin_2pass1.c and 
commenting the line:

DPRINTF(XVID_DEBUG_RC, "Error closing stats file
(%s)", strerror(errno));

-- 
RVM
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: mencoder doesn't compile with xvid under cygwin
country flaguser name
Jamaica
2007-12-07 13:45:25

RVM wrote:
>
> El Viernes, 7 de Diciembre de 2007 10:33, DEF
escribió:
>> On Dec 7, 2007 3:45 AM, RVM  wrote:
> (...)
>>>>
/usr/local/lib/libxvidcore.a(plugin_2pass1.obj):plugin_2pass
1.c:(.text+
>>>>0x215): undefined reference to `__errno'
>>>> collect2: ld returned 1 exit status
>>>> make: *** [mencoder.exe] Error 1
>>>>
>>>> I tried with xvidcore 1.1.3 and 1.1.0. The
same problem with both.
>>>>
>>>> Is there any way to fix that error?
>>
>> Well yes. look at what the 5th elemement on your
howto says.
>>
>> 5. Get Xvidcore (1.1.0) from  and
>> install it. At build/generic directory say:
>>
>>
>> ./configure && make && make install
cp *mv
>> /usr/local/lib/xvidcore.a /lib/libxvidcore.a*
>>
>> after make install you should *not* apply this
command. "mv
>> /usr/local/lib/xvidcore.a /lib/libxvidcore.a
"
>>
>> Normally I do not do that any more. and BTW, that
guide is quite old. it
>> first appears on the mailing list more than 2 years
now. a lot has changed
>> since then.
>
> If I don't rename xvidcore.a to libxvidcore.a then the
mplayer configure
> doesn't find xvid (at least with the --enable-static
option, I haven't tested
> without it).

I don't know why the other poster thinks that you should not
rename it.
-lxvidcore will match libxvidcore.a, libxvidcore.dll.a,
possibly
xvidcore.dll (but I am not sure where the DLL should be
located in order
to be found in this manner) and possibly other combinations.
There is a
lot of information about this in the MinGW archives.
However, xvidcore.a
will not match, so it has to be renamed.

>
> (If compiling with mingw instead of cygwin, the
configure does find it, but
> then the binary depends on xvidcore.dll, so I also had
to rename it to avoid
> it).

Gcc prefers shared libraries to static libraries, so if you
have both, you need
to take special measures to link to the static library.
Specifically, put
-static in your LDFLAGS. With MPlayer:
configure --extra-ldflags -static.
Of course, another option would be to not build the DLL in
the first place
(configure --enable-static --disable-shared). I'm speaking
generally:
some packages ignore those arguments, and some do not allow
static
libraries to be built.

____________________________________________________________
_____
Your smile counts. The more smiles you share, the more we
donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmt
agline
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )