esp32_nat_router
esp32_nat_router copied to clipboard
Building failse on Windows
I tried 3 ways to build but both failed.
First way: I first installed the IDF following the instructions here: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/windows-setup.html#get-started-windows -first-steps
After the installation was complete, I entered the command line screen via the ESP-IDF 5.0 CMD shortcut at the desktop. I use the cd command to go to the directory containing the ESP32_NAT source code that I cloned from github.
Then I proceed to build with the command: idf.py build
then I get the error message:
....
C:/Espressif/projects/esp32_nat_router/components/cmd_router/cmd_router.c:15:10: fatal error: esp_spi_flash.h: No such file or directory
....
C:/Espressif/projects/esp32_nat_router/components/cmd_nvs/cmd_nvs.c:295:22: error: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int' } [-Werror=format=]
295 | printf("%d\n", value);
2nd way: I use PlanformIO
When I click build, I get the error:
C:/Espressif/projects/esp32_nat_router/components/cmd_nvs/cmd_nvs.c:295:22: error: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int' } [-Werror=format=]
295 | printf("%d\n", value);
| ~^ ~~~~~
| | |
| int int32_t {aka long int}
third way: Using Eclipse (https://github.com/espressif/idf-eclipse-plugin/blob/master/README.md)
C:/Users/vuong/eclipse-esp32-workspace/esp32-nat/components/cmd_system/cmd_system.c:18:10: fatal error: driver/rtc_io.h: No such file or directory
18 | #include "driver/rtc_io.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
I think same issue your are facing #128 , try this same steps may be solve your issue.