好的阅读源码的工具集中一下,一个一个试试。

C、C++和Java语言
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

好的阅读源码的工具集中一下,一个一个试试。

#1

帖子 eexpress » 2006-03-29 22:51

global: can be embeded with vim, apt-get install global. do not know how to use yet.
http://www.gnu.org/software/global/global.html

cscope: apt-get can install. not test yet.
http://cscope.sourceforge.net/

source navigator: not download yet
sourcenav.deb
http://sourcenav.sourceforge.net/

doxygen: need follow doxygen rule.
apt-get install doxygen doxygen-docs graphviz

lxr: Cross-Referencing Linux
http://sourceforge.net/projects/lxr
http://lxr.linux.no/
http://lxr.sourceforge.net/

Anjuta import: only a function of anjuta.
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2006-03-29 23:13

except sourcenav, all others avoid in apt source.
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#3

帖子 eexpress » 2006-03-30 0:15

sourcenav源也有。界面丑些,不能鼠标滚动窗口,右键点击必须按住。似乎是qt不兼容的那样。勉强可以代替source insight。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#4

帖子 eexpress » 2006-03-30 13:51

gedit都支持tags和tab补全,匹配刮号。
snav就是没有一个支持si的struct/class成员弹出补全。
● 鸣学
Dijkstra
帖子: 3
注册时间: 2006-03-27 19:26
送出感谢: 0
接收感谢: 0

#5

帖子 Dijkstra » 2006-03-31 20:30

VIM + ctags + cscope基本上就够用了
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
送出感谢: 0
接收感谢: 3 次
联系:

#6

帖子 leal » 2006-03-31 21:41

Dijkstra 写了:VIM + ctags + cscope基本上就够用了


^_^ 我喜欢 这个
用心×恒 | 豆瓣 | 门户 | Blog
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#7

帖子 eexpress » 2006-04-01 17:39

主要是没有成员补全哦。我的程序一般是结构套结构。没这个功能,写的太难受了的。
● 鸣学
头像
yang119345
帖子: 570
注册时间: 2005-06-19 14:22
来自: 上海
送出感谢: 0
接收感谢: 1 次
联系:

#8

帖子 yang119345 » 2006-04-01 18:37

leal 写了:
Dijkstra 写了:VIM + ctags + cscope基本上就够用了


^_^ 我喜欢 这个


me too. :lol:
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#9

帖子 eexpress » 2006-04-01 19:32

试来试去,竟然是anjuta最适合。有tags,定义双向查找,有补全,还没找到成员补全。支持很多挂件。慢慢实验。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#10

帖子 eexpress » 2006-04-03 13:11

http://www.gnome-cn.org/development/npa ... e_explorer
竟然有实时函数/结构/宏定义浏览。一直没看到。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#11

帖子 eexpress » 2006-04-05 0:55

到gnome.org/anjuta问了。说2.x已经可以类/结构成员补全和浏览了。

