Friday, April 28, 2017

Opencore AMR - How to build and test and Verify encode and decode functionality

the build system is based on GNU. on the downloaded opencore-amr folder run the following two

./configure
make

output of ./configure
My-MacBook-Pro:opencore-amr retheeshravi$ ./configure 
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin15.5.0
checking host system type... i386-apple-darwin15.5.0
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether ln -s works... yes

checking whether make sets $(MAKE)... (cached) yes


Output of make
Make will make the executables based on the output from configure script. 
my-MacBook-Pro:opencore-amr retheeshravi$ make
/Users/mymacbook/Downloads/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in amrnb
make[2]: Nothing to be done for `all'.
Making all in amrwb
make[2]: Nothing to be done for `all'.
Making all in test
  CC     amrwb-dec.o
  CC     wavwriter.o
  CCLD   amrwb-dec
  CC     amrnb-dec.o
  CCLD   amrnb-dec
  CC     amrnb-enc.o
  CC     wavreader.o
  CCLD   amrnb-enc
  CC     linkboth.o
  CCLD   linkboth
  CC     amrnb-enc-sine.o
  CCLD   amrnb-enc-sine

Now we can run the amrnb-dec, amrnb-enc programs independantly and get the results. 

references:

No comments:

Post a Comment