<?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 Compiling ipp_bzip2 statically? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778721#M1349</link>
    <description>Hello, I am trying to compile all of the code samples for IPP statically and am having some trouble with ipp_bzip2. I have LIBRARY_PATH, LD_LIBRARY_PATH, and IPPROOT exported correctly. I have also exported LINKAGE=static and LINKFLAGS=-static so that the executable will be created using static libraries. &lt;BR /&gt;&lt;BR /&gt;When I run ./build32.sh gcc4 I get the following errors:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `decode_block':
ipp_bzlib.c:(.text+0x216): undefined reference to `ippsDecodeZ1Z2_BZ2_16u8u'
ipp_bzlib.c:(.text+0x23f): undefined reference to `ippsMTFInit_8u'
ipp_bzlib.c:(.text+0x260): undefined reference to `ippsMTFInv_8u'
ipp_bzlib.c:(.text+0x288): undefined reference to `ippsBWTInv_8u'
ipp_bzlib.c:(.text+0x2ac): undefined reference to `ippsExpandDictionary_8u_I'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L43':
ipp_bzlib.c:(.text+0x40f): undefined reference to `ippsDecodeHuff_BZ2_8u16u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L42':
ipp_bzlib.c:(.text+0x48a): undefined reference to `ippsUnpackHuffContext_BZ2_8u16u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L46':
ipp_bzlib.c:(.text+0x54c): undefined reference to `ippsZero_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L41':
ipp_bzlib.c:(.text+0x67b): undefined reference to `ippsDecodeHuffInit_BZ2_8u16u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L34':
ipp_bzlib.c:(.text+0x9c9): undefined reference to `ippsBWTInvGetSize_8u'
ipp_bzlib.c:(.text+0x9e0): undefined reference to `ippsDecodeHuffGetSize_BZ2_8u16u'
ipp_bzlib.c:(.text+0x9ff): undefined reference to `ippsMTFGetSize_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L33':
ipp_bzlib.c:(.text+0xf25): undefined reference to `ippsCRC32_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `default_bzfree':
ipp_bzlib.c:(.text+0x1599): undefined reference to `ippsFree'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `default_bzalloc':
ipp_bzlib.c:(.text+0x15cd): undefined reference to `ippsMalloc_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `copy_to_int_e_buf':
ipp_bzlib.c:(.text+0x1649): undefined reference to `ippsEncodeRLE_BZ2_8u'
ipp_bzlib.c:(.text+0x169c): undefined reference to `ippsCRC32_BZ2_8u'
ipp_bzlib.c:(.text+0x16e8): undefined reference to `ippsEncodeRLEFlush_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `copy_from_int_e_buf':
ipp_bzlib.c:(.text+0x176f): undefined reference to `ippsCopy_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `encode_block':
ipp_bzlib.c:(.text+0x191a): undefined reference to `ippsRLEGetInUseTable_8u'
ipp_bzlib.c:(.text+0x194e): undefined reference to `ippsReduceDictionary_8u_I'
ipp_bzlib.c:(.text+0x1b30): undefined reference to `ippsBWTFwd_8u'
ipp_bzlib.c:(.text+0x1de3): undefined reference to `ippsMTFInit_8u'
ipp_bzlib.c:(.text+0x1e20): undefined reference to `ippsMTFFwd_8u'
ipp_bzlib.c:(.text+0x1eaa): undefined reference to `ippsEncodeZ1Z2_BZ2_8u16u'
ipp_bzlib.c:(.text+0x1f01): undefined reference to `ippsCopy_8u'
ipp_bzlib.c:(.text+0x1fb1): undefined reference to `ippsEncodeHuffInit_BZ2_16u8u'
ipp_bzlib.c:(.text+0x2013): undefined reference to `ippsPackHuffContext_BZ2_16u8u'
ipp_bzlib.c:(.text+0x2092): undefined reference to `ippsEncodeHuff_BZ2_16u8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `encode_mt':
ipp_bzlib.c:(.text+0x2175): undefined reference to `ippsCopy_1u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `init_e_block_state':
ipp_bzlib.c:(.text+0x245c): undefined reference to `ippsEncodeRLEInit_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `encode_flush_finish':
ipp_bzlib.c:(.text+0x2518): undefined reference to `ippsEncodeRLEFlush_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `BZ2_bzCompressInit':
ipp_bzlib.c:(.text+0x27b5): undefined reference to `ippsBWTFwdGetSize_8u'
ipp_bzlib.c:(.text+0x27eb): undefined reference to `ippsEncodeHuffGetSize_BZ2_16u8u'
ipp_bzlib.c:(.text+0x280c): undefined reference to `ippsMTFGetSize_8u'
ipp_bzlib.c:(.text+0x282a): undefined reference to `ippsRLEGetSize_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_static.o): In function `global constructors keyed to ipp_static.cpp':
ipp_static.cpp:(.text+0x23): undefined reference to `ippStaticInit'[/bash]&lt;/PRE&gt; &lt;BR /&gt;Clearly it seems that I'm missing some sort of library, but I'm not sure which. Can anyone help me with this?</description>
    <pubDate>Fri, 16 Jul 2010 09:31:15 GMT</pubDate>
    <dc:creator>ippstatic</dc:creator>
    <dc:date>2010-07-16T09:31:15Z</dc:date>
    <item>
      <title>Compiling ipp_bzip2 statically?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778721#M1349</link>
      <description>Hello, I am trying to compile all of the code samples for IPP statically and am having some trouble with ipp_bzip2. I have LIBRARY_PATH, LD_LIBRARY_PATH, and IPPROOT exported correctly. I have also exported LINKAGE=static and LINKFLAGS=-static so that the executable will be created using static libraries. &lt;BR /&gt;&lt;BR /&gt;When I run ./build32.sh gcc4 I get the following errors:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `decode_block':
