Discussion:
[theora-dev] Ogg Theora files player
Maciej Mączyński
2012-04-11 07:04:36 UTC
Permalink
Hello,

I try to compile player_example.c from http://downloads.xiph.org/releases/theora/libtheora-1.1.1.zip in Visual Studio 2008 on Windows XP.
I built and added to the project libogg-1.3.0, libtheora-1.1.1, libvorbis-1.3.2 (http://www.xiph.org/downloads/) and SDL-1.2.15 (http://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip).
When I compile player_example.c Visual Studio shows:

fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
fatal error C1083: Cannot open include file: 'sys/soundcard.h': No such file or directory
fatal error C1083: Cannot open include file: 'sys/ioctl.h': No such file or directory

I found out that these files are part of Linux, not Windows. Are there equivalents of these files for Windows?
How can I change player_example.c, so that it compile on Windows?

Best regards,
Maciej M±czyñski
Timothy B. Terriberry
2012-04-11 07:20:18 UTC
Permalink
How can I change /player_example.c/, so that it compile on Windows?
It needs significant work to compile on Windows, because it requires a
completely different audio output backend. There used to be a variant
for Windows that used PortAudio, but it was removed 6 years ago because
it was totally unmaintained. You can still retrieve it via svn up
-r11431 (then look in win32/experimental/splayer). The changeset
removing it was https://trac.xiph.org/changeset/11432/trunk/theora/win32
Timothy B. Terriberry
2012-04-11 11:53:04 UTC
Permalink
http://svn.xiph.org/trunk/theora. There are "splayer.c" and
"README_SPLAYER" files in "examples" folder, but there is not "splayer"
folder in "win32\experimental" folder. It seems to be revision 18224.
Where can I find revision 11431?
Right-click on the theora folder in Explorer and select "Update to
Revision..."

Loading...