<?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 Pierre, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918271#M12784</link>
    <description>&lt;P&gt;Hi Pierre,&lt;/P&gt;

&lt;P&gt;If you prefer to use the dynamc library&amp;nbsp;(dylib)&amp;nbsp; you may try to&amp;nbsp;edit&amp;nbsp;system environment setting file , for&amp;nbsp;example. &amp;nbsp;&lt;A href="http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x"&gt;&lt;U&gt;&lt;FONT color="#000080"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x" target="_blank"&gt;http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x&lt;/A&gt;,&amp;nbsp; Thus you can launch your exe at any time.&lt;/P&gt;

&lt;P&gt;Or use static library, like libmkl_core.a, then you don't need to set the run-time environment variable DYLD_LIBRARY_PATH each times.&lt;/P&gt;

&lt;P&gt;When static library link, you&amp;nbsp;need use full path and library name. ( it is not correct syntax,&amp;nbsp;-L -libmkl_core.a &amp;nbsp;) &lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2013 02:34:23 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2013-11-27T02:34:23Z</dc:date>
    <item>
      <title>dyld: Library not loaded: libmkl_sequential.dylib</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918268#M12781</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;This topic is a follow up on :&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/topic/494329" target="_blank"&gt;http://software.intel.com/en-us/forums/topic/494329&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;that I have opened myself and only partially solved.&lt;/P&gt;

&lt;P&gt;Indeed :&lt;/P&gt;

&lt;P&gt;Everything I wrote there works at least when I run the executable "from XCODE". (That is when i do a command+R in the xcode project.)&lt;/P&gt;

&lt;P&gt;When I find the directory the executable console app is built in, and double click on it there, I receive this message :&lt;/P&gt;

&lt;P&gt;Last login: Sun Nov 24 17:05:19 on ttys002&lt;BR /&gt;
	MacBook-Pro-de-MisesEnForce:~ MisesEnForce$ /Users/MisesEnForce/Library/Developer/Xcode/DerivedData/THECONSOLEAPPLICATION-hknajgycvjjcotdtkeeyxbzmtfty/Build/Products/Debug/THECONSOLEAPPLICATION ; exit;&lt;BR /&gt;
	dyld: Library not loaded: libmkl_sequential.dylib&lt;BR /&gt;
	&amp;nbsp; Referenced from: /Users/MisesEnForce/Library/Developer/Xcode/DerivedData/THECONSOLEAPPLICATION-hknajgycvjjcotdtkeeyxbzmtfty/Build/Products/Debug/THECONSOLEAPPLICATION&lt;BR /&gt;
	&amp;nbsp; Reason: image not found&lt;BR /&gt;
	Trace/BPT trap: 5&lt;BR /&gt;
	logout&lt;/P&gt;

&lt;P&gt;[Process completed]&lt;/P&gt;

&lt;P&gt;Any idea is welcome&lt;/P&gt;

&lt;P&gt;Thx in advance,&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;

&lt;P&gt;Pierre&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2013 16:29:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918268#M12781</guid>
      <dc:creator>Pierre_L_4</dc:creator>
      <dc:date>2013-11-24T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Hi Pierre,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918269#M12782</link>
      <description>&lt;P&gt;Hi Pierre,&lt;/P&gt;

&lt;P&gt;The key problem is that&amp;nbsp;the application requires environment path&amp;nbsp;DYLD_LIBRARAY_PATH.&amp;nbsp;&amp;nbsp; You do the setting in Xcode environment, but not in double click.&amp;nbsp;&amp;nbsp;that is why&amp;nbsp;you can run it from xcode, but&amp;nbsp;can't double click the application directly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Generally, under command windows,&amp;nbsp;please source&amp;nbsp;intel compiler&amp;nbsp;vars.sh or export DYLD_LIBRARY_PATH=/opt/intel/mkl/xxx first, then go to your application's directory, start it by ./yourapp.exe.&lt;/P&gt;

&lt;P&gt;The below article is out of date, but note 1 and note 2&amp;nbsp;should be&amp;nbsp;helpful&amp;nbsp;on&amp;nbsp;your problem and&amp;nbsp;494329 ( libxxx.&amp;nbsp;a need&amp;nbsp;the entire path)&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode"&gt;&lt;U&gt;&lt;FONT color="#000080"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 03:02:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918269#M12782</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2013-11-26T03:02:19Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918270#M12783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Ying,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;First thx a lot because&amp;nbsp;doing :&lt;/P&gt;

&lt;P&gt;export DYLD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.1.103/compiler/lib:/opt/intel/composer_xe_2013_sp1.1.103/mkl/lib&lt;/P&gt;

&lt;P&gt;before doing&lt;/P&gt;

&lt;P&gt;./TheExecutable&lt;/P&gt;

&lt;P&gt;worked indeed, but... I find it a bit unelegant : I don't want to force the users of my executable doing that export everytime then want to run the executable for a couple of time etc... Is there a way to "pack" that&lt;/P&gt;

&lt;P&gt;export&amp;nbsp;DYLD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.1.103/compiler/lib:/opt/intel/composer_xe_2013_sp1.1.103/mkl/lib&lt;/P&gt;

&lt;P&gt;into the executable, so that it could be done at runtime ? (***) (By the way, if I want to create a dylib linking to the mkl, I think that it must be mandatory to be able to "pack" that export command into the dylib somehow, isn't it ?)&lt;/P&gt;

&lt;P&gt;By the way, I must admit that I don't really understand notes 1 &amp;amp; 2 of the link&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;you have pointed me to. Are these notes solution to my question (***) ?&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;

&lt;P&gt;Pierre&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 18:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918270#M12783</guid>
      <dc:creator>Pierre_L_4</dc:creator>
      <dc:date>2013-11-26T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Hi Pierre,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918271#M12784</link>
      <description>&lt;P&gt;Hi Pierre,&lt;/P&gt;

&lt;P&gt;If you prefer to use the dynamc library&amp;nbsp;(dylib)&amp;nbsp; you may try to&amp;nbsp;edit&amp;nbsp;system environment setting file , for&amp;nbsp;example. &amp;nbsp;&lt;A href="http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x"&gt;&lt;U&gt;&lt;FONT color="#000080"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x" target="_blank"&gt;http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x&lt;/A&gt;,&amp;nbsp; Thus you can launch your exe at any time.&lt;/P&gt;

&lt;P&gt;Or use static library, like libmkl_core.a, then you don't need to set the run-time environment variable DYLD_LIBRARY_PATH each times.&lt;/P&gt;

&lt;P&gt;When static library link, you&amp;nbsp;need use full path and library name. ( it is not correct syntax,&amp;nbsp;-L -libmkl_core.a &amp;nbsp;) &lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 02:34:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-libmkl-sequential-dylib/m-p/918271#M12784</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2013-11-27T02:34:23Z</dc:date>
    </item>
  </channel>
</rss>

