Cannot compile in hardware code lab

22 views
Skip to first unread message

Hannan Solo

unread,
Mar 6, 2021, 4:31:49 PM3/6/21
to openthread-users

I am right now trying to go through the hardware codelab for openthread using 4 Nordic boards. Yet on step three, when I need to compile, I get a weird
Cmake error `CMake Error at src/posix/CMakeLists.txt:48 (message):
  Failed to find readline`

I am running a fedora 33 workstation and made sure all the dependencies are installed. I can even connect to the board and flash programs on to them.

Has anyone had this error, what should I do?

Yakun Xu

unread,
Mar 6, 2021, 8:18:52 PM3/6/21
to openthread-users
It seems readline is not installed on your workstation.

I'm not a fedora user, but you may try install readline by:

sudo yum install readline-devel

Or you may disable readline support in OpenThread with an additional argument:

rm -rf build/posix
./script/cmake-build posix -DOT_DAEMON=ON -DOT_READLINE=OFF

Hannan Solo

unread,
Mar 7, 2021, 3:09:06 AM3/7/21
to openthread-users
It worked!!!! Thank you so much, all I needed was the yum install.  Should I probably add that as a PR to the code lab reqs?
Reply all
Reply to author
Forward
0 new messages