NodeMCU 固件编译常见问题答疑
smartconfig.h: No such file or directory
- 报错信息:
wifi.c:20:31: fatal error: smart/smartconfig.h: No such file or directory
#include "smart/smartconfig.h"
^
compilation terminated.
../../Makefile:422: recipe for target '.output/eagle/debug/obj/wifi.o' failed
make[2]: *** [.output/eagle/debug/obj/wifi.o] Error 1
make[2]: Leaving directory '/root/workspace/app/modules'
../Makefile:380: recipe for target '.subdirs' failed
make[1]: *** [.subdirs] Error 2
make[1]: Leaving directory '/root/workspace/app'
Makefile:380: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
script returned exit code 2
```
- 解决方法:
#include "smart/smartconfig.h" 修改为 #include "smartconfig.h"。更多信息请参考这个 issues 2928。
recipe for target '.subdirs' failed
- 报错信息:
Traceback (most recent call last):
File "/root/workspace/tools/toolchains/esptool.py", line 37, in <module>
import serial
ImportError: No module named serial
../Makefile:264: recipe for target '.output/eagle/debug/bin/eagle.app.v6.bin' failed
make[1]: *** [.output/eagle/debug/bin/eagle.app.v6.bin] Error 1
make[1]: Leaving directory '/root/workspace/app'
Makefile:380: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
```
- 解决方法: