出现 错误时因为 没有KDE环境;
下载skcope 的程序;最新版不好用,所有就是用1.6.2 版本
下载完解压;
tar zxvf kscope-1.6.2.tar.gz
直接 sudo apt-get install kdelibs4c2a安装
然后 从新出现问题了
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
lipeng@lipeng-desktop:~/Downloads/kscope-1.6.2$ sudo apt-get install libx11-dev xorg-dev
sudo apt-get install libx11-dev xorg-dev
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.
原因:系统中没有软件所需的Qt
直接输入如下命令安装
sudo apt-get install qt3-apps-dev
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
原因:在Gnome 环境中安装 KDE 应用程序
解决:
sudo apt-get update
udo apt-get install kdelibs4-dev kdelibs4c2a
configure error: The important program mcopidl was not found!
Please check whether you installed aRts correctly or use
--without-arts to compile without aRts support(this will remove functionality)
使用 ./configure --without-arts
error: Lex/Flex is required in order to build KScope
解决办法:
sudo apt-get install flex
安装完后:
Good - your configure finished. Start make now
此时 已经成功,可以make 了;
如果你安装了4.0以上版本,则在make 的时候可能出现如下错误:
File generated with too old version of Qt Designer (3.3)
此时 可以重新设置一下环境变量:(以上默认Qt3.3 的qmake 默认安装在如下目录)
export QTDIR=/usr/bin
继续make错误1: /usr/bin/ld: cannot find -lkateinterfaces
make时提示找不到 -lkateinterfaces,不用担心,该参数是要找动态链接库,其实没有动态链接库,只有静态链接库,该库位于/usr/lib/libkatepartinterfaces.la,这个时候,切换到src目录下:
[ /home/lanch/Download/kscope-1.6.2]$cd src
[ /home/lanch/Download/kscope-1.6.2/src]$grep -n -lkateinterfaces Makefile
将Makefile文件中使用-lkateinterfaces 的地方,替换为/usr/lib/libkatepartinterfaces.la,接着,退回到上层目录cd ,进行make,就会大功告成。
5. sudo make install
这个过程中没现过错误。
6. 安装cscope,ctags,graphviz
sudo apt-get install cscope ctags graphviz
到此安装kscope1.6.2完成,可以在终端中输入kscope打开kscope1.6.2了,当然你可以作成一个快捷方式,这里就不再说明。
使用了下,kscope1.6.2总体不不错,功能和界面跟 windows 底下的sourceinsight 差不多; 当然你也可以使用wince 在 linux底下安装windows所使用的SourceInsight 代码编辑器。