M5Stack-Camera icon indicating copy to clipboard operation
M5Stack-Camera copied to clipboard

incompatible types when assigning to type 'ip4_addr_t'

Open dcmcshan opened this issue 5 years ago • 4 comments

M5Stack-Camera/qr/main/main.c:274:17: error: incompatible types when assigning to type 'ip4_addr_t' {aka 'struct ip4_addr'} from type 'esp_ip4_addr_t' {aka 'struct esp_ip4_addr'} s_ip_addr = event->event_info.got_ip.ip_info.ip; ^

dcmcshan avatar Jun 27 '20 04:06 dcmcshan

QR example now only support idf3.3

EeeeBin avatar Jun 28 '20 02:06 EeeeBin

Compiling M5Stack-Camera/wifi/wifi_sta

/esp-idf/components/lwip/lwip/src/include/lwip/ip4_addr.h:207:7: note: expected 'const ip4_addr_t *' {aka 'const struct ip4_addr *'} but argument is of type 'esp_ip4_addr_t *' {aka 'struct esp_ip4_addr *'} char *ip4addr_ntoa(const ip4_addr_t *addr); ^~~~~~~~~~~~ ../main/main.c:239:17: error: incompatible types when assigning to type 'ip4_addr_t' {aka 'struct ip4_addr'} from type 'esp_ip4_addr_t' {aka 'struct esp_ip4_addr'} s_ip_addr = event->event_info.got_ip.ip_info.ip; ^ ../main/main.c: In function 'wifi_init_softap': ../main/main.c:266:3: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations] tcpip_adapter_init(); ^~~~~~~~~~~~~~~~~~

[709/781] Building C object esp-idf/esp32-camera/CMakeFiles/__idf_esp32-camera.dir/sensors/ov5640.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

kenken64 avatar Nov 07 '20 19:11 kenken64

and how to fix?

ZRock0 avatar Mar 12 '22 10:03 ZRock0

just delete

ZRock0 avatar Mar 12 '22 13:03 ZRock0