我下载的是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
中文是乱码
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
中文是乱码
Tools--->Encoding--->选择相应中文编码。如gb2312
kscope的使用:
1、光标移到某个函数上,必须ctrl+1才能跳到函数定义处,而不会自动跳转。
2、将光标停在某个函数名上,按Ctrl + \。根据提示,点两下鼠标,就可以轻松得到函数调用的关系图
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
参考资料:http://blog.csdn.net/fontlose/article/details/6403019
源代码阅读工具cscope+taglist+Ctags kscope
本文详细介绍了在Fedora 14系统中安装KScope的过程,包括下载、解压、配置环境(如安装Qt、Flex、Bison等依赖)、解决编译错误、修改Makefile以正确链接库、最终成功编译和安装KScope。同时提供了KScope的基本使用方法和解决中文乱码问题的方法。
2869

被折叠的 条评论
为什么被折叠?