悲惨的结果。。。。。 :(
$ anjuta

(anjuta:10373): libglade-CRITICAL **: glade_xml_build_interface: assertion `wid != NULL' failed

(anjuta:10373): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

** (anjuta:10373): CRITICAL **: anjuta_preferences_add_page: assertion `GTK_IS_WIDGET (page)' failed
:(
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#12

帖子 eexpress » 2006-04-05 10:21

$ cat anjuta.cvs.cmd
cvs -z3 -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co anjuta

$ cat anjuta.cvs.cmd|sh start cvs checkout

$cd anjuta

$ ./autogen.sh ./autogen.sh --prefix=/usr/local same result
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

Generating initial interface files
Generating Interface IAnjutaBookmark
Writing ianjuta-bookmark.h
Writing ianjuta-bookmark.c
Generating Interface IAnjutaBuildable
Writing ianjuta-buildable.h
Writing ianjuta-buildable.c
Generating Interface IAnjutaDebugger
Writing ianjuta-debugger.h
Writing ianjuta-debugger.c
Generating Interface IAnjutaDebuggerManager
Writing ianjuta-debugger-manager.h
Writing ianjuta-debugger-manager.c
Generating Interface IAnjutaDocumentManager
Writing ianjuta-document-manager.h
Writing ianjuta-document-manager.c
Generating Interface IAnjutaEditor
Writing ianjuta-editor.h
Writing ianjuta-editor.c
Generating Interface IAnjutaEditorAssist: IAnjutaEditor
Writing ianjuta-editor-assist.h
Writing ianjuta-editor-assist.c
Generating Interface IAnjutaEditorConvert: IAnjutaEditor
Writing ianjuta-editor-convert.h
Writing ianjuta-editor-convert.c
Generating Interface IAnjutaEditorFactory
Writing ianjuta-editor-factory.h
Writing ianjuta-editor-factory.c
Generating Interface IAnjutaEditorFolds: IAnjutaEditor
Writing ianjuta-editor-folds.h
Writing ianjuta-editor-folds.c
Generating Interface IAnjutaEditorLineMode: IAnjutaEditor
Writing ianjuta-editor-line-mode.h
Writing ianjuta-editor-line-mode.c
Generating Interface IAnjutaEditorSelection: IAnjutaEditor
Writing ianjuta-editor-selection.h
Writing ianjuta-editor-selection.c
Generating Interface IAnjutaEditorView: IAnjutaEditor
Writing ianjuta-editor-view.h
Writing ianjuta-editor-view.c
Generating Interface IAnjutaFile
Writing ianjuta-file.h
Writing ianjuta-file.c
Generating Interface IAnjutaFileLoader: IAnjutaLoader
Writing ianjuta-file-loader.h
Writing ianjuta-file-loader.c
Generating Interface IAnjutaFileManager
Writing ianjuta-file-manager.h
Writing ianjuta-file-manager.c
Generating Interface IAnjutaFileSavable: IAnjutaFile
Writing ianjuta-file-savable.h
Writing ianjuta-file-savable.c
Generating Interface IAnjutaHelp
Writing ianjuta-help.h
Writing ianjuta-help.c
Generating Interface IAnjutaIndicable
Writing ianjuta-indicable.h
Writing ianjuta-indicable.c
Generating Interface IAnjutaIterable
Writing ianjuta-iterable.h
Writing ianjuta-iterable.c
Generating Interface IAnjutaIterableTree: IAnjutaIterable
Writing ianjuta-iterable-tree.h
Writing ianjuta-iterable-tree.c
Generating Interface IAnjutaLoader
Writing ianjuta-loader.h
Writing ianjuta-loader.c
Generating Interface IAnjutaMacro
Writing ianjuta-macro.h
Writing ianjuta-macro.c
Generating Interface IAnjutaMarkable
Writing ianjuta-markable.h
Writing ianjuta-markable.c
Generating Interface IAnjutaMessageManager
Writing ianjuta-message-manager.h
Writing ianjuta-message-manager.c
Generating Interface IAnjutaMessageView
Writing ianjuta-message-view.h
Writing ianjuta-message-view.c
Generating Interface IAnjutaPrint
Writing ianjuta-print.h
Writing ianjuta-print.c
Generating Interface IAnjutaProfile
Writing ianjuta-profile.h
Writing ianjuta-profile.c
Generating Interface IAnjutaProjectManager
Writing ianjuta-project-manager.h
Writing ianjuta-project-manager.c
Generating Interface IAnjutaStream
Writing ianjuta-stream.h
Writing ianjuta-stream.c
Generating Interface IAnjutaStreamLoader: IAnjutaLoader
Writing ianjuta-stream-loader.h
Writing ianjuta-stream-loader.c
Generating Interface IAnjutaStreamSavable: IAnjutaStream
Writing ianjuta-stream-savable.h
Writing ianjuta-stream-savable.c
Generating Interface IAnjutaSymbol
Writing ianjuta-symbol.h
Writing ianjuta-symbol.c
Generating Interface IAnjutaSymbolManager
Writing ianjuta-symbol-manager.h
Writing ianjuta-symbol-manager.c
Generating Interface IAnjutaTerminal
Writing ianjuta-terminal.h
Writing ianjuta-terminal.c
Generating Interface IAnjutaTodo
Writing ianjuta-todo.h
Writing ianjuta-todo.c
Generating Interface IAnjutaVcs
Writing ianjuta-vcs.h
Writing ianjuta-vcs.c
Generating Interface IAnjutaWizard
Writing ianjuta-wizard.h
Writing ianjuta-wizard.c
Writing libanjuta-iface-marshallers.list
Writing Makefile.am
processing .
Creating ./aclocal.m4 ...
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files no such files in that dirctory
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/local/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Making ./aclocal.m4 writable ...
Running intltoolize...
Running libtoolize...
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. big libtool.m4, how to add
Running aclocal ...
aclocal: configure.in: 85: macro `AM_CFLAGS' not found in library
aclocal: configure.in: 86: macro `AM_CXXFLAGS' not found in library
aclocal: configure.in: 91: macro `AM_CFLAGS' not found in library
aclocal: configure.in: 92: macro `AM_CXXFLAGS' not found in library
aclocal: configure.in: 381: macro `AM_GCONF_SOURCE_2' not found in library
aclocal: configure.in: 447: macro `AM_GLIB_GNU_GETTEXT' not found in library
aclocal: configure.in: 448: macro `AM_GLIB_DEFINE_LOCALEDIR' not found in library
Running autoheader...
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
Running automake --gnu ...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./missing'
configure.in: 74: required file `./config.h.in' not found
plugins/editor/Makefile.am:62: variable `editor_ui_DATA' not defined
plugins/document-manager/Makefile.am:86: variable `document_manager_DATA' not defined
plugins/subversion/Makefile.am:55: warning: automake does not support conditional definition of plugin_in_files in EXTRA_DIST
plugins/subversion/Makefile.am:55: warning: automake does not support conditional definition of subversion_plugin_DATA in EXTRA_DIST
plugins/subversion/Makefile.am:19: warning: automake does not support conditional definition of plugin_in_files in subversion_plugin_DATA
plugins/subversion/Makefile.am:55: warning: automake does not support conditional definition of subversion_ui_DATA in EXTRA_DIST
plugins/subversion/Makefile.am:55: warning: automake does not support conditional definition of subversion_glade_DATA in EXTRA_DIST
plugins/subversion/Makefile.am:55: warning: automake does not support conditional definition of subversion_pixmaps_DATA in EXTRA_DIST
plugins/sourceview/Makefile.am:99: warning: automake does not support conditional definition of plugin_in_files in EXTRA_DIST
plugins/sourceview/Makefile.am:99: warning: automake does not support conditional definition of sourceview_plugin_DATA in EXTRA_DIST
plugins/sourceview/Makefile.am:21: warning: automake does not support conditional definition of plugin_in_files in sourceview_plugin_DATA
plugins/sourceview/Makefile.am:99: warning: automake does not support conditional definition of sourceview_pixmaps_DATA in EXTRA_DIST
plugins/sourceview/Makefile.am:99: warning: automake does not support conditional definition of sourceview_glade_DATA in EXTRA_DIST
plugins/class-inheritance/Makefile.am:53: warning: automake does not support conditional definition of plugin_in_files in EXTRA_DIST
plugins/class-inheritance/Makefile.am:53: warning: automake does not support conditional definition of cls_inheritance_plugin_DATA in EXTRA_DIST
plugins/class-inheritance/Makefile.am:13: warning: automake does not support conditional definition of plugin_in_files in cls_inheritance_plugin_DATA
plugins/class-inheritance/Makefile.am:53: variable `cls_inheritance_ui_DATA' not defined
plugins/class-inheritance/Makefile.am:53: variable `cls_inheritance_glade_DATA' not defined
plugins/class-inheritance/Makefile.am:53: warning: automake does not support conditional definition of cls_inheritance_pixmaps_DATA in EXTRA_DIST
manuals/reference/libanjuta/Makefile.am:4: require version 1.6, but have 1.4-p6
Running autoconf ...
configure.in:73: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:74: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:75: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.in:85: error: possibly undefined macro: AM_CFLAGS
configure.in:86: error: possibly undefined macro: AM_CXXFLAGS
configure.in:116: error: possibly undefined macro: AC_PROG_INTLTOOL
configure.in:123: error: possibly undefined macro: AM_DISABLE_STATIC
configure.in:124: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.in:241: error: possibly undefined macro: AC_MSG_RESULT
configure.in:284: error: possibly undefined macro: AM_CONDITIONAL
configure.in:381: error: possibly undefined macro: AM_GCONF_SOURCE_2
configure.in:447: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
configure.in:448: error: possibly undefined macro: AM_GLIB_DEFINE_LOCALEDIR
Running ./configure --enable-maintainer-mode ...
./configure: line 1387: syntax error near unexpected token `anjuta,'
./configure: line 1387: `AM_INIT_AUTOMAKE(anjuta, $ANJUTA_VERSION)'
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#13

帖子 eexpress » 2006-04-05 11:42

别人的文泉译怎么比我的好看 哦。
附件
anjuta-1.2.4a-new.png
● 鸣学
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
送出感谢: 0
接收感谢: 3 次
联系:

#14

帖子 leal » 2006-04-05 13:21

eexpress

你说的那些功能 Vim + 一些必要的plugins 基本都能实现
用心×恒 | 豆瓣 | 门户 | Blog
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#15

帖子 eexpress » 2006-04-05 14:20

不会的。没那么简单的。
● 鸣学
回复

回到 “C/C++/Java”