nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32

Home Page:https://nodemcu.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory

vidalouiswang opened this issue · comments

Expected behavior

Build successsfully.

Actual behavior

CC app/platform/sdcard.c
CC app/platform/ucg_nodemcu_hal.c
AR app/platform/
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libplatform.a
make[2]: Leaving directory '/home/vidawang/nodemcu-firmware/app/platform'
make[2]: Entering directory '/home/vidawang/nodemcu-firmware/app/libc'
DEPEND: CC app/libc/math.c
DEPEND: CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
DEPEND: CC app/libc/stdlib.c
DEPEND: CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
CC app/libc/stdlib.c
CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
../../Makefile:422: recipe for target '.output/eagle/debug/obj/snprintf.o' failed
make[2]: *** [.output/eagle/debug/obj/snprintf.o] Error 1
make[2]: Leaving directory '/home/vidawang/nodemcu-firmware/app/libc'
../Makefile:380: recipe for target '.subdirs' failed
make[1]: *** [.subdirs] Error 2
make[1]: Leaving directory '/home/vidawang/nodemcu-firmware/app'
Makefile:380: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
make: Leaving directory '/home/vidawang/nodemcu-firmware'

Test code

Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.

make LUA=53

NodeMCU startup banner

Cloned from the branch release yesterday.

Hardware

Ubuntu 18.04

And then I add include to the file nodemcu-firmware/app/libc/snprintf.c like this:
屏幕截图 2021-05-22 235336
It doesn't work.

did you do a git submodule update?

On Sat, May 22, 2021, 11:55 vidalouiswang @.***> wrote: And then I add include to the file nodemcu-firmware/app/libc/snprintf.c like this: [image: 屏幕截图 2021-05-22 235336] https://user-images.githubusercontent.com/26226049/119232795-109adc80-bb59-11eb-8e50-c648ca9cb979.png It doesn't work. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3434 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALQLTOYSV7SY5GBARTOPCLTO7HVZANCNFSM45KYLGXA .

Thank you, I used "git clone --recurse-submodules -b release https://github.com/nodemcu/nodemcu-firmwa
re.git" and it worked. Thank you.