<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Mark, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987434#M21919</link>
    <description>&lt;P&gt;Hi Mark,&lt;/P&gt;

&lt;P&gt;It can be a workaround. There should be no object files with the same names, so this extract/combine operation should be safe.&lt;/P&gt;

&lt;P&gt;Otherwise, you need to experiment with command line to linker "g++ -static -o ...", specifying the required libraries with "-l" option.&lt;BR /&gt;
	BTW, there's something wrong with the linker command line. It&amp;nbsp;must&amp;nbsp;be&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;g++ -static -o main main.o Packets_Processing.o codec.o -L. &lt;STRONG&gt;-l&lt;/STRONG&gt;$libspeech -L $ippdir $IPPLIB&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;i.e. "-l" (lower L) before $libspeech. Or, add "-l" to export command.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Regards,&lt;BR /&gt;
	Sergey&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2013 04:30:11 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2013-11-22T04:30:11Z</dc:date>
    <item>
      <title>IPP 8 legacy code sample link issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987429#M21914</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;

&lt;P&gt;I am trying to build a linux speech codec program based on intel IPP 8 code samples.&lt;/P&gt;

&lt;P&gt;My code is quite simple and only include "usc.h" and "usc_objects_decl.h"&lt;/P&gt;

&lt;P&gt;The compile is successful, but when trying to do the link, I can't find the libspeech.a library&lt;/P&gt;

&lt;P&gt;My question is how to static link my code with intel speech codec samples library?&lt;/P&gt;

&lt;P&gt;I had stuck on this issue for several days, and not clues to complete the linkage job, and the code is very very important to me.&lt;/P&gt;

&lt;P&gt;Thank you very much, Sir!&lt;/P&gt;

&lt;P&gt;I built code samples followed by below steps:&lt;/P&gt;

&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;! winscp copy l_ipp_8.0.0.061.tgz to /tmp&lt;/P&gt;

&lt;P&gt;cd /tmp&lt;BR /&gt;
	tar -zxvf l_ipp_8.0.0.061.tgz&lt;BR /&gt;
	cd l_ipp_8.0.0.061&lt;/P&gt;

&lt;P&gt;setsebool allow_execmod on&lt;BR /&gt;
	setsebool allow_execstack on&lt;/P&gt;

&lt;P&gt;./install.sh&lt;/P&gt;

&lt;P&gt;setsebool allow_execmod off&lt;BR /&gt;
	setsebool allow_execstack off&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	source /opt/intel/ipp/bin/ippvars.sh intel64&lt;BR /&gt;
	!source /opt/intel/ipp/bin/ippvars.sh ia32&lt;/P&gt;

&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
	! winscp copy cmake-2.8.12.1.tar.gz to /tmp&lt;BR /&gt;
	cd /tmp&lt;BR /&gt;
	tar -zxvf cmake-2.8.12.1.tar.gz&lt;BR /&gt;
	cd cmake-2.8.12.1&lt;BR /&gt;
	./bootstrap&lt;BR /&gt;
	make install&lt;/P&gt;

&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
	!winscp copy l_ipp_8.0.0.005_legacy_samples.tgz to /tmp&lt;BR /&gt;
	cd /tmp&lt;BR /&gt;
	tar -zxvf l_ipp_8.0.0.005_legacy_samples.tgz&lt;BR /&gt;
	tar -zxvf l_ipp-speech-codecs_p_8.0.0.005.tgz&lt;/P&gt;

&lt;P&gt;cd /tmp/ipp-samples.8.0.0.005/builder/&lt;BR /&gt;
	./build.sh --sample=speech-codecs --arch=intel64 --ws=make --ipp=static --conf=release --clean&lt;BR /&gt;
	cd /tmp/ipp-samples.8.0.0.005/__cmake/speech-codecs.intel64.make.dynamic.release&lt;BR /&gt;
	make&lt;/P&gt;

&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;/tmp/ipp-samples.8.0.0.005/__cmake/speech-codecs.intel64.make.static.release/__lib/release&lt;BR /&gt;
	[root@centos release]# ls -la&lt;BR /&gt;
	total 1416&lt;BR /&gt;
	drwxr-xr-x 2 root root&amp;nbsp;&amp;nbsp; 4096 Nov 21 03:59 .&lt;BR /&gt;
	drwxr-xr-x 3 root root&amp;nbsp;&amp;nbsp; 4096 Nov 21 03:57 ..&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp;&amp;nbsp; 4078 Nov 21 03:59 libspeech_alc.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 91128 Nov 21 03:58 libspeech_amrwb.a&lt;BR /&gt;
	-rw-r--r-- 1 root root 261380 Nov 21 03:59 libspeech_amrwbe.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp;&amp;nbsp; 5470 Nov 21 03:58 libspeech_common.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 76976 Nov 21 03:58 libspeech_ec.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 20584 Nov 21 03:58 libspeech_g711.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 36342 Nov 21 03:59 libspeech_g722.1.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 26746 Nov 21 03:58 libspeech_g722.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 53444 Nov 21 03:58 libspeech_g723.1.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp;&amp;nbsp; 8742 Nov 21 03:59 libspeech_g726.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 57260 Nov 21 03:59 libspeech_g728.a&lt;BR /&gt;
	-rw-r--r-- 1 root root 116454 Nov 21 03:59 libspeech_g729.1.a&lt;BR /&gt;
	-rw-r--r-- 1 root root 107676 Nov 21 03:59 libspeech_g729fp.a&lt;BR /&gt;
	-rw-r--r-- 1 root root 118262 Nov 21 03:59 libspeech_g729i.a&lt;BR /&gt;
	-rw-r--r-- 1 root root 101732 Nov 21 03:59 libspeech_gsmamr.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 37824 Nov 21 03:59 libspeech_gsmfr.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp;&amp;nbsp; 9070 Nov 21 03:59 libspeech_nr.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 20076 Nov 21 03:58 libspeech_td.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 42288 Nov 21 03:58 libspeech_vad.a&lt;BR /&gt;
	-rw-r--r-- 1 root root&amp;nbsp; 74002 Nov 21 03:59 libvm.a&lt;BR /&gt;
	&lt;BR /&gt;
	[root@centos release]# uname -a&lt;BR /&gt;
	Linux centos 2.6.18-371.el5 #1 SMP Tue Oct 1 08:35:08 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:59:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987429#M21914</guid>
      <dc:creator>Mark_H_9</dc:creator>
      <dc:date>2013-11-20T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Hi Mark,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987430#M21915</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;

