Guys, wouldn't be nice if someone posted that on the wiki? Thanks for the info Michael. Mesquita On Jan 9, 2009, at 10:40 AM, Michael Toop wrote: > 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. > > > 676c676 > < # Guess the libusc.a build location > --- >> # Guess the libspeech.a build location > 682,683c682,683 > < if test ! -f $IPPSAMPLESLIB/libusc.a; then > < AC_MSG_FAILURE([libusc.a doesn't exist in $IPPSAMPLESLIB]) > --- >> if test ! -f $IPPSAMPLESLIB/libspeech.a; then >> AC_MSG_FAILURE([libspeech.a doesn't exist in $IPPSAMPLESLIB]) > 694c694 > < LIBS="-lusc $LIBS" > --- >> LIBS="-lspeech $LIBS" > 709c709 > < IPP_LIBS="-lusc $IPP_LIBS" > --- >> IPP_LIBS="-lspeech $IPP_LIBS" > 10860c10860 > < # Guess the libusc.a build location > --- >> # Guess the libspeech.a build location > 10871,10872c10871,10872 > < if test ! -f $IPPSAMPLESLIB/libusc.a; then > < { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in > $IPPSAMPLESLIB > --- >> if test ! -f $IPPSAMPLESLIB/libspeech.a; then >> { { echo "$as_me:$LINENO: error: libspeech.a doesn't exist in >> $IPPSAMPLESLIB > 10874c10874 > < echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB > --- >> echo "$as_me: error: libspeech.a doesn't exist in $IPPSAMPLESLIB > 10888c10888 > < LIBS="-lusc $LIBS" > --- >> LIBS="-lspeech $LIBS" > 10951c10951 > < IPP_LIBS="-lusc $IPP_LIBS" > --- >> IPP_LIBS="-lspeech $IPP_LIBS" > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org