AprilAndFriends / theoraplayer

A multi-threaded C++ library that plays video files supporting multiple codecs across platforms. Easy to use, fast, responsive, abstract interface and minimal dependencies, you'll soon be wondering how you lived without it! ;) Audio and Video interfaces are completely abstracted so the library can be used anywhere, regardless of what you use to display video frames and play audio samples (eg. OpenGL / OpenAL, Direct3D / DirectSound?, SDL / SDL_mixer, X11 / alsa ...) The library can pre-cache video frames and decoded audio samples for maximum efficiency and smooth playback, even on single-cpu systems. Currently, the library supports Theora on Windows, Mac, iOS, Linux, Android, WinRT and Windows Phone. H.264 is supported on Mac and iOS.
BSD 3-Clause "New" or "Revised" License
84 stars 43 forks source link

Building Theoraplayer Demos for iOS #31

Open machine-mind opened 6 years ago

machine-mind commented 6 years ago

Hi, I've tried to build one of the Theoraplayer demos (OpenGL Demos (iOS). But I'm getting compile errors.

/Users/stefan/src/theoraplayer/demos/opengl_demos/demo_tv.cpp:110:3: Use of undeclared identifier 'gluLookAt' /Users/stefan/src/theoraplayer/demos/opengl_demos/demo_tv.cpp:138:3: Use of undeclared identifier 'glColor3f' /Users/stefan/src/theoraplayer/demos/opengl_demos/demo_tv.cpp:148:3: Use of undeclared identifier 'glColor3f'

I can build the same Demo (OpenGL Demos (Mac)) fine for MacOS.

Am I missing something to compile for iOS?

kspes commented 6 years ago

looks like you're missing gl/glu.h, which isn't available on iOS. If I remeber correctly, TV demo was never ported to iOS, didn't have the time to replace the GLU callbacks.

machine-mind commented 6 years ago

Is there any demo I could run on iOS?

kspes commented 6 years ago

not sure, I think the last refactor broke the ios demo, don't have time to fix it currently.