Skip to content

Errors and warnings building esp-idf-ota project #1

Description

@rnfelipe

I'm trying to test the "esp-idf-ota" project on Ubuntu 18.04, but when I run idf.py build I get these warnings and errors:

warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
  ^~~~~~~
../main/main.c: In function 'blink_task':
../main/main.c:60:9: error: implicit declaration of function 'gpio_set_level'; did you mean '_xtos_set_intlevel'? [-Werror=implicit-function-declaration]
         gpio_set_level(BLINK_GPIO, 0);
         ^~~~~~~~~~~~~~
         _xtos_set_intlevel
../main/main.c: In function 'app_main':
../main/main.c:135:2: error: implicit declaration of function 'gpio_pad_select_gpio'; did you mean 'ip6_addr_select_zone'? [-Werror=implicit-function-declaration]
  gpio_pad_select_gpio(BLINK_GPIO);
  ^~~~~~~~~~~~~~~~~~~~
  ip6_addr_select_zone
../main/main.c:136:5: error: implicit declaration of function 'gpio_set_direction' [-Werror=implicit-function-declaration]
     gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
     ^~~~~~~~~~~~~~~~~~
../main/main.c:136:36: error: 'GPIO_MODE_OUTPUT' undeclared (first use in this function); did you mean 'GPIO_SD5_OUT_IDX'?
     gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
                                    ^~~~~~~~~~~~~~~~
                                    GPIO_SD5_OUT_IDX
../main/main.c:136:36: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions