Page 1 of 1

Windows 环境下从源码编译 OpenOCD不成功

Posted: Mon Mar 24, 2025 7:14 am
by 393877719
我按照Windows 环境下从源码编译 OpenOCD的步骤通过MSYS2在windows11下编译,但是一直不成功。在进行到./configure时,有如下提示:

Code: Select all

checking for jimtcl >= 0.79... no
checking for iim.h... no
configure: error: jimtcl is required but not found via pkg-config and system includes
已确定jimtcl是通过git成功获取到的,jimtcl文件夹也不为空。也通过git submodule update --init命令进行了检查,但是,测试过几次,都是在./configure过程中因为找不到jinmtcl报错退出,不能完成编译过程。
不知道有人遇到过同样问题没,怎么解决?
谢谢!
参考:
https://docs.espressif.com/projects/esp ... ndows.html

Re: Windows 环境下从源码编译 OpenOCD不成功

Posted: Tue Jan 13, 2026 4:38 pm
by Airman
同样的问题,已解决
参考csdn文章https://blog.csdn.net/Mooney_yuan/article/details/146482288
需要自行编译安装jimtcl
我是从jimtcl的源仓库直接克隆的
需要跑
make
make install
echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' >> ~/.bashrc
source ~/.bashrc
四条指令 :lol: