Building SBaGen with Visual Studio 2005...
So you want to make some changes/enhancements/contributions to SBaGen, but you are a Windows developer and can't be bothered with trudging through all the Visual Studio nastyness to get it all compiling cleanly, well here is a step by step guide I put together while I was doing it, so you don't have to.. |
After clicking ok, then next, tick the empty project checkbox.
Change to Use Multi-Byte Character Set
Add the Preprocessor Definitions(T_MSVC MP3_DECODE OGG_DECODE)
Add the sbagen-1.4.4\sbagen.c file to the project
Change the Compile As setting for sbagen.c
Change Runtime Library to multi-threaded:
Add the Additional Include Directories
Add the Additional Library Directories
Add Additional Dependencies
Add LibOGG to solution:
Add the libvorbis and libvorbisfile projects
Change the Configuration Type for the libOGG project to Static Lib (.lib)
Change the LibOGG output directory
Change the Configuration Type for the LibVorbis project to Static Lib (.lib)
Add the Additional Include Directories fo the LibVorbis project
Change the LibVorbis output directory
Change the Configuration Type for the LibVorbisFile project to Static Lib (.lib)
Add the Additional Include Directories fo the LibVorbisFile project
Change the LibVorbisFile output directory
Make the sbagen_vc project dependent on the libraries
to this:
Change includes in oggdec.c
to this:
Fix first ov_read signature change on line 116 of oggdec.c
to this:
Fix second ov_read signature change on line 510 of oggdec.c
to this:
sbagen_vc.exe will be in sbagen_vc\Release of your project directory..