⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linphone_out_of_tree.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#building_linphone_out_of_the_uclinux-dist_tree" class="toc">Building Linphone out of the uClinux-dist tree</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#prerequisites" class="toc">Prerequisites</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#compiling_libosip2_and_speex" class="toc">Compiling libosip2 and speex</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#building_libspeex" class="toc">Building libspeex</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#building_libosip2" class="toc">Building libosip2</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#building_linphone" class="toc">Building Linphone</a></span></div></li></ul></li></ul></div></div><h1><a name="building_linphone_out_of_the_uclinux-dist_tree" id="building_linphone_out_of_the_uclinux-dist_tree">Building Linphone out of the uClinux-dist tree</a></h1><div class="level1"></div><!-- SECTION [1-62] --><h2><a name="prerequisites" id="prerequisites">Prerequisites</a></h2><div class="level2"><p> If you want to compile Linphone for Blackfin for yourself out of tree, you have first to get the sources for linphone and the dependencies (libosip2 and libspeex).</p><p>The Linphone source code is available from the Linphone <a href="http://www.linphone.org/?lang=us" class="urlextern" title="http://www.linphone.org/?lang=us"  rel="nofollow">homepage</a>. You should get the latest stable <a href="http://simon.morlat.free.fr/download/stable/source/linphone-1.1.0.tar.gz" class="urlextern" title="http://simon.morlat.free.fr/download/stable/source/linphone-1.1.0.tar.gz"  rel="nofollow">release</a>. The latest stable libosip2 is available from the <a href="http://www.gnu.org/software/osip/osip.htm" class="urlextern" title="http://www.gnu.org/software/osip/osip.htm"  rel="nofollow">osip2 homepage</a> under the download section. Get the latest stable <a href="http://ftp.gnu.org/gnu/osip/libosip2-2.2.1.tar.gz" class="urlextern" title="http://ftp.gnu.org/gnu/osip/libosip2-2.2.1.tar.gz"  rel="nofollow">release</a>. Addidionally you could use the libosip2 from the same same <a href="http://simon.morlat.free.fr/download/stable/source/" class="urlextern" title="http://simon.morlat.free.fr/download/stable/source/"  rel="nofollow">directory</a>, where you found linphone. The speex source code is available from the <a href="http://www.speex.org" class="urlextern" title="http://www.speex.org"  rel="nofollow">speex homepage</a>. You should at least get <a href="http://downloads.us.xiph.org/releases/speex/speex-1.1.10.tar.gz" class="urlextern" title="http://downloads.us.xiph.org/releases/speex/speex-1.1.10.tar.gz"  rel="nofollow">version 1.1.10</a>.</p><p>To compile the sources, you should also make sure, that you have the latest <a href="http://blackfin.uclinux.org/projects/gcc3" class="urlextern" title="http://blackfin.uclinux.org/projects/gcc3"  rel="nofollow">compiler from the Blackfin uClinux project</a> installed.</p></div><!-- SECTION [63-1222] --><h2><a name="compiling_libosip2_and_speex" id="compiling_libosip2_and_speex">Compiling libosip2 and speex</a></h2><div class="level2"><p> First you should check if you have the right compiler in your path: </p><pre class="code">~&gt;bfin-uclinux-gcc --versionbfin-uclinux-gcc (GCC) 3.4.4Copyright (C) 2004 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</pre><p>There are most likely two types of compiler installed, but you need the bfin-uclinux compiler. Then the next step would be to untar the sources and create a directory to temporarily install the libs and Linphone.</p><pre class="code">~&gt;mkdir linphone_build_dir~&gt;cd linphone_build_dir/~/linphone_build_dir&gt;tar xzf ~/speex-1.1.10.tar.gz ~/linphone_build_dir&gt;tar xzf ~/libosip2-2.2.1.tar.gz ~/linphone_build_dir&gt;tar xzf ~/linphone-1.1.0.tar.gz ~/linphone_build_dir&gt;mkdir temp_tree</pre><p>Of course you could use different directory names.  The temp_tree directory is necessary, because Linphone needs a location where the libspeex and libosip2 libraries are installed.</p><p>The best thing would be to set the location for the temp_tree directory as an environment variable :</p><pre class="code">export TEMPDIR=~/linphone_build_dir/temp_tree</pre><p> or if you use a tcsh: </p><pre class="code"> setenv TEMPDIR ~/linphone_build_dir/temp_tree</pre><p>Now we can start building.</p></div><!-- SECTION [1223-2540] --><h3><a name="building_libspeex" id="building_libspeex">Building libspeex</a></h3><div class="level3"><pre class="code">~/linphone_build_dir&gt; cd speex-1.1.10/~/linphone_build_dir&gt; ./configure --host=bfin-uclinux --prefix=&quot;$TEMPDIR&quot; --disable-oggtest --enable-fixed-point  --enable-blackfin-asm --without-ogg</pre><p>After the successful run of configure, you can now call make.  The make will result in an error, because we have not installed libogg, which is needed for the speex test application. Fortunately libspeex has already been build and we can proceed with make install. Which gives you of course also an error, which you could ignore. You can check if <code>temp_tree/include/speex/speex.h</code> and <code>temp_tree/lib/libspeex.a</code> exists. If this is the case, everything worked well.</p><p>We can now proceed with building libosip2.</p></div><!-- SECTION [2541-3287] --><h3><a name="building_libosip2" id="building_libosip2">Building libosip2</a></h3><div class="level3"><p> <code>config.sub</code><code> ~/linphone_build_dir&gt;cp linphone-1.1.0/config.sub libosip2-2.2.0/scripts/config.sub </code><code>&gt;=2.2.1</code><code>config.sub</code> </p><p>Building libosip2 works just as easy as building speex:</p><pre class="code">~/linphone_build_dir/speex-1.1.10&gt; cd ../libosip2-2.2.1/~/linphone_build_dir/libosip2-2.2.1&gt; ./configure --host=bfin-uclinux --prefix=&quot;$TEMPDIR&quot; --disable-shared --enable-static~/linphone_build_dir/libosip2-2.2.1&gt; make~/linphone_build_dir/libosip2-2.2.1&gt; make install</pre><p>There should be no problems. You have now installed libspeex and libosip2 and you can proceed with building Linphone.</p></div><!-- SECTION [3288-4143] --><h2><a name="building_linphone" id="building_linphone">Building Linphone</a></h2><div class="level2"></div><!-- SECTION [4144-] --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -