[vorbis] Vorbis under DJGPP (was: DOS commandline decoder for Ogg beta4)

Beni Cherniavsky scben at techst02.technion.ac.il
Wed Jun 6 01:19:23 PDT 2001



On Wed, 9 May 2001, Frank Heckenbach wrote:

> Attila Padar wrote:
> 
> > I made a DOS based ogg encoder/decoder,
> > but it's not really perfect...
> > My Watcom C compiler doesn't like the lot of
> > dinamic and huge local variables...
> > And there are some code optimization and rounding 
> > difference too... (quality loss, slower code)
> 
> Why not compile it under DJGPP? It runs in 32 bit mode under plain
> Dos (386+), i.e. no slower code, less size limits. And it's free ...
> 
> Frank
> 

I compiled it with DJGPP (without a makefile, in the `gcc -c *.c', `ar -sr
libfoo *.o', etc. style) smoothly (only had to define `min' and `max',
probably Watcom has these) and it ran successfully (decoded and encoded a
stream fine).  If anybody is interested (Attila?) I can write the
makefiles for DJGPP and/or provide a binary.

However there is no reason to modify the vorbis code for DJGPP.  I also
successfuly compiled (same way) original beta4 libogg and libvorbis (only
had to define the ogg_intXY types).  The examples compiled fine too.  
They didn't work fine though, until I extended the `#ifdef _WIN32' to set
binary mode under MSDOS too.  Then encoder_example worked fine, the
decoders didn't - I probably made some mistake (late night).

So, is there any demand for compiling vorbis under MSDOS?  Would be nice
at least for the plethora of allegro games :-)  I can easily contribute
makefiles / build scripts (.bat) / binaries (DOS SDK :), and maintain them
with futher releases.  What is the best way to build in an environmet
where automake doesn't work?  Should I write a makefile from scratch and
keep it synced with futher source changes or try to extract info from the
makefile.in / makefile.am ?  DJGPP has all binutils, GNU make, `sed' is
reasonable to expect, anything else best if avoided, only static libraries
needed.

I think it can be made as easily compilable from CVS snapshots as from
releases.

Answer in about 5 hours if you want it by Sunday (I'll be offline
afterwards).


-- 
Beni Cherniavsky <cben at crosswinds.net>
                 (also scben at t2,cben at tx in Technion)

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list