[mp3encoder] How to correctly compile lame with mingw

2005-01-29 Thread Audio Phile
I've been trying to compile lame on mingw 3.2.0-rc3
and msys 1.0.11 on my win32 machine.  I also added
nasmw.exe to my C:\MinGW\bin and renamed it to
nasm.exe.  Anyway, here is the code I'be been using to
get an athlon xp optimized build of lame:

$ ./configure CFLAGS=-march=athlon-xp -Wall
-fstrength-reduce -finline-functio
ns -freduce-all-givs -m3dnow -msse -mfpmath=sse -mmmx
-O3 -pipe -fforce-addr -f
omit-frame-pointer -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt -fali
gn-functions=4 -maccumulate-outgoing-args
-fprefetch-loop-arrays -mtune=athlon-
xp;

This works fine.  I get errors when I do the make
command.  Can anyone help me out?

Last part of log:

fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I.
-I../mpglib/ -I.. -Wall -pipe -march=athlon-xp -Wall
-fstrength-reduce -finline-functions -freduce-all-givs
-m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fforce-addr -fomit-frame-pointer -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args
-fprefetch-loop-arrays -mtune=athlon-xp -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 

Re: [mp3encoder] How to correctly compile lame with mingw

2005-01-29 Thread Robert Hegemann
Hi,

the compiler does not have lame/mpglib in its list for include files. simple 
fix: edit libmp3lame/mpglib_interface.c line 13 to #include ../mpglib/
interface.h

Maybe Alexander will fix the configure magic to support msys?

Ciao Robert


Am Samstag, 29. Januar 2005 12:52 schrieb Audio Phile:
 I've been trying to compile lame on mingw 3.2.0-rc3
 and msys 1.0.11 on my win32 machine.  I also added
 nasmw.exe to my C:\MinGW\bin and renamed it to
 nasm.exe.  Anyway, here is the code I'be been using to
 get an athlon xp optimized build of lame:

 $ ./configure CFLAGS=-march=athlon-xp -Wall
 -fstrength-reduce -finline-functio
 ns -freduce-all-givs -m3dnow -msse -mfpmath=sse -mmmx
 -O3 -pipe -fforce-addr -f
 omit-frame-pointer -funroll-loops
 -frerun-cse-after-loop -frerun-loop-opt -fali
 gn-functions=4 -maccumulate-outgoing-args
 -fprefetch-loop-arrays -mtune=athlon-
 xp;

 This works fine.  I get errors when I do the make
 command.  Can anyone help me out?

 Last part of log:

 fi
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I.
 -I../mpglib/ -I.. -Wall -pipe -march=athlon-xp -Wall
 -fstrength-reduce -finline-functions -freduce-all-givs
 -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
 -fforce-addr -fomit-frame-pointer -funroll-loops
 -frerun-cse-after-loop -frerun-loop-opt
 -falign-functions=4 -maccumulate-outgoing-args
 -fprefetch-loop-arrays -mtune=athlon-xp -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 

Re: [mp3encoder] How to correctly compile lame with mingw

2005-01-29 Thread Takehiro Tominaga
From: Robert Hegemann [EMAIL PROTECTED]
Subject: Re: [mp3encoder] How to correctly compile lame with mingw
Date: Sat, 29 Jan 2005 13:29:26 +0100

 the compiler does not have lame/mpglib in its list for include files. simple 
 fix: edit libmp3lame/mpglib_interface.c line 13 to #include ../mpglib/
 interface.h

Right. The problem is in the include path configuration.

But, it sounds strange to me, because the commandline,

   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I.
  -I../mpglib/ -I.. -Wall -pipe -march=athlon-xp -Wall
  -fstrength-reduce -finline-functions -freduce-all-givs
  -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
  -fforce-addr -fomit-frame-pointer -funroll-loops
  -frerun-cse-after-loop -frerun-loop-opt
  -falign-functions=4 -maccumulate-outgoing-args
  -fprefetch-loop-arrays -mtune=athlon-xp -MT
  mpglib_interface.lo -MD -MP -MF
  .deps/mpglib_interface.Tpo -c mpglib_interface.c
  -DDLL_EXPORT -DPIC -o .libs/mpglib_interface.o

contains -I../mpglib/. Ummm, really strange.

FYI: I can successfully compile them on cygwin with the option
-mno-cygwin, but I have no pure mingw environment.
-- 
Takehiro TOMINAGA // may the source be with you!
___
mp3encoder mailing list
mp3encoder@minnie.tuhs.org
http://minnie.tuhs.org/mailman/listinfo/mp3encoder


[mp3encoder] still having problems compiling lame under mingw

2005-01-29 Thread Audio Phile
1. Fresh tarball of lame source.
2. Edited /lame-3.96.1/libmp3/lame/mpglib_interface.c
Changed #include interface.h to #include
../mpglib/interface.h
3. Same for /lame-3.96.1/mpglib/interface.c

4.

$ ./configure --enable-nams CFLAGS=-march=athlon-xp
-Wall -fstrength-reduce -finline-functions
-freduce-all-givs -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args
-fprefetch-loop-arrays;

5. I edited /lame-3.96.1/mpglib/MakeFile and changed:
NASM_FORMAT = -f elf

To this:

NASM_FORMAT = -f win32 -DWIN32

6. $ make; make install

I got a lame.exe but when I run it, I get:

D:\Incoming\junklame.exe test.wav --alt-preset
standard
LAME version 3.96.1 (http://lame.sourceforge.net/)
Using polyphase lowpass filter, transition band: 18671
Hz - 19205 Hz
Encoding test.wav to test.wav.mp3
Encoding as 44.1 kHz VBR(q=2) j-stereo MPEG-1 Layer
III (ca. 7.3x) qval=3
Frame  |  CPU time/estim | REAL time/estim
| play/CPU |ETA
 10798/10800 (100%)|0:39/0:39|0:39/   
0:39|   7.0546x|0:00
 32 [   80] **
128 [  498] %%*
160 [ 3202]
%
192 [ 4783]
%%
224 [ 1569] **
256 [  473] ***
320 [  195] %%*
average: 188.1 kbps   LR: 4638 (42.94%)   MS: 6162
(57.06%)

Writing LAME Tag...done
ReplayGain: -6.5dB

Looks okay, right?  Well, no, because when I compare
it to the ICL version of lame I got off rareware.org:

D:\Incoming\junklame-icl4.5 test.wav --alt-preset
standard
LAME version 3.96.1 (http://lame.sourceforge.net/)
CPU features: MMX (ASM used), 3DNow! (ASM used), SSE
Using polyphase lowpass filter, transition band: 18671
Hz - 19205 Hz
Encoding test.wav to test.wav.mp3
Encoding as 44.1 kHz VBR(q=2) j-stereo MPEG-1 Layer
III (ca. 7.3x) qval=3
Frame  |  CPU time/estim | REAL time/estim
| play/CPU |ETA
 10798/10800 (100%)|0:33/0:33|0:33/   
0:33|   8.5437x|0:00
 32 [   80] **
128 [  514] %%%*
160 [ 3220]
%%***
192 [ 4759]
%%
224 [ 1557] %%%***
256 [  469] ***
320 [  201] %%*
average: 188.0 kbps   LR: 4638 (42.94%)   MS: 6162
(57.06%)

Writing LAME Tag...done
ReplayGain: -6.5dB

You'll notice this version has a line that says, CPU
features: MMX (ASM used), 3DNow! (ASM used), SSE
where mine doesn't.  What am I doing wrong?



__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
___
mp3encoder mailing list
mp3encoder@minnie.tuhs.org
http://minnie.tuhs.org/mailman/listinfo/mp3encoder


Re: [mp3encoder] processor specific build of lame under mingw gives errors

2005-01-29 Thread Robert Hegemann
Hi,

Am Samstag, 29. Januar 2005 19:26 schrieb Audio Phile:
 5. I edited /lame-3.96.1/mpglib/MakeFile and changed:
 NASM_FORMAT = -f elf

 To this:

 NASM_FORMAT = -f win32 -DWIN32

you have to make the change in the lame-3.96.1/libmp3lame/i386/Makefile



Ciao Robert

___
mp3encoder mailing list
mp3encoder@minnie.tuhs.org
http://minnie.tuhs.org/mailman/listinfo/mp3encoder