步驟如下:
$ cd $ git clone git://repo.or.cz/openocd.git $ cd openocd $ ./bootstrap $ ./configure --prefix=$PREFIX $ make /data/data/com.termux/files/usr/include/syslog.h:116: undefined reference to `__android_log_vprint' clang-7: error: linker command failed with exit code 1 (use -v to see invocation) $ vim jimtcl/Makefile +17 LDFLAGS = -llog $ vim Makefile +1276 LDFLAGS = -llog $ make $ make install $ openocd --version Open On-Chip Debugger 0.10.0+dev-00567-gcea40152 (2018-11-07-22:08) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html