ipp_bzlib.c:(.text+0x216): undefined reference to `ippsDecodeZ1Z2_BZ2_16u8u'
ipp_bzlib.c:(.text+0x23f): undefined reference to `ippsMTFInit_8u'
ipp_bzlib.c:(.text+0x260): undefined reference to `ippsMTFInv_8u'
ipp_bzlib.c:(.text+0x288): undefined reference to `ippsBWTInv_8u'
ipp_bzlib.c:(.text+0x2ac): undefined reference to `ippsExpandDictionary_8u_I'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L43':
ipp_bzlib.c:(.text+0x40f): undefined reference to `ippsDecodeHuff_BZ2_8u16u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L42':
ipp_bzlib.c:(.text+0x48a): undefined reference to `ippsUnpackHuffContext_BZ2_8u16u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L46':
ipp_bzlib.c:(.text+0x54c): undefined reference to `ippsZero_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L41':
ipp_bzlib.c:(.text+0x67b): undefined reference to `ippsDecodeHuffInit_BZ2_8u16u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L34':
ipp_bzlib.c:(.text+0x9c9): undefined reference to `ippsBWTInvGetSize_8u'
ipp_bzlib.c:(.text+0x9e0): undefined reference to `ippsDecodeHuffGetSize_BZ2_8u16u'
ipp_bzlib.c:(.text+0x9ff): undefined reference to `ippsMTFGetSize_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `.L33':
ipp_bzlib.c:(.text+0xf25): undefined reference to `ippsCRC32_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `default_bzfree':
ipp_bzlib.c:(.text+0x1599): undefined reference to `ippsFree'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `default_bzalloc':
ipp_bzlib.c:(.text+0x15cd): undefined reference to `ippsMalloc_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `copy_to_int_e_buf':
ipp_bzlib.c:(.text+0x1649): undefined reference to `ippsEncodeRLE_BZ2_8u'
ipp_bzlib.c:(.text+0x169c): undefined reference to `ippsCRC32_BZ2_8u'
ipp_bzlib.c:(.text+0x16e8): undefined reference to `ippsEncodeRLEFlush_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `copy_from_int_e_buf':
ipp_bzlib.c:(.text+0x176f): undefined reference to `ippsCopy_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `encode_block':
ipp_bzlib.c:(.text+0x191a): undefined reference to `ippsRLEGetInUseTable_8u'
ipp_bzlib.c:(.text+0x194e): undefined reference to `ippsReduceDictionary_8u_I'
ipp_bzlib.c:(.text+0x1b30): undefined reference to `ippsBWTFwd_8u'
ipp_bzlib.c:(.text+0x1de3): undefined reference to `ippsMTFInit_8u'
ipp_bzlib.c:(.text+0x1e20): undefined reference to `ippsMTFFwd_8u'
ipp_bzlib.c:(.text+0x1eaa): undefined reference to `ippsEncodeZ1Z2_BZ2_8u16u'
ipp_bzlib.c:(.text+0x1f01): undefined reference to `ippsCopy_8u'
ipp_bzlib.c:(.text+0x1fb1): undefined reference to `ippsEncodeHuffInit_BZ2_16u8u'
ipp_bzlib.c:(.text+0x2013): undefined reference to `ippsPackHuffContext_BZ2_16u8u'
ipp_bzlib.c:(.text+0x2092): undefined reference to `ippsEncodeHuff_BZ2_16u8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `encode_mt':
ipp_bzlib.c:(.text+0x2175): undefined reference to `ippsCopy_1u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `init_e_block_state':
ipp_bzlib.c:(.text+0x245c): undefined reference to `ippsEncodeRLEInit_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `encode_flush_finish':
ipp_bzlib.c:(.text+0x2518): undefined reference to `ippsEncodeRLEFlush_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_bzlib.o): In function `BZ2_bzCompressInit':
ipp_bzlib.c:(.text+0x27b5): undefined reference to `ippsBWTFwdGetSize_8u'
ipp_bzlib.c:(.text+0x27eb): undefined reference to `ippsEncodeHuffGetSize_BZ2_16u8u'
ipp_bzlib.c:(.text+0x280c): undefined reference to `ippsMTFGetSize_8u'
ipp_bzlib.c:(.text+0x282a): undefined reference to `ippsRLEGetSize_BZ2_8u'
./bin/linux32_gcc4/libipp_bz2.a(ipp_static.o): In function `global constructors keyed to ipp_static.cpp':
ipp_static.cpp:(.text+0x23): undefined reference to `ippStaticInit'[/bash]&lt;/PRE&gt; &lt;BR /&gt;Clearly it seems that I'm missing some sort of library, but I'm not sure which. Can anyone help me with this?</description>
      <pubDate>Fri, 16 Jul 2010 09:31:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778721#M1349</guid>
      <dc:creator>ippstatic</dc:creator>
      <dc:date>2010-07-16T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Compiling ipp_bzip2 statically?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778722#M1350</link>
      <description>It looks like the data compression library is not getting included in the link line. I have not had time to inspect the makefile, but perhaps the list of library files is not being defined properly for a static link ???</description>
      <pubDate>Fri, 16 Jul 2010 22:22:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778722#M1350</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-07-16T22:22:15Z</dc:date>
    </item>
    <item>
      <title>Compiling ipp_bzip2 statically?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778723#M1351</link>
      <description>Crisian,&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;first of all - set up your build environment by creating an environment variable named IPPROOT that points to the root directory of your Intel IPP installation. L&lt;SPAN style="font-size: 10.8333px;"&gt;ooking at the compile time errors - compiler doesn't find signal processing functions ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;hence, the second steps - please check ipps ( signal processing ) lib in your linking line.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;--Gennady&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Jul 2010 05:18:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778723#M1351</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-07-19T05:18:59Z</dc:date>
    </item>
    <item>
      <title>Compiling ipp_bzip2 statically?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778724#M1352</link>
      <description>Gennady,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply. When I first tried to compile ipp_bzip2 statically, I set IPPROOT to point to /opt/intel/ipp/6.1.2.051/ia32, which I believe is the correct IPP root installation directory. Also, my linking line is:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]/usr/bin/g++ -o bin/linux32_gcc4/ipp_bzip2 _obj/linux32_gcc4/bzip2.o -Wall -g -O2 -fPIC -fopenmp -L.  -L./bin/linux32_gcc4 -L/opt/intel/ipp/6.1.2.051/ia32/lib -lippdcemerged -lippdcmerged -lippsemerged  -lippsmerged -lippcore -lipp_bz2 -L/opt/intel/ipp/6.1.2.051/ia32/sharedlib -liomp5 -lpthread -lstdc++&lt;BR /&gt;[/bash]&lt;/PRE&gt; &lt;BR /&gt;This seems to contain all the necessary ipps libraries listed in the Makefile. Is there anything else I could be missing?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Christian&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;edit2: I finally figured it out. I changed my link line from:&lt;BR /&gt;&lt;BR /&gt;&lt;OL class="dp-sh" start="1"&gt;&lt;PRE&gt;[bash]   1. /usr/bin/g++ -o bin/linux32_gcc4/ipp_bzip2 _obj/linux32_gcc4/bzip2.o -Wall -g -O2 -fPIC -fopenmp -L.  -L./bin/linux32_gcc4 -L/opt/intel/ipp/6.1.2.051/ia32/lib -lippdcemerged -lippdcmerged -lippsemerged  -lippsmerged -lippcore -lipp_bz2 -L/opt/intel/ipp/6.1.2.051/ia32/sharedlib -liomp5 -lpthread -lstdc++ [/bash]&lt;/PRE&gt; &lt;/OL&gt;To&lt;BR /&gt;&lt;BR /&gt;&lt;OL class="dp-sh" start="1"&gt;&lt;PRE&gt;[bash]   1. /usr/bin/g++ -o bin/linux32_gcc4/ipp_bzip2 _obj/linux32_gcc4/bzip2.o -Wall -g -O2 -fPIC -fopenmp -L.  -L./bin/linux32_gcc4 -lipp_bz2 -L/opt/intel/ipp/6.1.2.051/ia32/lib -lippdcemerged -lippdcmerged -lippsemerged  -lippsmerged -lippcore  -L/opt/intel/ipp/6.1.2.051/ia32/sharedlib -liomp5 -lpthread -lstdc++ [/bash]&lt;/PRE&gt; &lt;/OL&gt;Apparantly the Makefile link line was causing the compiler to look for -lipp_bz2 in the wrong directory. Thanks for the help!&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2010 08:56:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Compiling-ipp-bzip2-statically/m-p/778724#M1352</guid>
      <dc:creator>ippstatic</dc:creator>
      <dc:date>2010-07-19T08:56:29Z</dc:date>
    </item>
  </channel>
</rss>

