<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>undefined reference to cblas_xxx &#8211; 编码无悔 /  Intent &amp; Focused</title>
	<atom:link href="https://www.codelast.com/tag/undefined-reference-to-cblas_xxx/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codelast.com</link>
	<description>最优化之路</description>
	<lastBuildDate>Mon, 27 Apr 2020 17:52:15 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>[原创] 解决编译ELL的错误：undefined reference to `cblas_xxx&#039;</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3%e7%bc%96%e8%af%91ell%e7%9a%84%e9%94%99%e8%af%af%ef%bc%9aundefined-reference-to-cblas_xxx/</link>
					<comments>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3%e7%bc%96%e8%af%91ell%e7%9a%84%e9%94%99%e8%af%af%ef%bc%9aundefined-reference-to-cblas_xxx/#respond</comments>
		
		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Sun, 16 Jul 2017 16:17:45 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[ELL]]></category>
		<category><![CDATA[undefined reference to cblas_xxx]]></category>
		<category><![CDATA[编译]]></category>
		<guid isPermaLink="false">https://www.codelast.com/?p=9505</guid>

					<description><![CDATA[<p>
OS：Ubuntu 14.04 LTS<br />
在PC上编译<a href="https://github.com/Microsoft/ELL" rel="noopener noreferrer" target="_blank"><span style="background-color: rgb(255, 160, 122);">ELL</span></a>的时候，尽管你可能已经安装了所有ELL文档中要求的软件依赖，可能还是会遇到 <span style="color:#0000ff;">undefined reference to `cblas_xxx&#39;</span> 的错误，如下：</p>
<section class="output_wrapper" id="output_wrapper_id" style="font-size: 16px; color: rgb(62, 62, 62); line-height: 1.6; letter-spacing: 0px; font-family: &#34;Helvetica Neue&#34;, Helvetica, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;">
<pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;">
<code class="python language-python hljs" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;">[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">0</span>%]&#160;Built&#160;target&#160;documentation
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">10</span>%]&#160;Built&#160;target&#160;utilities
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">11</span>%]&#160;Built&#160;target&#160;math
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">14</span>%]&#160;Built&#160;target&#160;data
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">23</span>%]&#160;Built&#160;target&#160;emitters
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">24</span>%]&#160;Built&#160;target&#160;evaluators
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">28</span>%]&#160;Built&#160;target&#160;functions
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">37</span>%]&#160;Built&#160;target&#160;model
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">39</span>%]&#160;Built&#160;target&#160;predictors
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">48</span>%]&#160;Built&#160;target&#160;nodes
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">52</span>%]&#160;Built&#160;target&#160;trainers
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">59</span>%]&#160;Built&#160;target&#160;common
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">60</span>%]&#160;Built&#160;target&#160;testing
[&#160;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">61</span>%]&#160;Linking&#160;CXX&#160;executable&#160;common_test
../math/libmath.a(BlasWrapper.cpp.o):&#160;In&#160;function&#160;ell::math::Blas::Copy(int,&#160;float&#160;const*,&#160;int,&#160;float*,&#160;int)</code></pre>&#8230; <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3%e7%bc%96%e8%af%91ell%e7%9a%84%e9%94%99%e8%af%af%ef%bc%9aundefined-reference-to-cblas_xxx/" class="read-more">Read More </a></section>]]></description>
										<content:encoded><![CDATA[<p>
OS：Ubuntu 14.04 LTS<br />
在PC上编译<a href="https://github.com/Microsoft/ELL" rel="noopener noreferrer" target="_blank"><span style="background-color: rgb(255, 160, 122);">ELL</span></a>的时候，尽管你可能已经安装了所有ELL文档中要求的软件依赖，可能还是会遇到 <span style="color:#0000ff;">undefined reference to `cblas_xxx&#39;</span> 的错误，如下：</p>
<section class="output_wrapper" id="output_wrapper_id" style="font-size: 16px; color: rgb(62, 62, 62); line-height: 1.6; letter-spacing: 0px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;">
<pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;">
<code class="python language-python hljs" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;">[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">0</span>%]&nbsp;Built&nbsp;target&nbsp;documentation
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">10</span>%]&nbsp;Built&nbsp;target&nbsp;utilities
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">11</span>%]&nbsp;Built&nbsp;target&nbsp;math
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">14</span>%]&nbsp;Built&nbsp;target&nbsp;data
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">23</span>%]&nbsp;Built&nbsp;target&nbsp;emitters
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">24</span>%]&nbsp;Built&nbsp;target&nbsp;evaluators
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">28</span>%]&nbsp;Built&nbsp;target&nbsp;functions
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">37</span>%]&nbsp;Built&nbsp;target&nbsp;model
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">39</span>%]&nbsp;Built&nbsp;target&nbsp;predictors
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">48</span>%]&nbsp;Built&nbsp;target&nbsp;nodes
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">52</span>%]&nbsp;Built&nbsp;target&nbsp;trainers
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">59</span>%]&nbsp;Built&nbsp;target&nbsp;common
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">60</span>%]&nbsp;Built&nbsp;target&nbsp;testing
[&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">61</span>%]&nbsp;Linking&nbsp;CXX&nbsp;executable&nbsp;common_test
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Copy(int,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x31):&nbsp;undefined&nbsp;reference&nbsp;tocblas_scopy&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Copy(int,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x69):&nbsp;undefined&nbsp;reference&nbsp;tocblas_dcopy&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Asum(int,&nbsp;float&nbsp;const*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x92):&nbsp;undefined&nbsp;reference&nbsp;tocblas_sasum&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Asum(int,&nbsp;double&nbsp;const*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0xba):&nbsp;undefined&nbsp;reference&nbsp;tocblas_dasum&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Nrm2(int,&nbsp;float&nbsp;const*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0xf0):&nbsp;undefined&nbsp;reference&nbsp;tocblas_snrm2&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Nrm2(int,&nbsp;double&nbsp;const*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x118):&nbsp;undefined&nbsp;reference&nbsp;tocblas_dnrm2&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Scal(int,&nbsp;float,&nbsp;float*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x15b):&nbsp;undefined&nbsp;reference&nbsp;tocblas_sscal&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Scal(int,&nbsp;double,&nbsp;double*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x193):&nbsp;undefined&nbsp;reference&nbsp;tocblas_dscal&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Axpy(int,&nbsp;float,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x1d9):&nbsp;undefined&nbsp;reference&nbsp;tocblas_saxpy&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Axpy(int,&nbsp;double,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x221):&nbsp;undefined&nbsp;reference&nbsp;tocblas_daxpy&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Dot(int,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float&nbsp;const*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x259):&nbsp;undefined&nbsp;reference&nbsp;tocblas_sdot&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Dot(int,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double&nbsp;const*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x290):&nbsp;undefined&nbsp;reference&nbsp;tocblas_ddot&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Gemv(CBLAS_ORDER,&nbsp;CBLAS_TRANSPOSE,&nbsp;int,&nbsp;int,&nbsp;float,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float,&nbsp;float*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x309):&nbsp;undefined&nbsp;reference&nbsp;tocblas_sgemv&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Gemv(CBLAS_ORDER,&nbsp;CBLAS_TRANSPOSE,&nbsp;int,&nbsp;int,&nbsp;double,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double,&nbsp;double*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x37c):&nbsp;undefined&nbsp;reference&nbsp;tocblas_dgemv&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Gemm(CBLAS_ORDER,&nbsp;CBLAS_TRANSPOSE,&nbsp;CBLAS_TRANSPOSE,&nbsp;int,&nbsp;int,&nbsp;int,&nbsp;float,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float&nbsp;const*,&nbsp;int,&nbsp;float,&nbsp;float*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x3f5):&nbsp;undefined&nbsp;reference&nbsp;tocblas_sgemm&#39;</span>
../math/libmath.a(BlasWrapper.cpp.o):&nbsp;In&nbsp;function&nbsp;ell::math::Blas::Gemm(CBLAS_ORDER,&nbsp;CBLAS_TRANSPOSE,&nbsp;CBLAS_TRANSPOSE,&nbsp;int,&nbsp;int,&nbsp;int,&nbsp;double,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double&nbsp;const*,&nbsp;int,&nbsp;double,&nbsp;double*,&nbsp;int)<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&#39;:&nbsp;BlasWrapper.cpp:(.text+0x471):&nbsp;undefined&nbsp;reference&nbsp;tocblas_dgemm&#39;</span>
collect2:&nbsp;error:&nbsp;ld&nbsp;returned&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">1</span>&nbsp;exit&nbsp;status
make[<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">2</span>]:&nbsp;***&nbsp;[libraries/common/common_test]&nbsp;Error&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">1</span>
make[<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">1</span>]:&nbsp;***&nbsp;[libraries/common/CMakeFiles/common_test.dir/all]&nbsp;Error&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">2</span>
make:&nbsp;***&nbsp;[all]&nbsp;Error&nbsp;<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(174, 135, 250); word-wrap: inherit !important; word-break: inherit !important;">2</span></code></pre>
</section>
<div>
<span id="more-9505"></span>	<br />
	这个问题是由于我的Ubuntu 14.04同时安装了<span style="color:#0000ff;">blas</span>和<span style="color:#0000ff;">atlas</span>导致的&mdash;&mdash;我真的不记得我是什么时候安装的atlas了。在这种情况下，从make的前一步，也就是cmake的输出信息中，可以看出一些端倪（所以说在cmake的时候一定要仔细检查）：</p>
<blockquote>
<div>
			-- The C compiler identification is GNU 6.3.0</div>
<div>
			-- The CXX compiler identification is GNU 6.3.0</div>
<div>
			-- Check for working C compiler: /usr/bin/cc</div>
<div>
			-- Check for working C compiler: /usr/bin/cc -- works</div>
<div>
			-- Detecting C compiler ABI info</div>
<div>
			-- Detecting C compiler ABI info - done</div>
<div>
			-- Detecting C compile features</div>
<div>
			-- Detecting C compile features - done</div>
<div>
			-- Check for working CXX compiler: /usr/bin/c++</div>
<div>
			-- Check for working CXX compiler: /usr/bin/c++ -- works</div>
<div>
			-- Detecting CXX compiler ABI info</div>
<div>
			-- Detecting CXX compiler ABI info - done</div>
<div>
			-- Detecting CXX compile features</div>
<div>
			-- Detecting CXX compile features - done</div>
<div>
			-- Looking for pthread.h</div>
<div>
			-- Looking for pthread.h - found</div>
<div>
			-- Looking for pthread_create</div>
<div>
			-- Looking for pthread_create - not found</div>
<div>
			-- Looking for pthread_create in pthreads</div>
<div>
			-- Looking for pthread_create in pthreads - not found</div>
<div>
			-- Looking for pthread_create in pthread</div>
<div>
			-- Looking for pthread_create in pthread - found</div>
<div>
			-- Found Threads: TRUE</div>
<div>
			--&nbsp;<span style="color: rgb(255, 0, 0);">Blas libraries: /usr/lib/libf77blas.so;/usr/lib/libatlas.so</span></div>
<div>
			-- Blas linker flags:</div>
<div>
			-- Blas include directories:</div>
<div>
			-- Using BLAS include path: /usr/include</div>
<div>
			--&nbsp;<span style="color: rgb(255, 0, 0);">Using BLAS library: /usr/lib/libf77blas.so;/usr/lib/libatlas.so</span></div>
<div>
			-- Using BLAS DLLs:</div>
<div>
			-- Found PythonInterp: /home/codelast/.miniconda3/bin/python (found version &quot;3.6.1&quot;)</div>
<div>
			-- Found PythonLibs: /home/codelast/.miniconda3/lib/libpython3.6m.so (found version &quot;3.6.1&quot;)</div>
<div>
			-- Found SWIG: /usr/local/bin/swig (found suitable version &quot;3.0.12&quot;, minimum required is &quot;3.0.12&quot;)</div>
<div>
			-- Creating wrappers for python</div>
<div>
			-- Creating wrappers for javascript</div>
<div>
			-- Creating wrappers for xml</div>
<div>
			-- Using python found at: /home/codelast/.miniconda3/bin/python</div>
<div>
			-- Using python libraries found at: /home/codelast/.miniconda3/lib/libpython3.6m.so</div>
<div>
			-- Creating wrappers for python</div>
<div>
			-- Generated target compiled_vgg16ImageNet_host</div>
<div>
			-- Generated target compiled_vgg16ImageNet_pi3</div>
<div>
			-- Generated target compiled_vgg16ImageNet_pi0</div>
<div>
			-- Generated target compiled_darknetReference_host</div>
<div>
			-- Generated target compiled_darknetReference_pi3</div>
<div>
			-- Generated target compiled_darknetReference_pi0</div>
<div>
			-- Configuring done</div>
<div>
			-- Generating done</div>
<div>
			-- Build files have been written to: /home/codelast/programme/pi/ELL/build</div>
</blockquote>
<div>
		上面标红的那两句，表明atlas library会被当作blas library来用，这就会导致后面的编译错误。<br />
		所以，我查找了一下Ubuntu系统中已经安装的atlas package：</p>
<pre style="margin-top: 0px; margin-bottom: 0px; font-stretch: normal; font-size: 0.9333em; line-height: 1.5em; font-family: Consolas, &quot;Lucida Console&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, &quot;Courier New&quot;, monospace; background: rgb(0, 34, 64); color: rgb(255, 255, 255);">
sudo dpkg -l <span style="color: rgb(255, 157, 0);">|</span> grep atlas</pre>
<div>
			输出如下：</div>
<blockquote>
<div>
				ii &nbsp;libatlas-base-dev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.10.1-4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;amd64 &nbsp; &nbsp; &nbsp; &nbsp;Automatically Tuned Linear Algebra Software, generic static</div>
<div>
				ii &nbsp;libatlas-dev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.10.1-4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Automatically Tuned Linear Algebra Software, C header files</div>
<div>
				ii &nbsp;libatlas3-base &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.10.1-4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;amd64 &nbsp; &nbsp; &nbsp; &nbsp;Automatically Tuned Linear Algebra Software, generic shared</div>
</blockquote></div>
</div>
<p>然后把这3个package都卸载掉：</p>
<pre style="margin-top: 0px; margin-bottom: 0px; font-stretch: normal; font-size: 0.9333em; line-height: 1.5em; font-family: Consolas, &quot;Lucida Console&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, &quot;Courier New&quot;, monospace; background: rgb(0, 34, 64); color: rgb(255, 255, 255);">
sudo apt-get remove libatlas-base-dev libatlas-dev ibatlas3-base</pre>
<p><span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
然后再重新cmake，输出信息如下：</p>
<blockquote>
<div>
		-- The C compiler identification is GNU 6.3.0</div>
<div>
		-- The CXX compiler identification is GNU 6.3.0</div>
<div>
		-- Check for working C compiler: /usr/bin/cc</div>
<div>
		-- Check for working C compiler: /usr/bin/cc -- works</div>
<div>
		-- Detecting C compiler ABI info</div>
<div>
		-- Detecting C compiler ABI info - done</div>
<div>
		-- Detecting C compile features</div>
<div>
		-- Detecting C compile features - done</div>
<div>
		-- Check for working CXX compiler: /usr/bin/c++</div>
<div>
		-- Check for working CXX compiler: /usr/bin/c++ -- works</div>
<div>
		-- Detecting CXX compiler ABI info</div>
<div>
		-- Detecting CXX compiler ABI info - done</div>
<div>
		-- Detecting CXX compile features</div>
<div>
		-- Detecting CXX compile features - done</div>
<div>
		-- Looking for pthread.h</div>
<div>
		-- Looking for pthread.h - found</div>
<div>
		-- Looking for pthread_create</div>
<div>
		-- Looking for pthread_create - not found</div>
<div>
		-- Looking for pthread_create in pthreads</div>
<div>
		-- Looking for pthread_create in pthreads - not found</div>
<div>
		-- Looking for pthread_create in pthread</div>
<div>
		-- Looking for pthread_create in pthread - found</div>
<div>
		-- Found Threads: TRUE &nbsp;</div>
<div>
		--&nbsp;<span style="color: rgb(0, 0, 255);">Blas libraries: /usr/lib/libblas.so</span></div>
<div>
		-- Blas linker flags:&nbsp;</div>
<div>
		-- Blas include directories:&nbsp;</div>
<div>
		-- Using BLAS include path: /usr/include</div>
<div>
		--&nbsp;<span style="color: rgb(0, 0, 255);">Using BLAS library: /usr/lib/libblas.so</span></div>
<div>
		-- Using BLAS DLLs:&nbsp;</div>
<div>
		-- Found PythonInterp: /home/codelast/.miniconda3/bin/python (found version &quot;3.6.1&quot;)&nbsp;</div>
<div>
		-- Found PythonLibs: /home/codelast/.miniconda3/lib/libpython3.6m.so (found version &quot;3.6.1&quot;)&nbsp;</div>
<div>
		-- Found SWIG: /usr/local/bin/swig (found suitable version &quot;3.0.12&quot;, minimum required is &quot;3.0.12&quot;)&nbsp;</div>
<div>
		-- Creating wrappers for python</div>
<div>
		-- Creating wrappers for javascript</div>
<div>
		-- Creating wrappers for xml</div>
<div>
		-- Using python found at: /home/codelast/.miniconda3/bin/python</div>
<div>
		-- Using python libraries found at: /home/codelast/.miniconda3/lib/libpython3.6m.so</div>
<div>
		-- Creating wrappers for python</div>
<div>
		-- Generated target compiled_vgg16ImageNet_host</div>
<div>
		-- Generated target compiled_vgg16ImageNet_pi3</div>
<div>
		-- Generated target compiled_vgg16ImageNet_pi0</div>
<div>
		-- Generated target compiled_darknetReference_host</div>
<div>
		-- Generated target compiled_darknetReference_pi3</div>
<div>
		-- Generated target compiled_darknetReference_pi0</div>
<div>
		-- Configuring done</div>
<div>
		-- Generating done</div>
<div>
		-- Build files have been written to: /home/codelast/programme/pi/ELL/build</div>
</blockquote>
<div>
	从标蓝的那两句，可见我已经成功地把atlas给除掉了。<br />
	此时，再重新make，就能成功编译ELL了！<br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;版权声明&nbsp;<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;<br />
	转载需注明出处：<u><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><em><span style="color: rgb(0, 0, 255);"><strong style="font-size: 16px;"><span style="font-family: arial, helvetica, sans-serif;">codelast.com</span></strong></span></em></a></u>&nbsp;<br />
	感谢关注我的微信公众号（微信扫一扫）：</p>
<p style="border: 0px; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 0px; color: rgb(77, 77, 77);">
		<img decoding="async" alt="wechat qrcode of codelast" src="https://www.codelast.com/codelast_wechat_qr_code.jpg" style="width: 200px; height: 200px;" /></p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3%e7%bc%96%e8%af%91ell%e7%9a%84%e9%94%99%e8%af%af%ef%bc%9aundefined-reference-to-cblas_xxx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
