kscope安装
来源:互联网 发布:学生女装品牌 知乎 编辑:程序博客网 时间:2024/05/22 06:56
目录(?)[+]
本例测试时用的的编译环境:
软件平台:Red Hat Enterprise Linux 5(或该系统在虚拟机中)
硬件平台:pc机
编译链接工具:gcc 版本 4.1.2
本例测试时用的的运行环境:
软件平台:Red Hat Enterprise Linux 5(或该系统在虚拟机中)
硬件平台:pc机
1 下载
本例使用的下载网站:http://kscope.sourceforge.net/dload.shtml ,下载的软件版本:kscope-1.6.2.tar.gz
2.安装
在kscope安装包所在的目录中执行命令tar -zxv -f kscope-1.6.2.tar.gz ,解压缩出一个目录kscope-1.6.2,进入该目录,
执行命令./configure,生成makefile文件,但是在本例中出现如下提示:
checking for kde-config... not found
configure: error: The important program kde-config was not found!
Please check whether you installed KDE correctly.
对于如上的错误,说明没有安装kde环境,然后执行命令 :yum search kdelibs-devel 搜索kdelibs-devel软件,
如果搜索到,执行命令:yum install kdelibs-devel 进行安装kde环境
然后再次执行命令/configure,有出现如下提示:
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
对于上面的错误,执行命令 rpm -qa qt 查看qt是否安装,但是在本例中提示qt已经安装,提示如下: qt-3.3.6-26.el5
然后执行命令./configure --x-includes=/usr/include/X11/ --x-libraries=/usr/lib/ --with-qt-dir=/usr/lib/qt-3.3 --with-qt-includes=/usr/lib/qt-3.3/include/ --with-qt-inclues=/usr/lib/qt-3.3/lib/ ,这次执行成功,得到makefile文件
执行命令make 进行编译,在最后出现如下错误提示:
/usr/bin/ld: cannot find -lkateinterfaces
collect2: ld returned 1 exit status
make[3]: *** [kscope] 错误 1
make[3]: Leaving directory `/work/kscope/kscope-1.6.2/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/work/kscope/kscope-1.6.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/work/kscope/kscope-1.6.2'
make: *** [all] 错误 2
执行命令 yum install libkate-devel,但是没有找到源,因此可以更改目录kscope-1.6.2/src中的Makefile文件,将其中的-lkateinterfaces 的地方,替换为/usr/lib/libkatepartinterfaces.la 或者将目录/usr/lib中的文件libkatepartinterfaces.la重命名为libkateinterfaces.la(注意先备份)即可
执行命令make install,进行安装
接着需要安装cscope,ctags,graphviz
首先执行命令yum list cscope ctags graphviz 或者用rpm命令查看这几个程序的安装情况,然后在用yum install 命令安装需要升级的或者还没有安装的程序
执行命令yum install cscope ctags graphviz 会自动进行升级活安装
至此kscope安装完成,就可通过执行命令kscope打开kscope程序
另外还有一个功能很强大的编辑器:slickedit
3 使用
1.可以在 setting->configure editor->font&color下配置编辑器的字体字体,可以在setting->configure kscope->font下配置file list和tag list的字体。
2.配置外部编辑器,setting->configure kscope->option默认是用kate –line %L %F,可以配置自己的喜欢的编辑器,如emacs %L %F或gvim %L %F。
3.用命令方式建立工程
进入代码目录,执行命令find -name '*.[c|h|s|S]' > cscope.files,
执行命令 cscope -b 生成cscope.out文件
然后在kscope的窗口中的工程菜单中打开该cscope.out文件 。
- kscope 安装
- KScope安装
- kscope安装
- centos5.3 安装 kscope
- kscope安装脚本
- Ubuntu安装KScope
- Kscope的安装
- ubuntu10.04安装KScope
- fedora下Kscope安装
- ubuntu 10.04安装 kscope
- ubuntu 安装 kscope
- fedora下Kscope安装 .
- ubuntu 10.04安装kscope
- ubuntu 10.04 安装kscope
- ubuntu10.04 安装kscope
- Fedora 14安装kscope
- ubuntu 10.04安装 kscope
- Kscope安装及使用
- sqlserver实现结果集的拆分(干货)
- hashmap和hashtable的区别
- struct vm_area_struct
- ASP.NET - Web 服务器控件
- Rails captcha in ubuntu system
- kscope安装
- spring定时任务--多个任务和执行时间间隔配置
- Java流的读取
- Server 2003 Ghost 自带IIS
- 帧指针和栈指针
- windows 编程 注册热键
- Pending Statistics
- 14--2成绩处理系统
- CPU与缓存