[theora-dev] building under NetBSD

Jeremy C. Reed reed at reedmedia.net
Tue May 20 23:18:56 PDT 2003

I am successfully able to build today's theora_cvs_snapshot under
NetBSD/i386 1.6 with SDL disabled. (I haven't tested yet.)

I was unable to build with SDL:

 player_example.c:52: sys/soundcard.h: No such file or directory

I see the source says it is OSS-specific for now.

This is what I did to make it build:

--- work.rainier/theora/examples/player_example.c.orig	Mon May 19 12:31:37 2003
+++ work.rainier/theora/examples/player_example.c
@@ -49,7 +49,13 @@
    give us any way to determine hardware timing, and since the
    hard/kernel buffer is going to be most of or > a second, that's
    just a little bit important */
+#if defined(__FreeBSD__)
+#include <machine/soundcard.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <soundcard.h>
 #include <sys/soundcard.h>
 #include <sys/ioctl.h>

 /* Helper; just grab some more compressed bitstream and sync it for

<p>This built, but this is not tested yet. I need to make some data to test.
I found a Micro-HOWTO at
which I will follow. Unless is there is easier ways or a download site to
fetch Ogg Theora files.

By the way, I created a package of "theora-nightly" for NetBSD (and also
created new packages for CVS snapshots of libogg and libvorbis because
theora README said newer versions of these were needed).

   Jeremy C. Reed

<p>--- >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 'theora-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 Theora-dev mailing list