<?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 Quote:Jing X. (Intel) wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094749#M23473</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Jing X. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Could you store the following 3 when compiling OpenCV against MKL, and then share&amp;nbsp;with us?&lt;/P&gt;

&lt;P&gt;1. history of commands, step-by-step.&lt;/P&gt;

&lt;P&gt;2. environment variables (before execution of cmake). They could be exported to file with the following command on Linux: env &amp;gt; filename.&lt;/P&gt;

&lt;P&gt;3. cmake history. They could be redirected to file with the following command on Linux: cmake ......... 2&amp;gt;&amp;amp;1 | tee filename.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Jing,&lt;/P&gt;

&lt;P&gt;Here's what I did:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Installed MKL using the instructions here: &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-113-install-guide" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-113-install-guide&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;Added the following to (a new) file /etc/ld.so.conf.d/intel_mkl.conf:&amp;nbsp;
		&lt;P&gt;/opt/intel/lib/intel64&lt;BR /&gt;
			/opt/intel/mkl/lib/intel64&lt;/P&gt;
	&lt;/LI&gt;
	&lt;LI&gt;Added the following to my .zshrc file:&lt;BR /&gt;
		source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/LI&gt;
	&lt;LI&gt;Clone the OpenCL repository at &lt;A class="Hyperlink SCX205537669" href="https://github.com/opencv/opencv_contrib.git" rel="noreferrer" target="_blank"&gt;&lt;SPAN class="TextRun SCX205537669" style="background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX205537669" style="background-color: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://github.com/opencv/opencv.git" target="_blank"&gt;https://github.com/opencv/opencv.git&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;Clone the OpenCL extras repository at &lt;A class="Hyperlink SCX205537669" href="https://github.com/opencv/opencv_contrib.git" rel="noreferrer" target="_blank"&gt;&lt;SPAN class="TextRun SCX205537669" style="background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX205537669" style="background-color: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://github.com/opencv/opencv_contrib.git" target="_blank"&gt;https://github.com/opencv/opencv_contrib.git&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;
		&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 11pt; font-family: Calibri,sans-serif; line-height: 18px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;Run CMAKE from within a freshly created 'release' directory within the cloned &lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opencv&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; repository:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;cd &lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opencv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;mkdir&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; release&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;cd release&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;cmake&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; -D CMAKE_BUILD_TYPE=RELEASE \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D CMAKE_INSTALL_PREFIX=/&lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opt/opencv&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_CUDA=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D ENABLE_FAST_MATH=1 \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D CUDA_FAST_MATH=1 \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_CUBLAS=1 ..&amp;nbsp; \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D INSTALL_PYTHON_EXAMPLES=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_OPENCV_EXTRA_MODULES_PATH=../../&lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opencv_contrib&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;/modules \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_TBB=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D BUILD_NEW_PYTHON_SUPPORT=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_V4L=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D INSTALL_C_EXAMPLES=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D BUILD_EXAMPLES=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_QT=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_OPENGL=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;
		&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .. 2&amp;gt;&amp;amp;1 | tee build_output.log&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;make -j8 &amp;gt; &amp;gt;(tee make_output.log) 2&amp;gt; &amp;gt;(tee make_errors.log &amp;gt;&amp;amp;2)&lt;/LI&gt;
	&lt;LI&gt;ERROR&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I have attached files listing my environment variables, cmake output, build output and build errors to this post. I hope they help you help me figure out what's going on!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 04:48:58 GMT</pubDate>
    <dc:creator>Sresht__Vishnu</dc:creator>
    <dc:date>2017-02-17T04:48:58Z</dc:date>
    <item>
      <title>Undefined references to mkl objects</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094746#M23470</link>
      <description>&lt;P&gt;I'm attempting to compile OpenCV with Intel MKL 2017.0 on Ubuntu 16.04.1 with , but I keep running up against the following errors at compile time:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_spblas_lp64_ccsr0ttluc__svout_seq'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_zlantp'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_spblas_sdia1ttluf__mvout_par'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_spblas_lp64_ccsr1ntuuf__mvout_par'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_blas_xdgemv'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_spblas_ccsr1ntuuf__smout_par'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_sparse_d_csr_ng_n_spmmd_ker_i4'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_spblas_ccoo0nhluc__mvout_par'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_sequential.so: undefined reference to `mkl_spblas_lp64_dcsr1ttluf__svout_seq'
