| 275 | |
| 276 | == vorbis == |
| 277 | * Download the latest source code for '''libogg''' and '''libvorbis''' from https://xiph.org/downloads. |
| 278 | * Create a folder in which you extract `libogg-1.x.x` and `libvorbis-1.x.x`. |
| 279 | * First compile libogg DLLs: |
| 280 | * Open `win32/VS2015/libogg_dynamic.sln`. Accept to upgrade the solution. |
| 281 | * In the project properties, for all configurations, change the toolset to v140_xp. |
| 282 | * In the project properties, for the Debug configuration, change TargetName so that it ends with `d` (typically `$(ProjectName)d` instead of `$(ProjectName)`. |
| 283 | * Compile both configurations. |
| 284 | * Copy `win32/VS2015/Win32/{Debug,Release}/libogg{d,}.dll` to `binaries/system/`. |
| 285 | * Copy `win32/VS2015/Win32/{Debug,Release}/libogg{d,}.lib` to `libraries/win32/vorbis/lib/`. |
| 286 | * Then compile libogg_static: |
| 287 | * Open `win32/VS2015/libogg_static.sln`. Accept to upgrade the solution. |
| 288 | * In the project properties, for all configurations, change the toolset to v140_xp. |
| 289 | * Compile both configurations and don't copy anything, we don't distribute those. |
| 290 | * Finally compile vorbis: |
| 291 | * In `win32/VS2010/libogg.props`, check that `LIBOGG_VERSION` is the same as the one you compiled, and check that paths seem to match. Else, fix them. |
| 292 | * Open `libvorbis_dynamic.sln`, accept to upgrade the solution. |
| 293 | * For both the `libvorbis` and `libvorbisfile` projects: |
| 294 | * for all configurations, change the toolset to v140_xp. |
| 295 | * for the Debug configuration, change TargetName so that it ends with `d`. |
| 296 | * for all configurations, reset Linker > General > OutputFile and Linker > Advanced > ImportLibrary to their default values (which should contain `$(TargetName)`). |
| 297 | * For `libvorbisfile` (and `vorbisdec` and `vorbisenc` if you care), for the Debug configuration, in Linker > Input > Additional Dependencies, change `libvorbis.lib` to `libvorbisd.lib`. |
| 298 | * Compile both configurations. |
| 299 | * Copy `win32/VS2010/Win32/{Debug,Release}/libvorbis{,file}{d,}.dll` to `binaries/system/`. |
| 300 | * Copy `win32/VS2010/Win32/{Debug,Release}/libvorbis{,file}{d,}.lib` to `libraries/win32/vorbis/lib/`. |
| 301 | * Copy include files for ogg and vorbis. |