Build opencore-amr for Windows

原文地址:http://www.fantageek.com/2013/05/21/build-opencore-amr-for-windows/

编译好的Windows库文件:http://download.csdn.net/detail/nature19862001/9713602

AMR (Apdative multi rate) is a codec optimized for compression audio data. It has 2 versions, narrow band and wide band.

Opencore-amr is an implementation of it, which is extracted from Android source.

This tutorial will guide you how to build opencore-amr for Windows, with the help of minGW

Install minGW first

Download mingw-get-inst for a quick GUI installation. Choose the folder where you want to install minGW (C:\minGW for example). Remember to check for msys addon (msys is an optimized shell for minGW operation)

After installation is completed, add C:\minGW\bin to your PATH

More information about minGW, visit http://www.mingw.org/wiki/Getting_Started

Download opencore-amr

Download here http://sourceforge.net/projects/opencore-amr/files/opencore-amr/

The latest version is 0.1.3

Build opencore-amr

打开C:\MinGW\msys\1.0\msys.bat

Cd to where you put opencore-amr

执行命令:

./configure

Then, 执行命令:

make

Now you should see your lib libopencore-amrnb.a in opencore-amr-0.1.3\amrnb\.libs and your include file in opencore-amr-0.1.3\amrnb

The important include files are _interfenc.h and _interfdec.h

You can then use opencore-arm in your favorite Visual Studio. The archives of static libraries generated with MinGW are generally compatible with Visual C++ compiler/linker.

If you still encounter errors, maybe you need to add some minGW ‘s libraries. Follow this answer on SO.

If you still can’t build it, you can use this already built opencore-amr from Suresh

你可能感兴趣的:(Build opencore-amr for Windows)