I fail to compile example code from Mbed6 documentation with mbed cli2:
Following the guideline in https://os.mbed.com/docs/mbed-os/v6.10/build-tools/use.html I started with:
mbed-tools new ethernet_test
Then, I switched to the directory ethernet_test and replaced the default main.cpp by the example code taken from https://os.mbed.com/docs/mbed-os/v6.10/apis/ethernet.html, see the code for main.cpp at the bottom.
In the next step, I configured my little project for FRDM K64F board with ARM_GCC toolchain:
mbed-tools configure -m K64F -t GCC_ARM
and attempted to compile the code:
mbed-tools compile -m K64F -t GCC_ARM
Unluckily, the compilation failed with the error:
…/…/…/…/main.cpp:6:10: fatal error: EthernetInterface.h: No such file or directory
6 | #include “EthernetInterface.h”
Is there anything else I need to take care of?
I noticed the mbed-tools complained about missing modules “prettytable”,“intelhex”,“jinja2”,“python3”, but did not abort the execution. Well, prettytable and intelhex are actually available, but I guess / hope that this is not related to the issue.