Open dcmcshan opened 4 years ago
QR example now only support idf3.3
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
and how to fix?
just delete
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; ^