Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't link Intel Math Kernel Library to Xcode because there is no Intel_MKL.framework folder
    text
    copied!<p>I'm trying to use the Intel <a href="http://software.intel.com/en-us/articles/intel-mkl/" rel="nofollow">Math Kernel Library</a> (MKL) on a 64-bit Mac running Mac OSX 10.6.6 and Xcode 3.2.6. For Macs, Intel MKL is only available by installing the full <a href="http://software.intel.com/en-us/articles/intel-composer-xe/" rel="nofollow">Intel Composer XE 2011</a> C++ compiler. I have done so, and I run the bash scripts </p> <pre><code>/Developer/opt/intel/composer_xe_2011_sp1.6.038/mkl/bin/intel64/mklvars_intel64.sh /Developer/opt/intel/composer_xe_2011_sp1.6.038/link_install.sh </code></pre> <p>to set environmental variables for Composer XE and MKL. I am able to use the compiler to build simple test projects in Xcode.</p> <p>However, I am unable to use the MKL because I cannot link it in Xcode <a href="http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode/" rel="nofollow">as described here</a>. I don't have the MKL framework folder as described in that hyperlink</p> <pre><code>/Library/Frameworks/Intel_MKL.framework/ </code></pre> <p>(To be specific, there is no folder titled Intel_MKL.framework anywhere on my system.) Checking to make sure this folder exists is mentioned in several MKL reference manuals from Intel, but no where do they tell you what to do if it doesn't exist! It seems to be assumed to exist if you've correctly installed MKL, but I have ("Composer XE installation successful") and there's no Intel_MKL.framework.</p> <p>If it matters, the error I get is</p> <pre><code>"_dsyevx", referenced from: jEigenvalues(TNT::Array2D&lt;double&gt;&amp;, TNT::Array1D&lt;double&gt;&amp;)in main.o ld: symbol(s) not found collect2: ld returned 1 exit status </code></pre> <p>which I understand is consistent with not being properly linked.</p> <p>I've spent a great bit of time and effort trying to get help, including the Intel forums, to no avail. I suspect this is a simple problem (I'm just an amateur).</p> <p>Many thanks for any help.</p> <hr> <p>EDIT:</p> <p>At Paul's suggestion, I've re-run the installer, with no change. The only mkl.h file is located in </p> <pre><code>/Developer/opt/intel/composer_xe_2011_sp1.6.038/mkl/include </code></pre> <p>as well as the expected identical copy in the non-Xcode installation directory</p> <pre><code>/opt/intel/composer_xe_2011_sp1.6.038/mkl/include </code></pre> <p>I don't know if this is what I'm supposed to list under "header search path" in Xcode, but I listed it long ago. I've also listed </p> <pre><code>/Developer/opt/intel/composer_xe_2011_sp1.6.038/mkl/lib </code></pre> <p>as the "library search path", and I have added these linker flags based off of my best attempt at reading this <a href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/mklxe/mkl_userguide_win/index.htm" rel="nofollow">2011 guide</a>: </p> <pre><code>-libmkl_intel_lp64.a -libmkl_core.a -libmkl_sequential.a -libmkl_intel_thread.a </code></pre> <p>Nothing has changed, and I get the same error:</p> <pre><code>ld returned 1 exit status </code></pre> <p>Could he problem be with dynamic vs. static linking? I chose static linking (.a endings rather than .dylib) because it seemed simpler, but I have no idea. Changing to dynamic didn't do anything.</p> <p>Is there anyway to get feedback, here? I have no idea what to change based on this error.</p> <hr> <p>EDIT2:</p> <p>I just found an option "Use Intel Math Kernel Library" in the Xcode "Project info" (one of perhaps 100 options) which I had no idea existed. (Where am I supposed to find out about this?) Now things are building, but when I run the executable, I get</p> <pre><code>exit; dyld: Library not loaded: libmkl_intel_lp64.dylib Referenced from: /Users/.../nameofexecutable Reason: image not found Trace/BPT trap logout </code></pre> <p>I've double checked that the library search directory is correct. I also tried switching over static libraries with .a endings, but the error was exactly the same. (Still had .dylib endings.) Does this mean I'm stuck with dynamic? Why? I also defined the variable</p> <pre><code>DYLD_LIBRARY_PATH </code></pre> <p>to be</p> <pre><code>/Developer/opt/intel/composer_xe_2011_sp1.6.038/compiler/lib: /Developer/opt/intel/composer_xe_2011_sp1.6.038/mkl/lib </code></pre> <p>as suggest in the <a href="http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode/" rel="nofollow">old instructions here</a> but nothing changed.</p> <p>Wow, this is horribly difficult.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload