insight-6.8调试工具安装

news/2024/7/6 1:57:24

错误信息:

qiang@LinuxSir:~$ sudo arm-elf-insight
Tk_Init failed: Can't find a usable tk.tcl in the following directories:
    /usr/local/share/tk8.4 /usr/local/lib/tk8.4 /usr/lib/tk8.4 /usr/local/library /usr/library /usr/tk8.4.1/library /tk8.4.1/library

/usr/local/share/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
"bind Listbox <MouseWheel> {
    %W yview scroll [expr {- (%D / 120) * 4}] units
}"
    (file "/usr/local/share/tk8.4/listbox.tcl" line 182)
    invoked from within
"source /usr/local/share/tk8.4/listbox.tcl"
    (in namespace eval "::" script line 1)
    invoked from within
"namespace eval :: [list source [file join $::tk_library $file.tcl]]"
    (procedure "SourceLibFile" line 2)
    invoked from within
"SourceLibFile listbox"
    (in namespace eval "::tk" script line 4)
    invoked from within
"namespace eval ::tk {
    SourceLibFile button
    SourceLibFile entry
    SourceLibFile listbox
    SourceLibFile menu
    SourceLibFile panedwindow
    SourceLibFile ..."
    invoked from within
"if {$::tk_library ne ""} {
    if {[string equal $tcl_platform(platform) "macintosh"]} {
    proc ::tk::SourceLibFile {file} {
        if {[catch {
        namesp..."
    (file "/usr/local/share/tk8.4/tk.tcl" line 393)
    invoked from within
"source /usr/local/share/tk8.4/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

编译insight-6.8前必须修改insight-6.8的源代码。
1)修改insight-6.8/tk/generic/tk.h
将(line 653)
#define VirtualEvent (LASTEvent)
#define ActivateNotify (LASTEvent + 1)
#define DeactivateNotify (LASTEvent + 2)
#define MouseWheelEvent (LASTEvent + 3)
#define TK_LASTEVENT (LASTEvent + 4)
改为:
#define VirtualEvent (MappingNotify)
#define ActivateNotify (MappingNotify + 1)
#define DeactivateNotify (MappingNotify + 2)
#define MouseWheelEvent (MappingNotify + 3)
#define TK_LASTEVENT (MappingNotify + 4)
并将随后的#define TK_LASTEVENT (LASTEvent + 4)删除(line 661附近)
2)修改insight-6.8/tk/generic/tkBind.c
在line 586和line 587之间增加
#ifdef GenericEvent
/* GenericEvent */ 0,
#endif

经测试,已经可以正常启动arm-linux-insight


补充一下:我安装的tk8.5和tcl8.5


http://www.niftyadmin.cn/n/3390064.html

相关文章

技术成就梦想【我与51CTO的故事】

最初与51CTO结缘是在2009年的年初&#xff0c;我搜索一篇关于exchange 2003 OWA更改密码的文章&#xff0c;这一搜不当紧&#xff0c;搜了一个技术大牛出来&#xff0c;而这个技术大牛就是当时我们学校的陈宣宋老师&#xff0c;而我们的陈老师竟然是在51CTO上写博客&#xff0c…

Ubuntu下编译insight错误解决

错误&#xff1a; cc1: warnings being treated as errors .././gdb/cli/cli-cmds.c: In function ‘pwd_command’: .././gdb/cli/cli-cmds.c:323: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result make[2]: *** [cli-cmds.o] 错误…

Python 1-18 字典

Python 1-18 字典 Python 的字典数据类型采用键值对 (key:value) 的形式&#xff0c;根据 key 的值计算 value 的地址&#xff0c;具有非常快的查取和插入速度。 例如&#xff0c;用 list 实现成绩单&#xff1a; # 给定一个名字&#xff0c;要查找对应的成绩&#xff0c;就…

30个linux系统监控命令

原文网址:https://www.cyberciti.biz/tips/top-linux-monitoring-tools.html 30 Linux System Monitoring Tools Every SysAdmin Should Know last updated January 8, 2018 in CategoriesCentOS, Debian Linux, Howto, Linux, Monitoring,Networking, RedHat/Fedora Linux, …

压缩编码M-JPEG、MPEG4、H.264

M-JPEG、MPEG4、H.264 压缩方式是网络 视频 服务器和网络摄像机 的核心技术 &#xff0c;压缩方式很大程度上决定着图像的质量、压缩比、传输 效率、传输速度等性能&#xff0c;它是评价网络视频服务器和网 络摄像机性能优劣的重要一环。随着多媒体技术的发展 &#xff0c;相…

年月日三联动下拉框

<HTML> <HEAD> <title>年月日三联动下拉框</title> <meta http-equivContent-Type contenttext/html; charsetgb2312> <meta nameauthor contenthttp://singlepine.cnblogs.com/> </HEAD> <body&g…

Python 1-16 练习三

Python 1-16 练习三 一、判断季节 用户输入月份&#xff0c;判断这个月是哪个季节&#xff1f; 3&#xff0c;4&#xff0c;5月----春季 6&#xff0c;7&#xff0c;8----夏季 9&#xff0c;10&#xff0c;11—秋季 12&#xff0c;1&#xff0c;2----冬季 # 接收用户输入的月…

SQL学习笔记六联合结果集union

联合结果集新建临时工数据表CREATE TABLE T_TempEmployee (FIdCardNumber VARCHAR(20),FName VARCHAR(20),FAge int,PRIMARY KEY(FIdCardNumber));INSERT INTO T_TempEmployee(FIdCardNumber,FName,FAge) VALUES(1234567890121,Sarani,33);INSERT INTO T_TempEmployee(FIdCardN…