在ubuntu下使用sourcenav的snavigator来查看android源代码

做android内核的移植,windows下用source insight来查看源代码很牛逼,于是在ubuntu下也安装了个wine来启动source insight,虽然能够使用,但是linux相关的依赖缺不能跟踪.于是自己编译了snavigator来查看代码.

1 下载sourcenav源代码

http://sourceforge.net/projects/sourcenav/

最新的包为sourcenav-6.0.tar.gz ,大小:18.9MB.

2 解压.

3 打补丁

http://svn.exactcode.de/t2/trunk/package/develop/sourcenav-ng/tk-lastevent.patch

tk runtime error:
tk8.3/tk.tcl: no event type or button # or keysym

http://bugs.gentoo.org/show_bug.cgi?id=225999

--- ./tk/generic/tk.h.orig	2008-02-06 16:31:40.000000000 +0100
+++ ./tk/generic/tk.h	2008-07-24 08:21:46.000000000 +0200
@@ -635,17 +635,15 @@
  *
  *---------------------------------------------------------------------------
  */
-#define VirtualEvent	    (LASTEvent)
-#define ActivateNotify	    (LASTEvent + 1)
-#define DeactivateNotify    (LASTEvent + 2)
-#define MouseWheelEvent     (LASTEvent + 3)
-#define TK_LASTEVENT	    (LASTEvent + 4)
+#define VirtualEvent	    (MappingNotify + 1)
+#define ActivateNotify	    (MappingNotify + 2)
+#define DeactivateNotify    (MappingNotify + 3)
+#define MouseWheelEvent     (MappingNotify + 4)
+#define TK_LASTEVENT	    (MappingNotify + 5)

 #define MouseWheelMask	    (1L << 28)
-
 #define ActivateMask	    (1L << 29)
 #define VirtualEventMask    (1L << 30)
-#define TK_LASTEVENT	    (LASTEvent + 4)
4 编译make
5 安装 sudo make install
6 运行 snavigator&

Tags: , ,

星期五, 22 4 月, 2011 工具

Leave a Reply

1LMooBmUE153Wnd3zDryWvDyXxQudbFxDr