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

📄 main23.htm

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="noindex_htm">
<meta name="LASTUPDATED" content="12/04/03 16:47:07">
<title>5.4 Setting up the environment</title>

<STYLE TYPE="text/css">
<!--
	span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>

</head>

<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">

<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>

<table border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"></a></td>
    <td><a href="main22.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"></a></td>
    <td><a href="main24.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"></a></td>
  </tr>
</table>

<p><br clear="all">
</p>

<hr align="left">

<blockquote>
<h2>
  <a name="1210610"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4 	 Setting up the environment</font>
</h2><hr>


<p>
  <a name="1210611"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Having installed the release there are several environment variables to be set up before you can use any of the tools. These variables are described in this section.</font>
</p>


<h3>
  <a name="1210612"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.1 	 Setting up your paths</font>
</h3>


<p>
  <a name="1210613"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">To be able to use the tools you will need to add the directory <font size=2 face=Courier><strong>$RELEASE/bin</strong></font> to your <font size=2 face=Courier><strong>PATH</strong></font>, and <font size=2 face=Courier><strong>$RELEASE/lib</strong></font> to your <font size=2 face=Courier><strong>LD_LIBRARY_PATH</strong></font>.</font>
</p>


<p>
  <a name="1210614"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">For example, using a C shell: </font>
</p>


<a name="1210615"> </a><font size=2 face=Courier><strong>setenv PATH $RELEASE/bin:$PATH<br>setenv LD_LIBRARY_PATH $RELEASE/lib:$LD_LIBRARY_PATH<br></strong></font>



<p>
  <a name="1210616"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Using a Bourne Shell, this becomes:</font>
</p>


<a name="1210617"> </a><font size=2 face=Courier><strong>PATH=$RELEASE/bin:$PATH<br>export PATH<br><br></strong></font>



<a name="1210618"> </a><font size=2 face=Courier><strong>LD_LIBRARY_PATH=$RELEASE/lib:$LD_LIBRARY_PATH<br>export LD_LIBRARY_PATH<br></strong></font>



<h3>
  <a name="1210619"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.2 	 Setting environment variables</font>
</h3>


<p>
  <a name="1210620"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">To enable the tools to find libraries and include files you must set up the environment variable <font size=2 face=Courier><strong>ST20ROOT</strong></font>. This environment variable should contain the path of the release directory, under which the standard library and include file directories will be found.</font>
</p>


<p>
  <a name="1210621"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">For example, using a C shell: </font>
</p>


<a name="1210622"> </a><font size=2 face=Courier><strong>setenv ST20ROOT $RELEASE<br></strong></font>



<p>
  <a name="1210623"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Using a Bourne Shell, this becomes:</font>
</p>


<a name="1210624"> </a><font size=2 face=Courier><strong>ST20ROOT=$RELEASE<br>export ST20ROOT<br></strong></font>



<p>
  <a name="1210625"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The environment variable <font size=2 face=Courier><strong>$HOME</strong></font> should be set to point to the user's home directory. </font>
</p>


<h3>
  <a name="1210626"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.3 	 The .st20rc file</font>
</h3>


<p>
  <a name="1210627"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">A file called <font size=2 face=Courier><strong>.st20rc</strong></font> has been installed into the <font size=2 face=Courier><strong>$RELEASE</strong></font> directory. This contains some predefined commands for the toolset, and is read by some of the tools on starting up.</font>
</p>


<h3>
  <a name="1210628"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.4 	 Setting up the debugger GUI resource file </font>
</h3>


<p>
  <a name="1210629"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">As part of the installation, an X resource file named <font size=2 face=Courier><strong>st20run</strong></font> is available in the directory <font size=2 face=Courier><strong>$RELEASE/lib</strong></font>. This file needs to be copied to the system wide <font size=2 face=Courier><strong>app-defaults</strong></font> directory. The standard location for this directory is:</font>
</p>


<a name="1210630"> </a><font size=2 face=Courier><strong>/usr/openwin/lib/app-defaults<br></strong></font>



<p>
  <a name="1210631"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">However, this directory can be changed by setting the <font size=2 face=Courier><strong>XFILESEARCHPATH</strong></font> environment variable (see <font size=2 face=Courier><strong>X11(7)</strong></font>).</font>
</p>


<p>
  <a name="1210632"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">If you wish to override the standard fonts then you should copy the <font size=2 face=Courier><strong>st20run</strong></font> X resource file to your home directory (specified in <font size=2 face=Courier><strong>$HOME</strong></font>) or to a directory referenced by the environment variable <font size=2 face=Courier><strong>XAPPLRESDIR</strong></font>, and then amend this copy as desired.</font>
</p>


<p>
  <a name="1210633"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">This resource file is as follows:</font>
</p>


<a name="1210634"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em>! Resource file for ST20RUN GUI Motif version.<br>!<br>! This file should be placed in one of the system-wide directories searched <br>! by the X resource loading sequence, <br>! or added to the RESOURCE_MANAGER properties by xrdb.<br>!<br></em></font><br></strong></font>



<a name="1210635"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em>! If desired a local copy of the file can also be copied to a directory <br>! pointed to by the environment variable $XAPPLRESDIR for tailoring to <br>! individual user preferences.<br>!<br>! Background color of text and lists<br></em></font>st20run*background: grey<br><br></strong></font>



<a name="1210636"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em>! Background and foreground colors of the variable's value pop up box<br></em></font>st20run*GwPopup*background: white<br>st20run*GwPopup*foreground: black<br><br></strong></font>



<a name="1210637"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em>! Font used for source code display and variable's window list display<br></em></font>st20run*CodeFont: -adobe-courier-medium-r-normal--*-120-*-*-m-*-iso8859-1<br><br></strong></font>



<a name="1210638"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em>! Font used for buttons, labels, etc.<br></em></font>st20run*FontList: -b&amp;h-lucida sans typewriter-medium-r-normal-sans-*-120-*-*-m-*-iso8859-1<br><br></strong></font>



<a name="1210639"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em>! Font used for message and value displays<br>! NOTE: it is recommended that a proportional font is not used here or the<br>! formatting of tables will be incorrect<br></em></font>st20run*MonoFont: -adobe-courier-medium-r-normal--*-120-*-*-m-*-iso8859-1<br></strong></font>
</blockquote>

<hr>



<table border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"></a></td>
    <td><a href="main22.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"></a></td>
    <td><a href="main24.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"></a></td>
  </tr>
</table>
<font size=1 face="Verdana, Arial, Helvetica, sans-serif">&nbsp; &copy; 2001, 2002, 2003 STMicroelectronics. All Rights Reserved.<br>
&nbsp; ADCS 7257995G</font>
</body>
</html>

⌨️ 快捷键说明

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