Compiling PJSIP with Intel Performance Primitaves 6 (IPP) on Ubuntu 8.04

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Everyone,

 I have just got PJSIP running with IPP 6 & Ubuntu Hardy Heron 8.04, 
here is how it is done:

Compiling PJSIP with Intel Performance Primitives 6 (IPP) on Ubuntu 8.04

Install IPP + IPP Samples + PJSIP:
 - IPP:
      - Download IPP > version 6 
(http://registrationcenter-download.intel.com/irc_nas/1326/l_ipp_ia32_p_6.0.1.071.tar.gz)
      - Unpack
      - You need to register and get a license via email & put it in the 
/opt/intel/licenses/ dir
      - Run installation script ./install.sh
      - Wack Enter a couple of times & type accept
 - IPP Samples
      - Download IPP-Samples for > version 6 
(http://registrationcenter-download.intel.com/irc_nas/1326/l_ipp-samples_p_6.0.0.142.tgz)
      - Set up the environment variables so it knows where IPP is.  In 
my case:
        - export IPPROOT=/opt/intel/
      - Run the ./buildXX.sh file in the speech-codecs directory
      - Make sure all the compile steps are 'PASSED'
    
  - PJ Project
      - Download pjproject > 1.0
      - Unpack
      - cd pjproject-X
      - Set up environment
         - export IPPROOT=/opt/intel/
         - export IPPSAMPLES=/home/michaelt/installs/ipp-samples/
      - Edit ./pjlib/include/pj/config_site.h to include the following:
          #define PJMEDIA_HAS_INTEL_IPP    1
      - Now it gets fun.  Work around acounfigure & Intel file naming 
updates:
         - Patch aconfigure & aconfigure.ac with the attached patchs.
           - patch aconfigure < aconfigureIntelVersion6.diff
           - patch aconfigure.ac < aconfigure.acIntelVersion6.diff
         - All this does it remove references to libusc.a & replaces it 
with libspeech.a
         - Move the _bin to bin: mv ./ipp-samples/speech-codecs/_bin 
./ipp-samples/speech-codecs/bin  (Intel changed folder name)
         - Configure (breaks but okay, we fix it later):
           -  ./configure --enable-ipp --with-ipp=$IPPROOT 
--with-ipp-samples=$IPPSAMPLES
         - Fix acounfigure problems:
           - vi config.status
           - Add trailing slashes ( \) on the two top most 'export 
IPP_xxx lines' and the line above them. e.g:
             s, at ac_build_mak_vars@, \
             export IPP_CFLAGS=-I/opt/intel/ipp/6.0.1.071/ia32//include 
-I/root/installs/ipp-samples/speech-codecs/core/usc/include \
             export 
IPP_LDFLAGS=-L/opt/intel/ipp/6.0.1.071/ia32//sharedlib 
-L/root/installs/ipp-samples/speech-codecs/bin/linux32_gcc4/lib \
             export IPP_LIBS=-lspeech -lippsc -lipps -lippsr -lippcore 
-lguide,;t t
           - Run ./config.status
           - FYI this is the symptom of this problem:
              config.status: creating build.mak
              sed: file ./confstatG27575/subs-2.sed line 8: unterminated 
`s' command
              config.status: creating build/os-auto.mak
              sed: file ./confstatG27575/subs-2.sed line 8: unterminated 
`s' command
          - Compile PJSIP
            - make dep
            - make
            - make install
          - Validate Installation:
            - Update linked libraries to include Intel stuff
              - Add this line to: vi /etc/ld.so.conf
                /opt/intel/ipp/6.0.1.071/ia32/sharedlib/
              - sudo ldconfig
            - Run pjsua binary 
./pjproject-1.0/pjsip-apps/bin/pjsua-i686-pc-linux-gnu
            - Hit 'd' & check if g729 & friends are installed...
            - Done.

Cheers,

Michael

-- 

Vox Telecom Limited
Block B, Rutherford Estate


tel: +27 11 809 1500
direct: +27 11 809 1646
mobile: +27 83 364 2370
fax: 0865 023 695
-
http://www.voxtelecom.co.za
email:michaelt at voxtelecom.co.za
 
Disclaimer: BizCall does not accept responsibility or liability for the unauthorised use of its e-mail facility and/or opinions relating to bona fide company matters.  Save for statements and/or opinions relating to bona fide company matters, Bizcall denies responsibility or liability for the contents of this communication.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: aconfigure.acIntelVersion6.diff
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090109/43c14fa1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aconfigureIntelVersion6.diff
Type: text/x-patch
Size: 674 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090109/43c14fa1/attachment-0001.diff>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux