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

Compiler Errors in Visual Studio 2015 due to libyuv #1

Closed jleveque closed 9 years ago

jleveque commented 9 years ago

I converted the VS2012 project to VS2015, and was greeted by hundreds of compiler errors. This is due to Microsoft removing the deprecated ability to apply "__declspec(align)" to functions. This is used throughout the current version of libyuv in the libtheoraplayer project.

This issue has apparently been fixed upstream in libyuv, as of revision 1374 (https://code.google.com/p/libyuv/issues/detail?id=422), so you will just need to update the libyuv source. I fixed the errors manually and was able to compile fine, so it seems this all that is necessary to make libtheoraplayer VS2015-compliant.

kspes commented 9 years ago

Cool! Thanks for the info, we'll update it soon :)

On Saturday, August 1, 2015, jleveque notifications@github.com wrote:

I converted the VS2012 project to VS2015, and was greeted by hundreds of compiler errors. This is due to Microsoft removing the deprecated ability to apply "__declspec(align)" to functions. This is used throughout the current version of libyuv in the libtheoraplayer project.

This issue has apparently been fixed upstream in libyuv, as of revision 1374 (https://code.google.com/p/libyuv/issues/detail?id=422), so you will just need to update the libyuv source. I fixed the errors manually and was able to compile fine, so it seems this all that is necessary to make libtheoraplayer VS2015-compliant.

— Reply to this email directly or view it on GitHub https://github.com/AprilAndFriends/theoraplayer/issues/1.


Krešo

kspes commented 9 years ago

libyuv updated, give it a try and let us know if it works for you.

https://libtheoraplayer.wordpress.com/2015/08/19/libyuv-update/

jleveque commented 9 years ago

Looks good. Everything compiles without errors. Thanks! You should now be able to create a proper VS2015 project for libtheoraplayer without any surprises.