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

📄 install_and_use_ncurses_lib.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><h2><a name="run_ncurses_application_on_blackfin" id="run_ncurses_application_on_blackfin">Run ncurses application on blackfin</a></h2><div class="level2"><p>It is fairly easy to get ncurses application run on your target system.  This next section will help guide you through the process of compile ncurses library and run some ncurses applications  in your target system. But if you want to know more about ncurses,I recommend you to browse the offical website <a href="http://www.gnu.org/software/ncurses/" class="urlextern" title="http://www.gnu.org/software/ncurses/"  rel="nofollow">http://www.gnu.org/software/ncurses/</a>.</p></div><h4><a name="step_by_step_instructions" id="step_by_step_instructions">Step by Step Instructions</a></h4><div class="level4"><ul><li class="level1"><div class="li"> First you want to make sure you have the latest sources from <acronym title="Concurrent Versions System">CVS</acronym> for the toolchain and the kernel.  For more information on this please refer to the <a href="version_control_systems.html#cvs_quickstart" class="wikilink1" title="version_control_systems.html">CVS Quickstart</a>.</div></li></ul><ul><li class="level1"><div class="li"> Next you must build and install the toolchain.  If you are unsure on how to do this please see <a href="toolchain_build_script.html" class="wikilink1" title="toolchain_build_script.html">Toolchain Build Script</a>.</div></li></ul><ul><li class="level1"><div class="li"> After the toolchain has finished building you must add the toolchain to your <strong>PATH</strong>.  Please refer to <a href="installing_the_blackfin_tool_chain.html#setting_the_path_environment_variable" class="wikilink1" title="installing_the_blackfin_tool_chain.html">Setting the PATH Environment</a> for more details.</div></li></ul><ul><li class="level1"><div class="li"> Next <em>cd</em> into the freshly downloaded kernel directory, <strong>uClinux-dist</strong>.</div></li></ul><pre class="code">user@linux:~/checkouts/kernel/uClinux-dist&gt; cd where/you/put/uClinux-dist</pre><ul><li class="level1"><div class="li"> Now enter the command:</div></li></ul><pre class="code">user@linux:~/checkouts/kernel/uClinux-dist&gt; make clean</pre><ul><li class="level1"><div class="li"> Next enter the following command to configure your kernel:</div></li></ul><pre class="code">user@linux:~/checkouts/kernel/uClinux-dist&gt; make menuconfig</pre><ul><li class="level1"><div class="li"> In the make menuconfig menu select the <strong>Kernel/Library/Defaults Selection</strong></div></li></ul><ul><li class="level1"><div class="li"> Here check off the boxes:</div></li></ul><pre class="code">(x) Customize Kernel Settings(x) Customize Vendor/User Settings</pre><ul><li class="level1"><div class="li"> Then select <strong>Exit and Save</strong></div></li></ul><p>    </p><ul><li class="level1"><div class="li">Under the <strong>Library Configuration</strong> menu check off the following options:</div></li></ul><pre class="code"> [*] Build ncurses                                                                                 </pre><ul><li class="level1"><div class="li"> Now you can modify the INSTALL_TERMINFO_TYPE variable in the lib/ncurses/Makefile to add some terminfo types.Note, seperated by corma</div></li></ul><pre class="code">INSTALL_TERMINFO_TYPE= linux,vt100</pre><ul><li class="level1"><div class="li"> When you get back to the command line. Issue a make to create the kernel image.</div></li></ul><pre class="code">user@linux:~/checkouts/kernel/uClinux-dist&gt;  make</pre><ul><li class="level1"><div class="li"> After the make finishes, you can  use the compiled ncurses library in uClinux-dist to compile your ncurses applications.</div></li></ul><p>  </p><ul><li class="level1"><div class="li"> copy the linux image to your tftp directory. (For more information setting up a tftp server please see <a href="setting_up_a_tftp_server.html" class="wikilink1" title="setting_up_a_tftp_server.html">Setting up a TFTP Server</a>.)</div></li></ul><pre class="code">user@linux:~/checkouts/kernel/uClinux-dist&gt; cp ./images/linux /tftpboot/linux</pre><ul><li class="level1"><div class="li"> Tftp the file to your target and boot the kernel using U-Boot. (For more information on using U-Boot please see <a href="das_u-boot_on_blackfin.html" class="wikilink1" title="das_u-boot_on_blackfin.html">Das U-Boot on Blackfin</a>.)</div></li></ul><pre class="code">stamp&gt; tftp 0x1000000 linuxstamp&gt; bootelf</pre><ul><li class="level1"><div class="li"> Once the kernel has booted, you can upload your ncurses application image to blackfin board. Then you should export two variable as the following:</div></li></ul><pre class="code">export TERM=linuxexport TERMINFO=/usr/share/terminfo</pre><p>  &rdquo;&rdquo; </p><ul><li class="level1"><div class="li"> Then you can run your ncurses application.</div></li></ul></div></body></html>

⌨️ 快捷键说明

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