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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20120411/be691e8c/attachment.htm
Maciej M?czy?ski wrote:> 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
Maciej M?czy?ski wrote:> Can you tell me how to do it? I downloaded via TortoiseSVN: > 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..."
Hello, I'd like to compile splayer.c from revision 11431 in Visual Studio 2008 on Windows XP. Module splayer.c requires PortAudio. I'm trying to build Portaudio for Windows using Microsoft Visual Studio: http://portaudio.com/docs/v19-doxydocs/compile_windows.html I did step 1 and part of step 2. Step 2 says: "Copy the entire ASIOSDK2 folder into src\hostapi\asio\." Where is the src\hostapi\asio\ folder? Should I create it? If so, where exactly? Point 4 says: "If you have Visual Studio 2005, Visual C++ 2008 Express Edition or Visual Studio 2010, double click the portaudio.sln file located in build\msvc\." Where are the portaudio.sln file and the build\msvc\ folder? There aren't these elements in the \theora\win32\experimental\splayer\portaudio\ folder and anywhere else on my hard disk. Best regards, Maciej -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20120425/5a754e01/attachment.htm