<?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 I'm building my OWN C++ code in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061456#M91</link>
    <description>&lt;P&gt;I'm building my OWN C++ code into python modules, built against intel python libs. &amp;nbsp;This build has to be modified to build with intel python because intel python has libs in non-standard places and doesn't set rpath to find them.&lt;/P&gt;

&lt;P&gt;The 1st place I found this problem was when build the ndarray package from&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/ndarray/ndarray" target="_blank"&gt;https://github.com/ndarray/ndarray&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But I'm sure I'd have this problem building any modules against intel python&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 12:45:31 GMT</pubDate>
    <dc:creator>Becker__Neal</dc:creator>
    <dc:date>2016-05-13T12:45:31Z</dc:date>
    <item>
      <title>set rpath</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061454#M89</link>
      <description>&lt;P&gt;It seems libraries in&lt;/P&gt;

&lt;P&gt;envs/intelpython3/lib&lt;/P&gt;

&lt;P&gt;require intel libs in&lt;/P&gt;

&lt;P&gt;envs/intelpython3/ext/lib&lt;/P&gt;

&lt;P&gt;but do not set rpath to find them.&lt;/P&gt;

&lt;P&gt;Now when I build my library against intel libs, I need to set rpath.&lt;/P&gt;

&lt;P&gt;I recommend that intel libs add rpath to find the libs in ext/libs, so users like me don't need to modify their build scripts.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 12:13:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061454#M89</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-05-13T12:13:01Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061455#M90</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;A&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;ny package/module you run with our python should be able to find the libs. If there is an issue we definitely want to fix it.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Most of the libs we ship do set rpath accordingly. Exceptions are MKL/IPP/DAAL.&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Furthermore, our python executable sets the right rpath.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Could you please give a little more detail how you're using the libs? How did you install the bits?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;frank&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 12:34:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061455#M90</guid>
      <dc:creator>Frank_S_Intel</dc:creator>
      <dc:date>2016-05-13T12:34:20Z</dc:date>
    </item>
    <item>
      <title>I'm building my OWN C++ code</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061456#M91</link>
      <description>&lt;P&gt;I'm building my OWN C++ code into python modules, built against intel python libs. &amp;nbsp;This build has to be modified to build with intel python because intel python has libs in non-standard places and doesn't set rpath to find them.&lt;/P&gt;

&lt;P&gt;The 1st place I found this problem was when build the ndarray package from&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/ndarray/ndarray" target="_blank"&gt;https://github.com/ndarray/ndarray&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But I'm sure I'd have this problem building any modules against intel python&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 12:45:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061456#M91</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-05-13T12:45:31Z</dc:date>
    </item>
    <item>
      <title>I take you issue is at the</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061457#M92</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I take you issue is at the link-stage of your build. Is this right? If so, I don't understand the relation to rpath because it is meant to set the runtime path, not build/link-time path.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;However, when running setup.py with our python for any package build - I agree it should set the library search path for (-L). We'll look into it.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;As a work around, most build systems on Linux respect the environment variables CFLAGS and LDFLAGS. You might want to try setting these to "-L&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;envs/intelpython3/ext/lib" (or whatever your install path is) when building your package.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Can you say which python libraries specifically you are linking against?&lt;/P&gt;

&lt;P&gt;Also, could you say a little how you use the referenced C++ library from/within python?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 13:20:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/set-rpath/m-p/1061457#M92</guid>
      <dc:creator>Frank_S_Intel</dc:creator>
      <dc:date>2016-05-13T13:20:56Z</dc:date>
    </item>
  </channel>
</rss>

