Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building failse on Windows #129

Open
wangyiwu opened this issue May 2, 2023 · 1 comment
Open

Building failse on Windows #129

wangyiwu opened this issue May 2, 2023 · 1 comment

Comments

@wangyiwu
Copy link

wangyiwu commented May 2, 2023

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.

image

@gjroots
Copy link

gjroots commented May 14, 2023

I think same issue your are facing #128 , try this same steps may be solve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants