… build the pubsub example in firmware/user/tests/app/mesh/pubsub and deployed it on a Xenon
cd main
make PLATFORM=xenon MODULAR=n DEBUG_BUILD=y TEST=app/mesh/pubsub
dfu-util -d 2b04:d00e -a 0 -s 0x30000 -D …/build/target/main/platform-14/pubsub.bin
If I compile the code below, then I get the following error "undefined reference to `otCliConsoleInit’ ".
Apparently the cli libs are missing in the path.
make PLATFORM=xenon MODULAR=n DEBUG_BUILD=y TEST=app/mesh/cli
Unfortunately I do not know your build system very well…
Where can I find the missing libs and how can I add them to the path?
Am I missing something else?
Yes, I got the submodule dependencies (As far as I understand git the "--recursive" does the same as "git submodule update --init" after clone).
I still get ...
../build/target/user/platform-14/tests/app/mesh/cli//libuser.a(cli.o): In function setup': /Volumes/Media/VMWareShare/Particle/fw-test-mesh-cli/firmware/user/tests/app/mesh/cli/cli.cpp:21: undefined reference to otCliConsoleInit'
collect2: error: ld returned 1 exit status
make: *** [../build/target/main/platform-14/cli.elf] Error 1
If I comment out the "otCliConsoleInit(...)" line and leave the "int8_t meshRssi = otPlatRadioGetRssi(...)" as is the code compiles. The libs containing "otPlatRadioGetRssi(...)" are in the path (../third_party/...).
I just tried doing a monolithic build and I still get an error:
/Users/nrobinson/projects/temp/erich/firmware/main.cpp: In function 'void setup()':
/Users/nrobinson/projects/temp/erich/firmware/main.cpp:17:12: warning: unused variable 'meshRssi' [-Wunused-variable]
int8_t meshRssi = otPlatRadioGetRssi(ot_get_instance()); // this works
^
src/control/storage.cpp:61:50: note: #pragma message: External flash is not supported
#pragma message("External flash is not supported")
^
../build/target/user/platform-14/firmware//libuser.a(main.o): In function `setup':
/Users/nrobinson/projects/temp/erich/firmware/main.cpp:18: undefined reference to `otCliConsoleInit'
collect2: error: ld returned 1 exit status
make: *** [/Users/nrobinson/projects/temp/erich/bin/erich-xenon.elf] Error 1