nam问题
来源:互联网 发布:手游编程用什么语言 编辑:程序博客网 时间:2024/06/10 02:23
1.将nam下configure 中ZLIB版本号改为 和 ns-allinone-2.33中zlib版本一样
2.
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
经过查证,ns-2.34及以上版本不会出现这种问题,而以下版本会出现问题。解决方法是打个patch,然后重装,patch内容如下:
--- tk8.4.18-orig/generic/tkBind.c 2006-07-21 08:26:54.000000000 +0200
+++ tk8.4.18/generic/tkBind.c 2008-07-05 12:17:10.000000000 +0200
@@ -586,6 +586,9 @@
/* ColormapNotify */ COLORMAP,
/* ClientMessage */ 0,
/* MappingNotify */ 0,
+#ifdef GenericEvent
+ /* GenericEvent */ 0,
+#endif
/* VirtualEvent */ VIRTUAL,
/* Activate */ ACTIVATE,
/* Deactivate */ ACTIVATE,
Network Animator Problem : [code omitted because of length]
nam: [code omitted because of length] : no event type or button # or keysym while executing "bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D / 120) * 4}] units }" invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D)}] units } bind Li..."
Solution : Need to install Patch for NAM.
1. Go to directory tk8.4.18
rabin@ubuntu:~$ cd ns-allinone-2.33/
rabin@ubuntu:~/ns-allinone-2.33$ cd tk8.4.18/
rabin@ubuntu:~/ns-allinone-2.33/tk8.4.18$
2. Create new document and name it tk-8.4-lastevent.patch
3. Copy the following lines to the file and save it
Source: Jeffrey Gardner (je_fro) <jeffrey.e.gardner@comcast.net> - http://overlays.gentoo.org/dev/je_fro/browser/dev-lang/tk/files/tk-8.4-lastevent.patch
Upstream: N/A
Reason: Fix ABI incompatibility introduced by x11-proto/xproto-7.0.13 (bug #225999)
--- 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)
/*
4. Open Terminal and go to same directory and do the following command to run patch.
rabin@ubuntu:~/ns-allinone-2.33/tk8.4.18$ patch -p0 < ./tk-8.4-lastevent.patch
5. Go to rabin@ubuntu:~$ cd ns-allinone-2.33/
6. Install ns2.33 again.
rabin@ubuntu:~/ns-allinone-2.33$ ./install
7. Run nam
rabin@ubuntu:/ns-allinone-2.33$ nam
8. Enjoy.
- nam问题
- nam问题终极解决方法!
- NS2-NAM
- __cyg_profile_func_enter print function nam
- nam不能使用,解决办法
- ns2/nam与nam实现相关的文件
- ns2/nam与nam实现相关的文件
- 当调用nam时错误
- nam和xgraph用法2
- Leach协议nam过程实现
- NAM中设置数据流的颜色
- android: ERROR: unknown virtual device nam
- NS2仿真中nam节点颜色设置
- leach协议的nam过程实现!(转)
- NS2工具(cbrgen,setdest,threshold,nam)
- leach协议的nam过程实现!(转)
- NS2仿真中nam节点颜色设置
- Ubuntu 15.10安装ns2.35+nam
- Android 使用GSON / JAVA使用genson
- 使用assembly将maven项目pom.xml中的jar包打包
- Whois查询接口文档
- Python中的全局变量操作
- fibonacci卷积公式的使用
- nam问题
- poj1088--滑雪(经典dp)
- 灵活顶点格式--Flexible Vertex Format, FVF
- javascript作用域scope例子
- Qt中出现的错误总结
- Nginx动静分离经典案例配置
- H264 获取SPS与PPS(附源码)
- mvc:view-controller 用法
- 思科与华为的区别