&lt;P&gt;How do you link your application? Could you show the command line?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Sergey&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:30:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987430#M21915</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-11-21T04:30:34Z</dc:date>
    </item>
    <item>
      <title>Hi Mark,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987431#M21916</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;

&lt;P&gt;You can link the static library as the below two test cases. .&amp;nbsp; The libspeech.a is from old versions. ( archive all of *.a into speech.a).&amp;nbsp; The 8.0 use seperate codec, thus if you need one kind of codec (i.e g729fp), you can just link one libspeech_g729fp.a. &lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&lt;/P&gt;

&lt;P&gt;/opt/intel/composer_xe_2011_sp1.11.339/bin/intel64/icpc -Wall -O2 -fPIC&amp;nbsp; -fopenmp -i-static /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/formats.o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/loadcodec.o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/player.o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/timing.o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/usccodec.o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/util.o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/obj/usc_speech_codec/wavfile.o -o /home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/bin/usc_speech_codec -L/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/intel64 -L/home/yhu5/ipp-samples/speech-codecs/_bin/intel64_icc121/lib &lt;STRONG&gt;-lspeech&lt;/STRONG&gt; -lcore -lippsc -lipps -lippcore -L/opt/intel/composer_xe_2011_sp1.10.319/ipp/../compiler/lib/intel64 -liomp5 -lpthread -lc -lm&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;/usr/bin/cc&amp;nbsp; -m64&amp;nbsp; -O2 -Wall&amp;nbsp;&amp;nbsp;&amp;nbsp; CMakeFiles/usc_nr.dir/src/nr_exmp.c.o CMakeFiles/usc_nr.dir/src/util.c.o&amp;nbsp; -o ../../__bin/release/usc_nr&amp;nbsp; -L/opt/intel/composer_xe_2013_sp1.1.106/ipp/../compiler/lib/intel64 -rdynamic -Xlinker --start-group ../../__lib/release/libvm.a ../../__lib/release/libspeech_common.a ../../__lib/release/libspeech_amrwb.a ../../__lib/release/libspeech_g723.1.a ../../__lib/release/libspeech_g729i.a ../../__lib/release/libspeech_g729fp.a ../../__lib/release/libspeech_vad.a ../../__lib/release/libspeech_alc.a ../../__lib/release/libspeech_nr.a -Xlinker -Bstatic -lippcore -lipps -lippsc -Xlinker -Bdynamic -Xlinker --end-group -lsvml -limf -lirc -lpthread&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 08:12:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987431#M21916</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2013-11-21T08:12:33Z</dc:date>
    </item>
    <item>
      <title>Thank you very much, Sergey</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987432#M21917</link>
      <description>&lt;P&gt;Thank you very much, Sergey and Ying!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 14:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987432#M21917</guid>
      <dc:creator>Mark_H_9</dc:creator>
      <dc:date>2013-11-21T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Hi Ying</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987433#M21918</link>
      <description>&lt;P&gt;Hi Ying&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I know how to link now.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 14:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987433#M21918</guid>
      <dc:creator>Mark_H_9</dc:creator>
      <dc:date>2013-11-21T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Hi Mark,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987434#M21919</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;

&lt;P&gt;It can be a workaround. There should be no object files with the same names, so this extract/combine operation should be safe.&lt;/P&gt;

&lt;P&gt;Otherwise, you need to experiment with command line to linker "g++ -static -o ...", specifying the required libraries with "-l" option.&lt;BR /&gt;
	BTW, there's something wrong with the linker command line. It&amp;nbsp;must&amp;nbsp;be&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;g++ -static -o main main.o Packets_Processing.o codec.o -L. &lt;STRONG&gt;-l&lt;/STRONG&gt;$libspeech -L $ippdir $IPPLIB&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;i.e. "-l" (lower L) before $libspeech. Or, add "-l" to export command.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Regards,&lt;BR /&gt;
	Sergey&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2013 04:30:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987434#M21919</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-11-22T04:30:11Z</dc:date>
    </item>
    <item>
      <title>Hi Sergey</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987435#M21920</link>
      <description>&lt;P&gt;Hi Sergey&lt;/P&gt;

&lt;P&gt;-L. followed with dir + filename ==== -L dir -l library-name&lt;/P&gt;

&lt;P&gt;It at least works for g++.&lt;/P&gt;

&lt;P&gt;Finally, I got my link working!&lt;/P&gt;

&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2013 08:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-8-legacy-code-sample-link-issue/m-p/987435#M21920</guid>
      <dc:creator>Mark_H_9</dc:creator>
      <dc:date>2013-11-22T08:56:00Z</dc:date>
    </item>
  </channel>
</rss>

