分类: LINUX
2011-06-29 19:28:44
(1)到官方网站获取软件包
(2)解压缩 tar zxvf s ourcenav-6.0.tar.gz
进入tk文件夹创建tk-8.4-lastevent.patch文件内容为
--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
+++ 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)
/*
保存好后。在tk目录下执行patch -p0 -i tk-8.4-lastevent.patch.
yum install tk-devel 或 yum install libX11-devel.i386 -y 否则安装后会有问题。
(3)./configure --prefix=/usr/local/sourcenav
make
make install
(4)在桌面上生成一个链接: 1、点击右键“创建启动器...” 2、类型是“应用程序” 3、名称是SourceNavigator 4、命令是./usr/local/sourcenavigator/bin/snavigator 确定就可以启动程序了 以后每次按桌面图标就非常方便了!!