m5stack / M5Stack-Camera

Base espressif esp32-camera
200 stars 104 forks source link

incompatible types when assigning to type 'ip4_addr_t' #33

Open dcmcshan opened 4 years ago

dcmcshan commented 4 years ago

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; ^

EeeeBin commented 4 years ago

QR example now only support idf3.3

kenken64 commented 3 years ago

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

ZRock0 commented 2 years ago

and how to fix?

ZRock0 commented 2 years ago

just delete