I'm having trouble compiling megamix (http://www.rarewares.org/quantumknot/vorbis-megamix-src.zip) on Linux.
The code uses some WIN32ism's, this patch is needed to solve this:
--- vorbis-megamix/examples/encoder_example.c.orig 2004-04-21 22:59:10.000000000 +0200
+++ vorbis-megamix/examples/encoder_example.c 2004-07-04 17:55:18.105580606 +0200
@@ -75,7 +75,7 @@ signed char readbuffer[READ*4+44]; /* ou
puts("usage: encoder_example -q4 filename.wav");
exit(1);
}
- if( !strnicmp(argv[1], "-q", 2) ){
+ if( !strncasecmp(argv[1], "-q", 2) ){
if( strlen(argv[1]) > 2 ){
qnum = atof(argv[1]+2);
}
@@ -114,9 +114,9 @@ signed char readbuffer[READ*4+44]; /* ou
verify that it matches 16bit/stereo/44.1kHz. This is just an
example, after all. */
- DWORD footer = 0; //+
- DWORD sa_rate = 44100; //+
- WORD channel; //+
+ unsigned long footer = 0; //+
+ unsigned long sa_rate = 44100; //+
+ unsigned short channel; //+
struct stat sbuf; //+
stat(argv[qx], &sbuf); //+
Furthermore I'm having trouble running the configure script, it just spits out:
: bad interpreter: No such file or directory
I can solve this problem by running autoconf, but then the configure script errors with
configure: error: cannot run /bin/sh ./config.sub