Building OOCD -- error: jimtcl not found

My apologies in advance for a dumb noob question! What’s worse is… I ALREADY SOLVED THIS ONCE, but on a different PC…

Anyway, I downloaded the latest snapshot of OOCD, and ran the following:

git init

./bootstrap

git init submodule

git submodule update

./configure

…and…

configure: error: jimtcl not found, run git submodule init and git submodule update.

I think I remember the last time I did this, that the git init submodule and git submodule update commands would spit out text when I did them… maybe the update even downloaded something? This time, the update command returns absolutely nothing, but git init submodule did say that it created an empty submodule. I also think that I remember I needed to install another package from Synaptic the last time this happened (I had git-core but not git… but then I was on Ubuntu and now I am using PCLOS, which doesn’t have the same entries in its repo).

The problem is that I know absolutely zero about this software (git), so I am just copy pasting commands I’ve seen posted online.

Can anyone suggest anything I should try? Am I retarded or what?

SOLVED –

For some reason that I am unsure of, the source had to be pulled from the repository by GIT. Downloading it as a tar.gz and then doing the steps I mentioned above fails to pull in anything for JimTCL, and of course the configure script blows up when it finds that folder empty.

When I pull it from the repository using GIT, everything looks almost exactly the same as above, except that it actually downloads JimTCL, and everything builds normally.

Anyway, I am now debugging code on my little eval board (an STM32VLDISCOVERY) with GDB + OOCD, and everything looks to be working! Woohoo!

:smiley:

I did fetch the project by git using

git clone GitHub - openocd-org/openocd: Official OpenOCD Read-Only Mirror (no pull requests)

But get the same (or very similar) error:

checking for jimtcl >= 0.79… no
checking for jim.h… no
configure: error: jimtcl is required but not found via pkg-config and system includes

In fact the folder jimtcl is empty.

In gitlab->openocd the folder jimtcl is denoted as:

jimtcl: update to version 0.83

I d/lded jimtcl from it’s of git repository (and it seems to work) and then copied the jimtcl folder to where the empty jimtcl folder in openocd was and now there is jim.h.

But I still get the same error message from ./configure

now instead of separately cloning the submodules I did

git clone --recurse-submodules GitHub - openocd-org/openocd: Official OpenOCD Read-Only Mirror (no pull requests)

and now the git indeed reports:

Submodule path ‘jimtcl’: checked out ‘f160866171457474f7c4d6ccda70f9b77524407e’

Submodule path ‘src/jtag/drivers/libjaylink’: checked out ‘0d23921a05d5d427332a142d154c213d0c306eb1’

and the folder jimtcl is not empty (as it had been after

git init submodule

git submodule update

).

but still the same error message seemingly requiring jimtcl >= 0.79

Not really “solved” but after doing

export PKG_CONFIG_PATH=/home/mschnell/development/openocd/jimtcl/

./configure runs

but “make” results in

./src/helper/jim-nvp.h:23:10: fatal error: jim.h: No such file or directory
23 | #include <jim.h>

SOLVED !!!

I did not succeed in recompiling openocd, but my system runs anyways.

I needed to update the PicoProbe firmware.

With lsusb same now says:

ID 2e8a:000c Raspberry Pi Picoprobe (CMSIS-DAP)

while the older firmware I used with the SDK in Windows, did not have the expression in brackets.

Obviously openocd finds the adapter according to the expression. I tested, that it also finds the “debug probe” which also provides " (CMSIS-DAP)"

In fact in the adapter list of the openocd executable that comes with the PICO SDK, there is

17: cmsis-dap

Thanks for listening !