Edge Impulse firmware for Seeed Wio Terminal via Arduino-CLI

Hi I got the following errors when I try to build the firmware myself for my WioTerminal following the instruction in Seeed_Arduino_edgeimpulse. I did not modify any of the files I download from Git. Just added a libraries folder with all the library files needed for this example in it and setting the User in arduino-cli.yaml to C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse

Thanks in Advance!.

The following are the messages I copied from my cmd windows:
Building Seeed_Arduino_edgeimpulse.ino
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
Still building…
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:1:0:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.h:37:8: error: ‘Stream’ does not name a type; did you mean ‘Stream_h’?
extern Stream* ei_get_serial();
^~~~~~
Stream_h
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmds.h:26:0,
from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h:33,
from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:3:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_interface.h: In function ‘void ei_at_cmd_print_info()’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_interface.h:175:9: error: ‘Serial’ was not declared in this scope
Serial.printf(“AT+%s - %s”, ei_at_cmds[ix].cmd, ei_at_cmds[ix].description);
^~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_interface.h:175:9: note: suggested alternative: ‘Sercom’
Serial.printf(“AT+%s - %s”, ei_at_cmds[ix].cmd, ei_at_cmds[ix].description);
^~~~~~
Sercom
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_interface.h: In function ‘void ei_at_cmd_exec(ei_at_cmd_t, char**)’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_interface.h:226:13: error: ‘Serial’ was not declared in this scope
Serial.printf(“Unexpected arg count (%u)\n”, cmd.arg_count);
^~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_interface.h:226:13: note: suggested alternative: ‘Sercom’
Serial.printf(“Unexpected arg count (%u)\n”, cmd.arg_count);
^~~~~~
Sercom
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h:34:0,
from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:3:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h: At global scope:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:123:23: error: expected ‘)’ before ‘’ token
Repl(SerialStream serial)
^
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:41:22: error: ‘Stream’ does not name a type; did you mean ‘Stream_h’?
#define SerialStream Stream
^
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:175:5: note: in expansion of macro ‘SerialStream’
SerialStream *getSerial()
^~~~~~~~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:41:22: error: ‘Stream’ does not name a type; did you mean ‘Stream_h’?
#define SerialStream Stream
^
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:420:5: note: in expansion of macro ‘SerialStream’
SerialStream *pc;
^~~~~~~~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h: In member function ‘virtual void Repl::reprintReplState()’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:172:9: error: ‘pc’ was not declared in this scope
pc->printf("\33[2K\r> %s", s.c_str());
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:172:9: note: suggested alternative: ‘Tc’
pc->printf("\33[2K\r> %s", s.c_str());
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h: In member function ‘void Repl::rx_callback(char)’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:207:21: error: ‘pc’ was not declared in this scope
pc->printf("\033[u"); // restore current position
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:207:21: note: suggested alternative: ‘Tc’
pc->printf("\033[u"); // restore current position
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:226:21: error: ‘pc’ was not declared in this scope
pc->printf("\033[u"); // restore current position
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:226:21: note: suggested alternative: ‘Tc’
pc->printf("\033[u"); // restore current position
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:260:25: error: ‘pc’ was not declared in this scope
pc->printf("\033[u"); // restore current position
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:260:25: note: suggested alternative: ‘Tc’
pc->printf("\033[u"); // restore current position
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:267:25: error: ‘pc’ was not declared in this scope
pc->print(’\033’);
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:267:25: note: suggested alternative: ‘Tc’
pc->print(’\033’);
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:283:25: error: ‘pc’ was not declared in this scope
pc->write("\033[u"); // restore current position
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:283:25: note: suggested alternative: ‘Tc’
pc->write("\033[u"); // restore current position
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:289:25: error: ‘pc’ was not declared in this scope
pc->write(’\033’);
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:289:25: note: suggested alternative: ‘Tc’
pc->write(’\033’);
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:299:21: error: ‘pc’ was not declared in this scope
pc->write(’\033’);
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:299:21: note: suggested alternative: ‘Tc’
pc->write(’\033’);
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:313:13: error: ‘pc’ was not declared in this scope
pc->write©;
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:313:13: note: suggested alternative: ‘Tc’
pc->write©;
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h: In member function ‘void Repl::handleBackspace()’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:382:13: error: ‘pc’ was not declared in this scope
pc->printf("\b \b");
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:382:13: note: suggested alternative: ‘Tc’
pc->printf("\b \b");
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:387:13: error: ‘pc’ was not declared in this scope
pc->printf("\r\033[K> %s\033[%dG", v.c_str(), curr_pos + 2);
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:387:13: note: suggested alternative: ‘Tc’
pc->printf("\r\033[K> %s\033[%dG", v.c_str(), curr_pos + 2);
^~
Tc
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h: In member function ‘void Repl::runBuffer()’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:415:13: error: ‘pc’ was not declared in this scope
pc->printf("> “);
^~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:415:13: note: suggested alternative: ‘Tc’
pc->printf(”> ");
^~
Tc
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\ingestion-sdk-c\ei_run_impulse.cpp:24:0:
./src/setup.h:37:8: error: ‘Stream’ does not name a type; did you mean ‘fread’?
extern Stream
ei_get_serial();
^~~~~~
fread
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:3:0:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h: In constructor 'AtCmdRepl::AtCmdRepl(Stream
)’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h:55:34: error: no matching function for call to ‘Repl::Repl(Stream*&)’
_terminate_thread(false)
^
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h:34:0,
from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:3:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:113:7: note: candidate: Repl::Repl(const Repl&)
class Repl : public Thread, public IRepl
^~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:113:7: note: no known conversion for argument 1 from ‘Stream*’ to ‘const Repl&’
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:113:7: note: candidate: Repl::Repl(Repl&&)
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\repl.h:113:7: note: no known conversion for argument 1 from ‘Stream*’ to ‘Repl&&’
In file included from C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:3:0:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h: In member function ‘void AtCmdRepl::break_inference_loop_irq()’:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h:114:19: error: ‘class Repl’ has no member named ‘getSerial’
if (_repl.getSerial()->available() && _repl.getSerial()->read() == ‘b’)
^~~~~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\repl\at_cmd_repl_freertos.h:114:53: error: ‘class Repl’ has no member named ‘getSerial’
if (_repl.getSerial()->available() && _repl.getSerial()->read() == ‘b’)
^~~~~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp: At global scope:
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:21:23: error: ‘ei_get_serial’ was not declared in this scope
static AtCmdRepl repl(ei_get_serial());
^~~~~~~~~~~~~
C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\src\setup.cpp:21:23: note: suggested alternative: ‘ei_get_serial_byte’
static AtCmdRepl repl(ei_get_serial());
^~~~~~~~~~~~~
ei_get_serial_byte
Still building…
Multiple libraries were found for “Seeed_Arduino_FreeRTOS.h”
Used: C:\Users\Wee\Documents\Arduino\Seeed_Arduino_edgeimpulse\libraries\Seeed_Arduino_FreeRTOS
Not used: C:\Users\Wee\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.8.2\libraries\Seeed_Arduino_FreeRTOS

Error during build: exit status 1
Press any key to resume …