[MPlayer-cygwin] Problems with compiling mp3lame and a useless patch
Hans-Carl Oberdalhoff
hco at gmx.de
Tue Dec 14 19:03:50 CET 2004
Hi folks,
Right now I'm trying to build my own MPlayer-binaries using MinGW.
MPlayer (and XviD) run fine, but I got some trouble including lame 3.96.1.
lame is missing an "interface.h" which is not existant in my MinGW-install.
Anyone got an idea? (Maybe I am missing a devel-package or so.)
Exact output here:
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I. -I../mpglib/ -I..
> -O3 -ffast-math -funroll-loops -maccumulate-outgoing-args -Wall -pipe
> -MT mpglib_interface.lo -MD -MP -MF .deps/mpglib_interface.Tpo -c
> mpglib_interface.c -DDLL_EXPORT -DPIC -o .libs/mpglib_interface.o
> mpglib_interface.c:13:23: interface.h: No such file or directory
> mpglib_interface.c:21: error: syntax error before "mp"
> mpglib_interface.c:21: warning: type defaults to `int' in declaration
> of `mp'
> mpglib_interface.c:21: warning: data definition has no type or storage
> class
> mpglib_interface.c:22: error: syntax error before '*' token
> mpglib_interface.c:22: warning: type defaults to `int' in declaration
> of `mpg123_pinfo'
> mpglib_interface.c:22: warning: data definition has no type or storage
> class
> mpglib_interface.c: In function `lame_decode_exit':
> mpglib_interface.c:27: warning: implicit declaration of function `ExitMP3'
> mpglib_interface.c: In function `lame_decode_init':
> mpglib_interface.c:35: warning: implicit declaration of function `InitMP3'
> mpglib_interface.c: At top level:
> mpglib_interface.c:72: error: syntax error before "unsigned"
> mpglib_interface.c: In function `lame_decode1_headersB_clipchoice':
> mpglib_interface.c:106: error: request for member `header_parsed' in
> something not a structure or union
> mpglib_interface.c:106: error: request for member `fsizeold' in
> something not a structure or union
> mpglib_interface.c:106: error: request for member `framesize' in
> something not a structure or union
> mpglib_interface.c:108: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:109: error: `freqs' undeclared (first use in this
> function)
> mpglib_interface.c:109: error: (Each undeclared identifier is reported
> only once
> mpglib_interface.c:109: error: for each function it appears in.)
> mpglib_interface.c:109: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:110: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:111: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:112: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:112: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:116: error: request for member `fsizeold' in
> something not a structure or union
> mpglib_interface.c:117: error: request for member `fsizeold' in
> something not a structure or union
> mpglib_interface.c:119: error: request for member `framesize' in
> something not a structure or union
> mpglib_interface.c:120: error: request for member `framesize' in
> something not a structure or union
> mpglib_interface.c:124: error: `tabsel_123' undeclared (first use in
> this function)
> mpglib_interface.c:124: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:124: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:124: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:128: error: request for member `num_frames' in
> something not a structure or union
> mpglib_interface.c:130: error: request for member `num_frames' in
> something not a structure or union
> mpglib_interface.c:131: error: request for member `num_frames' in
> something not a structure or union
> mpglib_interface.c:132: error: request for member `enc_delay' in
> something not a structure or union
> mpglib_interface.c:133: error: request for member `enc_padding' in
> something not a structure or union
> mpglib_interface.c:138: error: `MP3_OK' undeclared (first use in this
> function)
> mpglib_interface.c:139: error: request for member `fr' in something
> not a structure or union
> mpglib_interface.c:146: error: `sample_t' undeclared (first use in
> this function)
> mpglib_interface.c:146: error: `pcm_l' undeclared (first use in this
> function)
> mpglib_interface.c:146: error: syntax error before ')' token
> mpglib_interface.c:146: error: `FLOAT8' undeclared (first use in this
> function)
> mpglib_interface.c:146: error: `p_samples' undeclared (first use in
> this function)
> mpglib_interface.c:146: error: syntax error before ')' token
> mpglib_interface.c:155: error: syntax error before ')' token
> mpglib_interface.c:155: error: syntax error before ')' token
> mpglib_interface.c:155: error: `pcm_r' undeclared (first use in this
> function)
> mpglib_interface.c:165: error: `MP3_NEED_MORE' undeclared (first use
> in this function)
> mpglib_interface.c:171: error: `MP3_ERR' undeclared (first use in this
> function)
> mpglib_interface.c: In function `lame_decode1_headersB':
> mpglib_interface.c:193: error: `decodeMP3' undeclared (first use in
> this function)
> mpglib_interface.c: At top level:
> mpglib_interface.c:201: error: syntax error before "sample_t"
> mpglib_interface.c: In function `lame_decode1_unclipped':
> mpglib_interface.c:203: error: `FLOAT8' undeclared (first use in this
> function)
> mpglib_interface.c:207: error: `buffer' undeclared (first use in this
> function)
> mpglib_interface.c:207: error: `len' undeclared (first use in this
> function)
> mpglib_interface.c:207: error: `pcm_l' undeclared (first use in this
> function)
> mpglib_interface.c:207: error: `pcm_r' undeclared (first use in this
> function)
> mpglib_interface.c:207: error: `decodeMP3_unclipped' undeclared (first
> use in this function)
> make[3]: *** [mpglib_interface.lo] Error 1
> make[3]: Leaving directory `/home/hco/packs/lame-3.96.1/libmp3lame'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/hco/packs/lame-3.96.1/libmp3lame'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/hco/packs/lame-3.96.1'
> make: *** [all] Error 2
I can force lame to compile, by inlcuding the .h-files from the
mpglib-folder. The resulting lame will work, but MPlayer will not
compile anymore.
> Exact output here:
> gcc -I../libvo -I../../libvo -fno-PIC -O4 -march=athlon-4
> -mtune=athlon-4 -pipe -ffast-math -fomit-frame-pointer
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -o
> mplayer.exe mplayer.o mp_msg.o cpudetect.o codec-cfg.o spudec.o
> playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o
> find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o edl.o
> unrarlib.o mixer.o parser-mpcmd.o osdep/mplayer-rc.o libvo/libvo.a
> libao2/libao2.a vidix/libvidix.a libmpcodecs/libmpcodecs.a
> libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a
> postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit
> libavcodec/libavcodec.a -lvorbis -logg -lmp3lame -lvorbis -logg
> -lxvidcore -lm -lz -lws2_32 -lgdi32 -lgdi32 -lwinmm
> libfaad2/libfaad2.a mp3lib/libMP3.a liba52/liba52.a
> libmpeg2/libmpeg2.a -lopengl32 -lgdi32
> -lws2_32 -lm
> mp3lib/libMP3.a(sr1.o)(.text+0x1ff0):sr1.c: multiple definition of `dct64'
> /mingw/lib/libmp3lame.a(dct64_i386.o)(.text+0x0):dct64_i386.c: first
> defined here
> collect2: ld returned 1 exit status
> make: *** [mplayer.exe] Error 1
Can anyone help?
ps,
I'm trying to build a version of the MPlayer on MinGW that has no
support for decrypting css, but includes the libmpdvdkit. ( For use with
MeWiG http://mewig.sf.net )
Please, don't be to angry. Attached you find a most ugly patch to the
libmpdvdkit. Please DO NOT even think about including it into the
source-tree. :)
This patch is offered for your refference and to follow the
open-source-thought. (But of course, comments and improvements are
welcome!!)
wbr,
Hans-Carl Oberdalhoff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nocss.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/attachments/20041214/bd7aed62/attachment.asc>
More information about the MPlayer-cygwin
mailing list