/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_dgelsd'&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have installed Intel MKL and I have the following in my zsh startup script:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/PRE&gt;

&lt;P&gt;I also have the following in&amp;nbsp;/etc/ld.so.conf.d/intel_mkl.conf :&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/lib/intel64
/opt/intel/mkl/lib/intel64&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;CMake manages to find MKL and reports:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;-- Found MKL 2017.0.1 at: /opt/intel/mkl
-- LAPACK(MKL): LAPACK_LIBRARIES: /opt/intel/mkl/lib/intel64/libmkl_core.so;/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_sequential.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_sequential.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_sequential.so;-lpthread;-lm;-ldl
-- LAPACK(MKL): Support is enabled.
&lt;/PRE&gt;

&lt;P&gt;CMake also lists:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;--     Use Intel VA-API/OpenCL:     NO
--     Use Lapack:                  YES (/opt/intel/mkl/lib/intel64/libmkl_core.so /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/mkl/lib/intel64/libmkl_sequential.so /opt/intel/mkl/lib/intel64/libmkl_core.so /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/mkl/lib/intel64/libmkl_sequential.so /opt/intel/mkl/lib/intel64/libmkl_core.so /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/mkl/lib/intel64/libmkl_sequential.so -lpthread -lm -ldl)
--     Use Eigen:                   NO
--     Use Cuda:                    YES (ver 8.0)
--     Use OpenCL:                  YES
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What am I missing? Are there any additional compile flags I should be specifying?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 17:10:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094746#M23470</guid>
      <dc:creator>Sresht__Vishnu</dc:creator>
      <dc:date>2017-02-12T17:10:30Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094747#M23471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Could you store the following 3 when &lt;SPAN style="font-size: 13.008px;"&gt;compiling OpenCV against MKL, and then share&amp;nbsp;with us&lt;/SPAN&gt;?&lt;/P&gt;

&lt;P&gt;1. history of commands, step-by-step.&lt;/P&gt;

&lt;P&gt;2. environment variables (before execution of cmake). They could be exported to file with the following command on Linux: env &amp;gt; filename.&lt;/P&gt;

&lt;P&gt;3. cmake history. They could be redirected to file with the following command on Linux: cmake ......... 2&amp;gt;&amp;amp;1 | tee filename.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 06:21:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094747#M23471</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-02-13T06:21:33Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094748#M23472</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have the same problem, I just workaround by add flag "-D WITH_LAPACK=OFF".&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 07:32:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094748#M23472</guid>
      <dc:creator>kobe_y_</dc:creator>
      <dc:date>2017-02-14T07:32:21Z</dc:date>
    </item>
    <item>
      <title>Quote:Jing X. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094749#M23473</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Jing X. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Could you store the following 3 when compiling OpenCV against MKL, and then share&amp;nbsp;with us?&lt;/P&gt;

&lt;P&gt;1. history of commands, step-by-step.&lt;/P&gt;

&lt;P&gt;2. environment variables (before execution of cmake). They could be exported to file with the following command on Linux: env &amp;gt; filename.&lt;/P&gt;

&lt;P&gt;3. cmake history. They could be redirected to file with the following command on Linux: cmake ......... 2&amp;gt;&amp;amp;1 | tee filename.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Jing,&lt;/P&gt;

