ljoolj 发表于 2009-7-3 20:36:32

安装source navigator 出了个问题

前面./configure
make
make instrall
还好。
但一运行就跳出来这一堆

# snavigator
Can't find a usable tk.tcl in the following directories:
    /usr/local/share/tk8.3

/usr/local/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
"bind Listbox <MouseWheel> {
    %W yview scroll units
}"
    (file "/usr/local/share/tk8.3/listbox.tcl" line 182)
    invoked from within
"source "
    invoked from within
"if { && \
      } {
    source
    so..."
    (file "/usr/local/share/tk8.3/tk.tcl" line 308)
    invoked from within
"source /usr/local/share/tk8.3/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 "


This probably means that tk wasn't installed properly.

ljoolj 发表于 2009-7-3 20:39:35

网上找了一下好象要加一个补丁,补丁代码都找到了,但就是不知道这补丁如何打

补丁代码

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)


/*

nihui 发表于 2009-7-3 20:49:01

cd 到 tk 的源码目录
patch -p0 -i tk-8.4-lastevent.patch

tcl/tk broken if built with x11-proto/xproto-7.0.13


需要系统的 tk 包更新了。。

谢谢 ljoolj 啦~

ljoolj 发表于 2009-7-3 20:59:30

谢谢啦,
试一下先

ljoolj 发表于 2009-7-3 21:50:44

出来啦
亲每一个人:lol:

johnson_uestc 发表于 2009-7-26 15:13:35

楼主,你的问题解决了吗?我在Fedora 11下安装时也是这个问题,打了patch后,重新make install也不行,不知道是什么问题。

ljoolj 发表于 2009-7-28 17:26:41

我的对了,

http://bugs.gentoo.org/show_bug.cgi?id=225999
找到 tk-8.4-lastevent.patch 补丁
cd 到 tk 的源码目录,运行这个
patch -p0 -i tk-8.4-lastevent.patch
就对了

nihui 发表于 2009-7-28 17:49:21

顶上去~
magic 的包里有这个补丁么??
页: [1]
查看完整版本: 安装source navigator 出了个问题