Fedora 14安裝kscope

來源:互聯網
上載者:User

我下載的是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

中文是亂碼

Tools--->Encoding--->選擇相應中文編碼。如gb2312

kscope的使用:

1、游標移到某個函數上,必須ctrl+1才能跳到函數定義處,而不會自動跳轉。

2、將游標停在某個函數名上,按Ctrl + \。根據提示,點兩下滑鼠,就可以輕鬆得到函數調用的關係圖



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

參考資料:http://blog.csdn.net/fontlose/article/details/6403019

原始碼閱讀工具cscope+taglist+Ctags kscope


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.