Advertisement
Guest User

Building libogg and libvorbis together

a guest
Mar 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Get vorbis source
  2. AoTuV (recommended): http://www.geocities.jp/aoyoume/aotuv/source_code/libvorbis-aotuv_b6.03_2015.tar.bz2
  3. Vanilla (latest libvorbis archive): https://ftp.osuosl.org/pub/xiph/releases/vorbis/
  4.  
  5. Get ogg source
  6. https://ftp.osuosl.org/pub/xiph/releases/ogg/
  7.  
  8. Extract both sources to wherever you want
  9. Copy libogg/include/ogg/ to libvorbis/include/
  10. Copy bitwise.c and framing.c from libogg/src/ to libvorbis/lib/
  11. Open the appropriate Visual Studio solution from libvorbis/win32/
  12. Add the ogg header files (ogg.h, os_types.h) and source files (framing.c, bitwise.c) to the libvorbis project
  13. Right click the libvorbis project in the solution explorer, and open its properties
  14. Go to Linker -> Input
  15. Make sure Configuration and Platform at the top are set to All Configurations and All Platforms, respectively
  16. Remove libogg.lib; from the Additional Dependencies option and save
  17. Edit libvorbis/win32/vorbis.def and add all lines from libogg/win32/ogg.def except LIBRARY and EXPORTS
  18. Build libvorbis in Visual Studio for both Win32 and x64
  19. Built files can be found in libvorbis/win32/{VS Version}/{Platform}/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement