I’m having problems building demo-c for esp8266 using a Mac
My goal is: to run mos example on a Big Sur host with ESP8266 target
My actions are:
install using brew
mos build --platform esp8266 --clean
The result I see is: Build fail
#if CS_PLATFORM == CS_P_ESP32 (and many other similar)
Neither CS_PLATFORM nor CS_P_ESP32 appear to be defined, consequently both default to 0. This might mean that this line evaluates to true.
Depending on compiler mode (treat all warnings as errors, for instance), this is sufficient to fail the build.
I get the same result with both cloud-based and local builds.
- My expectation & question is:
Building the example doesn’t work, but I’d expect it to.
On the same machine, I create a Debian VM, passthrough the USB serial port connected to the ESP8266 device, install MOS from apt-get and I can clone, build and flash the same code to the device (so it’s not a hardware setup or build config issue).