xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
218 stars 79 forks source link

.lib files for windows #43

Closed lars1298 closed 5 years ago

lars1298 commented 5 years ago

Is there any place where the .lib files required to build the windows tools can be downloaded? I get errors for all of these:

opus.lib libogg_static.lib opusfile.lib opusenc.lib

built opus and libogg_static, to which 'libFLAC_static.lib' started throwing errors.

Is it expected to manually build all of these projects to build opus-tools for windows?

mark4o commented 5 years ago

If you don't want to build it yourself, a Windows binary can be downloaded from: https://www.opus-codec.org/downloads/

lars1298 commented 5 years ago

I would like to make changes to the opusenc.exe tool, but I ran into a lot of issue trying to build all the other tools. Lots of include directories missing and I'm not sure where the lib files need to be. Is it required to build all 5 tools/libraries just to edit opusenc? Is it possible to post a version of the libs somewhere, or is there a document which explains the required directory structure to build these out of the box?

mark4o commented 5 years ago

It is possible to get libraries for the most recent build of opus, opusfile, and libopusenc from Appveyor, the continuous integration system for Windows. From https://github.com/xiph/opus/commits click on the green check mark for the most recent commit (assuming it passed) and continuous-integration/appveyor/branch Details, then click on the build configuration that you want such as "Configuration: Release; Platform: Win32", then click on Artifacts and opus.zip to download the zip file containing the library. Then repeat, changing opus to opusfile and then libopusenc.

You can also take a look at the commands that are used to build opus-tools in Appveyor; see the install section of: https://github.com/xiph/opus-tools/blob/master/.appveyor.yml After downloading the opus, opusfile, and libopusenc libraries it builds ogg, installs nasm (for the FLAC build), builds FLAC, and then finally opus-tools.