&lt;P&gt;Here's what I did:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Installed MKL using the instructions here: &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-113-install-guide" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-113-install-guide&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;Added the following to (a new) file /etc/ld.so.conf.d/intel_mkl.conf:&amp;nbsp;
		&lt;P&gt;/opt/intel/lib/intel64&lt;BR /&gt;
			/opt/intel/mkl/lib/intel64&lt;/P&gt;
	&lt;/LI&gt;
	&lt;LI&gt;Added the following to my .zshrc file:&lt;BR /&gt;
		source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/LI&gt;
	&lt;LI&gt;Clone the OpenCL repository at &lt;A class="Hyperlink SCX205537669" href="https://github.com/opencv/opencv_contrib.git" rel="noreferrer" target="_blank"&gt;&lt;SPAN class="TextRun SCX205537669" style="background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX205537669" style="background-color: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://github.com/opencv/opencv.git" target="_blank"&gt;https://github.com/opencv/opencv.git&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;Clone the OpenCL extras repository at &lt;A class="Hyperlink SCX205537669" href="https://github.com/opencv/opencv_contrib.git" rel="noreferrer" target="_blank"&gt;&lt;SPAN class="TextRun SCX205537669" style="background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX205537669" style="background-color: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://github.com/opencv/opencv_contrib.git" target="_blank"&gt;https://github.com/opencv/opencv_contrib.git&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;
		&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 11pt; font-family: Calibri,sans-serif; line-height: 18px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;Run CMAKE from within a freshly created 'release' directory within the cloned &lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opencv&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; repository:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;cd &lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opencv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;mkdir&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; release&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;cd release&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;cmake&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; -D CMAKE_BUILD_TYPE=RELEASE \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D CMAKE_INSTALL_PREFIX=/&lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opt/opencv&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt; \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_CUDA=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D ENABLE_FAST_MATH=1 \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D CUDA_FAST_MATH=1 \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_CUBLAS=1 ..&amp;nbsp; \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D INSTALL_PYTHON_EXAMPLES=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_OPENCV_EXTRA_MODULES_PATH=../../&lt;/SPAN&gt;&lt;SPAN class="SpellingError SCX212959418" style="background-color: inherit;"&gt;opencv_contrib&lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;/modules \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_TBB=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D BUILD_NEW_PYTHON_SUPPORT=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_V4L=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D INSTALL_C_EXAMPLES=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D BUILD_EXAMPLES=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_QT=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;

		&lt;DIV class="OutlineElement Ltr SCX212959418" style="margin-left: 0px; direction: ltr;"&gt;
			&lt;P class="Paragraph SCX212959418" style="font-weight: normal; font-style: normal; vertical-align: baseline; background-color: transparent; color: windowtext; text-align: left;" lang="EN-IN"&gt;&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D WITH_OPENGL=ON \&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCX212959418" style="font-size: 10pt; line-height: 16px; font-family: Consolas,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
		&lt;/DIV&gt;
		&lt;SPAN class="TextRun SCX212959418" style="color: windowtext; background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: Consolas,monospace; line-height: 16px;" lang="EN-IN"&gt;&lt;SPAN class="NormalTextRun SCX212959418" style="background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .. 2&amp;gt;&amp;amp;1 | tee build_output.log&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;make -j8 &amp;gt; &amp;gt;(tee make_output.log) 2&amp;gt; &amp;gt;(tee make_errors.log &amp;gt;&amp;amp;2)&lt;/LI&gt;
	&lt;LI&gt;ERROR&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I have attached files listing my environment variables, cmake output, build output and build errors to this post. I hope they help you help me figure out what's going on!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 04:48:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094749#M23473</guid>
      <dc:creator>Sresht__Vishnu</dc:creator>
      <dc:date>2017-02-17T04:48:58Z</dc:date>
    </item>
    <item>
      <title>Quote:kobe yu wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094750#M23474</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;kobe yu wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have the same problem, I just workaround by add flag "-D WITH_LAPACK=OFF".&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Kobe,&lt;/P&gt;

