[vorbis-dev] Macintosh support (again)

Chris Hanson cmh at bDistributed.com
Thu Oct 5 13:47:29 PDT 2000



In order to compile the latest Vorbis library on the Macintosh, the 
change appended to this message needs to be made to os_types.h.in. 
Then, anyone who wants to actually build it must first copy 
os_types.h.in to os_types.h by hand, since MacOS does not include a 
command line and thus cannot run configure.

It really bugs me that the whole "platforms which don't support 
configure scripts require multiple undocumented stages to build" 
issue hasn't been addressed yet.  It's so simple to address, too -- 
just as simple as putting instructions for how to do the two-stage 
build into the documentation!  Here's what needs to be done:

1. Rename os_types.h.in to os_types.h.

2. Move the one minor portion that's munged by configure into a new 
file, config_types.h.in.

3. Put '#include "config_types.h"' in place of the configure-munged 
stuff in os_types.h.

4. Then do whatever needs to be done (if anything) to make configure 
munge config_types.h.in instead of os_types.h.in.

This will ensure that Windows and Macintosh developers can build the 
Vorbis libraries without making their own os_types.h, and without 
having to figure out that they need to.  (They probably *won't* 
realize that they need to do this and instead just figure "Oh well, 
Mac/Windows support is broken just like it is with the rest of the 
Unix-oriented packages in the Universe.  And besides that, it's still 
beta.  I guess I won't bother with Vorbis.")

   -- Chris Hanson
   -- Mac developer
   -- Mac developer who has been evangelizing Vorbis to other Mac developers

Here's the stuff to add to os_types.h.in (or os_types.h when my 
advice above is followed):

Index: vorbis/include/vorbis/os_types.h.in
===================================================================
RCS file: /usr/local/cvsroot/vorbis/include/vorbis/os_types.h.in,v
retrieving revision 1.3
diff -u -2 -r1.3 os_types.h.in
--- vorbis/include/vorbis/os_types.h.in	2000/08/30 07:09:46	1.3
+++ vorbis/include/vorbis/os_types.h.in	2000/10/05 20:35:38
@@ -37,4 +37,14 @@
  typedef _G_int16_t ogg_int16_t;
  #endif
+
+#elif defined(macintosh)
+
+#include <sys/types.h>
+
+typedef SInt16 ogg_int16_t;
+typedef SInt32 ogg_int32_t;
+typedef UInt32 ogg_uint32_t;
+typedef SInt64 ogg_int64_t;
+
  #else

--- >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-dev-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-dev mailing list