Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

where is libusc.a?

James_Junbiao_Pan
944 Views

Dear all,

I run build32.sh in folder ipp-samples/speech-codecs and it generate two libraries in speech-codecs/bin/.../lib/ : libcore.a and libspeech.a. But should there be a library file libusc.a? How can it be generated? Thanks for your help.

0 Kudos
9 Replies
Vladimir_Dudnik
Employee
944 Views
Hello,
please make sure you follow steps described in sample's readme.htm file

How to Build Source Code

  • Set up your build environment by creating an environment variable named IPPROOT that points to the root directory of your Intel IPP installation. For example: /opt/intel/IPP/ 6.0.x.xxx_beta /ia32/
    • To build for an IA-32 system:
      • Run build 32.sh.
    • To build for an Intel Xeon Processor with Intel Extended Memory 64 Technology system:
      • Run buildem64t.sh.

To build all application is to simply run build*. sh located under directory ./ ipp_samples/speech-codecs if the target system is based on IntelPentiumProcessor system. The build*. sh will build the USC speech codec library and four samples, namely the unified echo canceller andthe unified speech codec, noise reduction and tone detector. If build is successful all relevant . obj files and .a files are created and stored under directory ./ipp_samples/speech-codecs/bin/ia32/obj/* and . /ipp_samples/speech-codecs/bin/ia32/lib/* respectively. The .exe files will be placed in ./ipp_samples/speech-codecs/bin/ia32.

Note, with default settings it will build the sample with Intel C++ compiler. To change defaults see the Makefile for a brief description of the available variables and additional options.

Regards,
Vladimir

0 Kudos
damiandr
Beginner
944 Views
I have a similar problem:
[shell]damian:/mnt/1/ipp-samples/speech-codecs# export IPPROOT=/opt/intel/ipp/6.0.1.071/ia32/
damian:/mnt/1/ipp-samples/speech-codecs# ./build32.sh
+----------------------------------------------------------------------------+
|Test        : speech-codecs build                ro sty 07 12:41:58  2009
|Hostname    : damian
|Function    : no
|Description : building speech-codecs sample
|Class       : Information
|Source      : /mnt/1/ipp-samples/speech-codecs
|Executable  : build32.sh
+----------------------------------------------------------------------------+
 Found compiler gcc4 ( autodetect ) is /usr
 Compiler environment is loaded
 OpenMP support for this compiler: YES
 IPP environment found at /opt/intel/ipp/6.0.1.071/ia32//tools/env/ippvars32.sh
 IPP environment is loaded
 All necessary packages and requred compilers are checked
 Environment is setup. Build process is started. Please wait build results ...

******* core                      PASSED
******* speech                    PASSED
******* usc_ec                    PASSED
******* usc_nr                    PASSED
******* usc_speech_codec          PASSED
******* usc_tones                 PASSED

+----------------------------------------------------------------------------+
|-OK    speech-codecs                   ro sty 07 12:43:00  2009
+----------------------------------------------------------------------------+
damian:/mnt/1/ipp-samples/speech-codecs# damian:/opt/intel/ipp/6.0.1.071/ia32# 
damian:/mnt/1/ipp-samples/speech-codecs#find -name libusc.a damian:/mnt/1/ipp-samples/speech-codecs# ls -l
razem 600
drwxrwxrwx 6 root root 4096 gru 9 09:59 application
drwxr-xr-x 3 root root 4096 sty 7 12:41 _bin
-r-xr-xr-x 1 root root 2346 gru 5 17:30 build32.sh
-r-xr-xr-x 1 root root 2344 gru 5 17:30 build64.sh
-r-xr-xr-x 1 root root 2350 gru 5 17:30 buildem64t.sh
drwxrwxrwx 3 root root 4096 gru 9 09:59 codec
drwxrwxrwx 4 root root 4096 gru 9 09:59 core
drwxr-xr-x 3 root root 4096 sty 7 12:41 _log
-r--r--r-- 1 root root 4181 gru 5 17:30 Makefile
-r--r--r-- 1 root root 62282 gru 5 17:30 readme.htm
-r--r--r-- 1 root root 497511 gru 5 17:30 uscmanual.pdf
[/shell]

some ideas
0 Kudos
Vladimir_Dudnik
Employee
944 Views
Everything what was successfully built by IPP speech codec sample should be located at _bin folder.


Vladimir

0 Kudos
damiandr
Beginner
944 Views
Quoting - Vladimir Dudnik
Everything what was successfully built by IPP speech codec sample should be located at _bin folder.


Vladimir

:)
but still I do not have libusc.a.


0 Kudos
lukaszg
Beginner
944 Views
Quoting - Vladimir Dudnik
Everything what was successfully built by IPP speech codec sample should be located at _bin folder.


Vladimir


I haven't this file :|

[cpp]Asterisk-node0:/usr/src/ipp-samples/speech-codecs# uname -a
Linux Asterisk-node0 2.6.27.8-ccig-VoIP #2 SMP Mon Dec 15 23:59:10 CET 2008 i686 GNU/Linux



Asterisk-node0:/usr/src/ipp-samples/speech-codecs# ./build32.sh
+----------------------------------------------------------------------------+
|Test        : speech-codecs build                pi sty 16 03:11:22  2009
|Hostname    : Asterisk-node0
|Function    : no
|Description : building speech-codecs sample
|Class       : Information
|Source      : /usr/src/ipp-samples/speech-codecs
|Executable  : build32.sh
+----------------------------------------------------------------------------+
 Found compiler gcc4 ( autodetect ) is /usr
 Compiler environment is loaded
 OpenMP support for this compiler: YES
 IPP environment found at /opt/intel/ipp/6.0.1.071/ia32/tools/env/ippvars32.sh
 IPP environment is loaded
 All necessary packages and requred compilers are checked
 Environment is setup. Build process is started. Please wait build results ...

******* core                      PASSED
******* speech                    PASSED
******* usc_ec                    PASSED
******* usc_nr                    PASSED
******* usc_speech_codec          PASSED
******* usc_tones                 PASSED

+----------------------------------------------------------------------------+
|-OK    speech-codecs                   pi sty 16 03:12:46  2009
+----------------------------------------------------------------------------+


Asterisk-node0:/usr/src/ipp-samples/speech-codecs/_bin/linux32_gcc4/lib# ls -la
razem 1088
drwxr-xr-x 2 root root    4096 sty 16 03:12 .
drwxr-xr-x 5 root root    4096 sty 16 03:11 ..
-rw-r--r-- 1 root root   18322 sty 16 03:11 libcore.a
-rw-r--r-- 1 root root 1079378 sty 16 03:12 libspeech.a

[/cpp]


0 Kudos
Vladimir_Dudnik
Employee
944 Views
Sorry, for taking so long to answer that simple question. According our experts, starting from IPP 6.0 libusc.a library was substituted by libcore.a and libspeech.a. Please modify your build environemnt accordingly.

Regards,
Vladimir
0 Kudos
damiandr
Beginner
944 Views
Quoting - Vladimir Dudnik
Sorry, for taking so long to answer that simple question. According our experts, starting from IPP 6.0 libusc.a library was substituted by libcore.a and libspeech.a. Please modify your build environemnt accordingly.

Regards,
Vladimir
thx :)
0 Kudos
Ahmed_O_
Beginner
944 Views

Please tell me, from IPP 7, what was libspeech.a substituted with, because I can't seem to find it after compilation.

0 Kudos
Ying_H_Intel
Employee
944 Views

Hi Ahmed,

Did you use some special setting when build the sample?  If by default under linux, there is not change. libspeech.a and libcore.a should be unchanged.

[yhu5@snb04 intel64_icc121]$ cd bin
[yhu5@snb04 bin]$ ls
usc_ec  usc_nr  usc_speech_codec  usc_tones
[yhu5@snb04 bin]$ cd ..
[yhu5@snb04 intel64_icc121]$ ls
bin  lib  obj
[yhu5@snb04 intel64_icc121]$ cd lib
[yhu5@snb04 lib]$ pwd
/home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/lib
[yhu5@snb04 lib]$ ls
libcore.a  libspeech.a

and if you build with windows, the library is

 Directory of C:\Users\yhu5\Desktop\7.0\w_ipp-samples_p_7.0.7.064\ipp-samples\s
eech-codecs\_bin\ia32_cl10\lib

2012/08/08  15:00           273,588 audio_renders.lib
2012/08/08  15:00           342,632 jitter_buffers.lib
2012/08/08  15:00           296,018 media_buffers.lib
2012/08/08  15:00         1,568,340 speech.lib
2012/08/08  15:00           475,904 speech_rtp.lib
2012/08/08  15:00           396,132 umc.lib
2012/08/08  15:00           320,892 vm.lib
          

But one notable change in IPP 8.0 :  http://software.intel.com/en-us/intel-ipp-80-library-release-notes 

 Support for all components of these samples is now discontinued, not just specific codecs.  There are no plans for further development, may transfer ownership of these projects to other community.

Regards,
Ying

0 Kudos
Reply