linux下相关软件安装

1、kscope的安装

原文地址:http://blog.csdn.net/e3399/article/details/7462702

我下载的是kscope-1.6.2.tar.gz
Fedora 14安装kscope的步骤
我下载的是kscope-1.6.2.tar.gz
http://download.chinaunix.net/download/0006000/5469.shtml
[root@localhost kscope-1.6.2]# tar zxvf kscope-1.6.2.tar.gz
[root@localhost kscope-1.6.2]# cd kscope-1.6.2
[root@localhost kscope-1.6.2]# ./configure
configure: error: The important program kde-config was not found!

[root@localhost kscope-1.6.2]# yum install kdelibs3 kdelibs3-devel

[root@localhost kscope-1.6.2]# ./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.

[root@localhost kscope-1.6.2]# yum install qt3 qt3-devel
[root@localhost kscope-1.6.2]# source /etc/profile
[root@localhost kscope-1.6.2]# ./configure
configure: error: Lex/Flex is required in order to build KScope

[root@localhost kscope-1.6.2]# yum install -y flex
[root@localhost kscope-1.6.2]# ./configure
configure: error: Yacc/Bison is required in order to build KScope

[root@localhost kscope-1.6.2]# yum install -y bison
[root@localhost kscope-1.6.2]# ./configure    
Good - your configure finished. Start make now

[root@localhost kscope-1.6.2]# make
/usr/bin/ld: cannot find -lkateinterfaces
 make时提示找不到 -lkateinterfaces,该参数是要找动态链接库,其实没有动态链接库,只有静态链接库,该库位于/usr/lib/libkatepartinterfaces.la
[root@localhost kscope-1.6.2]# vi src/Makefile
修改src/Makefile 大约在482行
          kscope_LDADD = -lkateinterfaces -lktexteditor $(LIB_KDEUI)
          -lkateinterfaces 替换为/usr/lib/libkatepartinterfaces.la

[root@localhost kscope-1.6.2]# make
[root@localhost kscope-1.6.2]# make install
[root@localhost kscope-1.6.2]# make clean
[root@localhost sourcenav-6.0]# yum install -y cscope ctags  graphviz

[root@localhost sourcenav-6.0]# kscope
第一次启动时,需要对Kscope做一些简单的配置,在配置时可能要指定Kscope所需的cscope,ctags和dot,直接点击下面的按钮Guess,让它自己检测就可以了,或者按下面这样子设置。
Cscope path:/usr/bin/cscope
Ctags path:/usr/bin/ctags
Dot path:/usr/bin/dot

kscope的使用:

1、光标移到某个函数上,必须ctrl+1才能跳到函数定义处,而不会自动跳转。

2、将光标停在某个函数名上,按Ctrl + \。根据提示,点两下鼠标,就可以轻松得到函数调用的关系图


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值