&lt;P&gt;That's an excellent idea and it totally works! However, I would still like to know why I'm unable to link Intel's lapack to OpenCV and I'm hoping you, or someone else, can help me figure this out.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 05:24:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094750#M23474</guid>
      <dc:creator>Sresht__Vishnu</dc:creator>
      <dc:date>2017-02-17T05:24:48Z</dc:date>
    </item>
    <item>
      <title>I found a fix that allows you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094751#M23475</link>
      <description>&lt;P&gt;I found a fix that allows you to compile OpenCV using MKL.&lt;/P&gt;

&lt;P&gt;All of those undefined references were references to objects in libmkl_core.so. Even though this library is specified in the link line, gcc on Ubuntu 16.04 doesn't look inside it when searching for these items.&lt;/P&gt;

&lt;P&gt;The fix was to specify -Wl,--no-as-needed in the link line before the Intel MKL libraries. This can be accomplished in a CMAKE-based project by setting the variable CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=-Wl,--no-as-needed in CMakeCache.txt&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 04:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094751#M23475</guid>
      <dc:creator>Sresht__Vishnu</dc:creator>
      <dc:date>2017-02-20T04:00:00Z</dc:date>
    </item>
    <item>
      <title>Great to hear that.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094752#M23476</link>
      <description>&lt;P&gt;Great to hear that.&lt;/P&gt;

&lt;P&gt;Thank you for sharing the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:08:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094752#M23476</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-02-20T05:08:12Z</dc:date>
    </item>
    <item>
      <title>Hi Vishnu,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094753#M23477</link>
      <description>&lt;P&gt;Hi Vishnu,&lt;/P&gt;

&lt;P&gt;thanks much for the sharing.&amp;nbsp; We can't reproduce the problem under Linux.&amp;nbsp; But the issue do related to the system and mkl library.&lt;/P&gt;

&lt;P&gt;all unreferenced symbols like mkl_lapack_zlantp&amp;nbsp; are defined in libmkl_core.so&lt;/P&gt;

&lt;P&gt;[yhu5_new@hsw-ep01 cmake]$ nm&amp;nbsp; /opt/intel/mkl/lib/intel64/libmkl_core.so |grep mkl_lapack_zlantp&lt;BR /&gt;
	0000000000a14d20 T mkl_lapack_zlantp&lt;/P&gt;

&lt;P&gt;"libmkl_intel_lp64 libmkl_sequential libmkl_core " are supposed to be used together and here in the link line, the combination were repeated several times, but miss mkl_core at last one.&lt;/P&gt;

&lt;P&gt;opt/intel/mkl/lib/intel64/libmkl_core.so;/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_sequential.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_sequential.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;/&lt;STRONG&gt;opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_sequential.so&lt;/STRONG&gt;;-lpthread;-lm;-ldl&lt;/P&gt;

&lt;P&gt;So It seems there is some problem in FINDLAPACK.cmake processing(&amp;nbsp;OpenCVFindMKL.cmake).&amp;nbsp; the&amp;nbsp;fix is&amp;nbsp; CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=-Wl,--no-as-needed&lt;/P&gt;

&lt;P&gt;or like the article &lt;A href="https://software.intel.com/en-us/articles/symbol-lookup-error-when-linking-intel-mkl-with-gcc-on-ubuntu"&gt;https://software.intel.com/en-us/articles/symbol-lookup-error-when-linking-intel-mkl-with-gcc-on-ubuntu&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;If possible, could you please try Set environment variable &amp;gt;export &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LD_PRELOAD=/path/to/libmkl_core.so and see if it can work around?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:12:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094753#M23477</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-02-20T05:12:00Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094754#M23478</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Thank you for that alternate solution. Yes, setting LD_PRELOAD=/path/to/libmkl_core.so also works. So apparently, there is some issue when it comes to the combination of gcc, mkl, and ubuntu. Fortunately the two workarounds above seem to work.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 02:02:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-references-to-mkl-objects/m-p/1094754#M23478</guid>
      <dc:creator>Sresht__Vishnu</dc:creator>
      <dc:date>2017-02-26T02:02:09Z</dc:date>
    </item>
  </channel>
</rss>

