Error undefined reference to `otNcpInit' when make openthread

64 views
Skip to first unread message

Parth Kabariya

unread,
Sep 6, 2018, 2:36:55 AM9/6/18
to openthread-users
I am trying to configure open-thread. I am able to run ./configure but after that, can't run makewith two errors: I am following  this for Openthread setup https://github.com/openthread/wpantund/wiki/OpenThread-Simulator-Tutorial


error : 
 
 Making all in ncp
CCLD     ot-ncp-ftd
ot_ncp_ftd-main.o: In function `main':
/home/parth/openthread-master/examples/apps/ncp/main.c:84: undefined 
reference to `otNcpInit'
../../../examples/platforms/posix/libopenthread-posix.a(libopenthread_posix_a-uart-posix.o): In function `platformUartProcess':
/home/parth/openthread-master/examples/platforms/posix/uart-posix.c:265: undefined reference to `otPlatUartReceived'
/home/parth/openthread-master/examples/platforms/posix/uart-posix.c:283: undefined reference to `otPlatUartSendDone'
collect2: error: ld returned 1 exit status
Makefile:1235: recipe for target 'ot-ncp-ftd' failed
make[4]: *** [ot-ncp-ftd] Error 1
Makefile:485: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:491: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:652: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:578: recipe for target 'all' failed
make: *** [all] Error 2

Jonathan Hui

unread,
Sep 6, 2018, 3:33:06 AM9/6/18
to parthkaba...@gmail.com, openthread-users
Unfortunately, that wiki page is out-of-date. Try following the Simulating a Thread network using OpenThread codelab.

--
Jonathan Hui

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To post to this group, send email to openthre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/cacec40e-19b4-4495-b6c0-90af1ef6acbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Parth Kabariya

unread,
Sep 6, 2018, 5:33:57 AM9/6/18
to openthread-users
thanks :)
Reply all
Reply to author
Forward
0 new messages