SmartThingsCommunity / st-device-sdk-c-ref

SmartThings SDK Reference for Direct Connected Devices for C
Apache License 2.0
118 stars 173 forks source link

About ESP8266 compilation issues #119

Closed hangsome-xiang closed 1 year ago

hangsome-xiang commented 1 year ago

I encountered a problem that I could not solve by myself. The specific output log is as follows: Generating esp8266.project.ld Traceback (most recent call last): File "/home//document/st-device-sdk-c-ref/bsp/esp8266/tools/ldgen/ldgen.py", line 150, in main() File "/home//document/st-device-sdk-c-ref/bsp/esp8266/tools/ldgen/ldgen.py", line 106, in main dump = StringIO(subprocess.check_output([objdump, "-h", library]).decode()) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 21: ordinal not in range(128) make: [/home//document/st-device-sdk-c-ref/bsp/esp8266/components/esp8266/Makefile.projbuild:74:/home/***/document/st-device-sdk-c-ref/apps/esp8266/switch_example/build/esp8266/esp8266.project.ld] error 1

Kwang-Hui commented 1 year ago

Hi, as you can see from the submodule configuration here. it is depends on ESP8266_RTOS_SDK from Espressif. I think there is some environment problem while setting up ESP8266_RTOS_SDK. Coud you refer https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/index.html ?