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

compilation error #40

Open
poaongithub opened this issue Jun 2, 2020 · 2 comments
Open

compilation error #40

poaongithub opened this issue Jun 2, 2020 · 2 comments

Comments

@poaongithub
Copy link

hi, @donny681, I got compilation error after clone your code and install "idf.py", how to solve it?
Any help appreciated, thanks in advance.

/home/bo/ESP32_CAMERA_QR/main/app_main.c:54:8: error: unknown type name 'esp_ip4_addr_t'
static esp_ip4_addr_t s_ip_addr;
^~~~~~~~~~~~~~
In file included from /home/bo/projects/esp/esp-idf/components/lwip/lwip/src/include/lwip/ip_addr.h:43,
from /home/bo/projects/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:24,
from /home/bo/projects/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/bo/projects/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/bo/projects/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/bo/ESP32_CAMERA_QR/main/app_main.c:27:
/home/bo/ESP32_CAMERA_QR/main/app_main.c: In function 'app_main':
/home/bo/projects/esp/esp-idf/components/lwip/lwip/src/include/lwip/ip4_addr.h:176:65: error: request for member 'addr' in something not a structure or union
#define ip4_addr_get_byte(ipaddr, idx) (((const u8_t*)(&(ipaddr)->addr))[idx])
^

@ArkYk
Copy link

ArkYk commented Jul 6, 2020

@shun-dgut
Copy link

main/app_main.c 修改为下面这样应该就可以了
//static esp_ip4_addr_t s_ip_addr;
static ip4_addr_t s_ip_addr;

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

3 participants