Chinaunix首页 | 论坛 | 博客
  • 博客访问: 384033
  • 博文数量: 138
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1620
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-10 16:55
个人简介

当你比别人优秀一点点,别人会嫉妒你。当你比别人优秀很多,别人会羡慕你。

文章分类

全部博文(138)

文章存档

2016年(2)

2015年(2)

2014年(15)

2013年(119)

我的朋友

分类: 嵌入式

2013-12-07 20:53:06

 Linux 下串口终端,默认是字符界面minicom.这个软件优点是REHL自带,缺点也不少。一是在在LINUX桌面版下,对于嵌入式初学者,容易与字符终端搞混,。二是界面分隔不明显,如解释给开发板传送文件,不太容易看出是怎么进行。而在WINDOWS下,用超级终端就分隔的很明显,学生一操作就明白,三是与开发板有一些不太兼容,比如在某一个开发板上,发现光标经常丢失,这样造成使用上极为不方便,因此后我也就找到一款图形界面串口终端,gtkterm来代替minicom
 
 
 
gtkterm的使用说明
 
下载
最新版本是
在RHEL5上它需要  libiconv库和libvte 0.10.以上库
这个是典型的configure & make & make install项目
1.安装libiconv
2.安装VTE,否则报相应的库找不到,RHEL自带光盘带了安装文件,但是默认开发库找不到。
checking   for   pkg-config...   /usr/bin/pkg-config  
  checking   pkg-config   is   at   least   version   0.10.4...   yes  
  checking   for   TERMINAL_WIDGET...   Package   vte   was   not   found   in   the   pkg-config   search   path.  
  Perhaps   you   should   add   the   directory   containing   `vte.pc'  
  to   the   PKG_CONFIG_PATH   environment   variable  
  No   package   'vte'   found  
  configure:   error:   Package   requirements   (vte   >=   0.10.4)   were   not   met.  
  Consider   adjusting   the   PKG_CONFIG_PATH   environment   variable   if   you  
  installed   sofchecking   for   pkg-config...   /usr/bin/pkg-config  
  checking   pkg-config   is   at   least   version   0.10.4...   yes  
  checking   for   TERMINAL_WIDGET...   Package   vte   was   not   found   in   the   pkg-config   search   path.  
  Perhaps   you   should   add   the   directory   containing   `vte.pc'  
  to   the   PKG_CONFIG_PATH   environment   variable  
  No   package   'vte'   found  
  configure:   error:   Package   requirements   (vte   >=   0.10.4)   were   not   met.  
  Consider   adjusting   the   PKG_CONFIG_PATH   environment   variable   if   you  
  installed   software   in   a   non-standard   prefix.  
     
  Alternatively   you   may   set   the   TERMINAL_WIDGET_CFLAGS   and   TERMINAL_WIDGET_LIBS   environment   variables  
  to   avoid   the   need   to   call   pkg-config.     See   the   pkg-config   man   page   for  
  more   details.  
tware   in   a   non-standard   prefix.  
     
  Alternatively   you   may   set   the   TERMINAL_WIDGET_CFLAGS   and   TERMINAL_WIDGET_LIBS   environment   variables  
  to   avoid   the   need   to   call   pkg-config.     See   the   pkg-config   man   page   for  
  more   details.  
 
安装库文件,
  
[root@rhel5 Server]# rpm -ivh vte-0.14.0-2.el5.i386.rpm
warning: vte-0.14.0-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
        package vte-0.14.0-2.el5 is already installed
[root@rhel5 Server]# rpm -ivh vte-devel-0.14.0-2.el5.i386.rpm
warning: vte-devel-0.14.0-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:vte-devel              ########################################### [100%]
[root@rhel5 Server]#  
 
3.生成make ,注意要把链接iconv库的语句加入,否则链接时找不到。
   LDFLAGS=-liconv ./configure #生成Makefile,如果提示缺省的C找不到,可以先执行一次./configure后再执行上述语句
4.编译,安装 make & make install
 
 
 
安装后执行 gtkterm. 进行图形界面配置即可
 
注意有一个叫gtkterm2的项目,好象没有串口控制的功能,这里不要下错了。
下载
安装.
 联接串口是 gtkterm -p /dev/ttyS0
 
 
GtkTerm 的缺点
本想用这个来代替minicom,经过一段使用,发现GtkTerm有一些优点,但是缺点很明显,一是不能拷贝和粘贴内容,这等于就没有很多实用功能了.另外一大缺点是没有支持X/Y/Z Modem传输协议的功能,无法跟开发板的rz/sz进行文件传输.
阅读(2423) | 评论(0) | 转发(0) |
0

上一篇:install corba

下一篇:minicom

给主人留下些什么吧!~~