andriyadi / esp32-custom-vision

A simple face recognition using ESP32 Microcontroller with camera, and leveraging cloud-based inference powered by Azure Custom Vision.
Apache License 2.0
50 stars 14 forks source link

Make Error #1

Open Jackkt opened 5 years ago

Jackkt commented 5 years ago

Hey, Im using ESP-EYE and the mingw32 console and I get the error:

$ make flash monitor CXX build/CustomVisionClient/CustomVisionClient.o C:/msys32/home/USERNAME/esp/esp32-custom-vision/components/CustomVisionClient/CustomVisionClient.cpp: In member function 'esp_err_t CustomVisionClient::detect(camera_fb_t*, CustomVisionClient::CustomVisionDetectionResult_t*, float, bool, uint8_t**, size_t*)': C:/msys32/home/USERNAME/esp/esp32-custom-vision/components/CustomVisionClient/CustomVisionClient.cpp:308:9: error: 'struct esp_http_client_config_t' has no member named 'is_async' config.is_async = false; ^ C:/msys32/home/Taylan/esp/esp32-custom-vision/components/CustomVisionClient/CustomVisionClient.cpp:323:14: error: 'ESP_ERR_HTTP_EAGAIN' was not declared in this scope if (err != ESP_ERR_HTTP_EAGAIN) { ^ make[1]: *** [/home/USERNAME/esp/esp-idf/make/component_wrapper.mk:286: CustomVisionClient.o] Error 1 make: *** [C:/msys32/home/USERNAME/esp/esp-idf/make/project.mk:468: component-CustomVisionClient-build] Error 2 I have changed the user name for privacy but everything is exact. The hello world from the examples folder works normally. Thank you in advance and sorry if there is an obvious answer.

ivanb94 commented 5 years ago

Hi @Jackkt,

Error "... has no member named 'is_async'" is caused by using outdated version of esp-idf library which doesn't support the mentioned features. You should pull newer version.

See this link: https://docs.espressif.com/projects/esp-idf/en/v3.1/get-started/index.html#updating-esp-idf

When you update the library and the error is resolved, you could mark this issue as closed.