Skip to content

Unable to compile with 2016-10-27 version of ESP-IDF #28

@nkolban

Description

@nkolban

I am trying to build the arduino-esp32 component loaded into an ESP-IDF template project and getting compilation errors:

Here is an example:

make[1]: Entering directory '/home/kolban/esp32/Espruino/template/build/arduino-esp32'
CXX libraries/WiFi/src/WiFiScan.o
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp: In static member function 'static void WiFiScanClass::_scanDone()':
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp:102:53: error: 'esp_wifi_get_ap_num' was not declared in this scope
     esp_wifi_get_ap_num(&(WiFiScanClass::_scanCount));
                                                     ^
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp:104:42: error: expected type-specifier before 'wifi_ap_list_t'
         WiFiScanClass::_scanResult = new wifi_ap_list_t[WiFiScanClass::_scanCount];
                                          ^
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp:104:42: error: expected ';' before 'wifi_ap_list_t'
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp:106:65: error: 'wifi_ap_list_t' was not declared in this scope
             esp_wifi_get_ap_list(&(WiFiScanClass::_scanCount), (wifi_ap_list_t*)_scanResult);
                                                                 ^
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp:106:80: error: expected primary-expression before ')' token
             esp_wifi_get_ap_list(&(WiFiScanClass::_scanCount), (wifi_ap_list_t*)_scanResult);
                                                                                ^
/home/kolban/esp32/Espruino/template/components/arduino-esp32/libraries/WiFi/src/WiFiScan.cpp:106:92: error: 'esp_wifi_get_ap_list' was not declared in this scope
             esp_wifi_get_ap_list(&(WiFiScanClass::_scanCount), (wifi_ap_list_t*)_scanResult);

On 2016-10-27 there were some checkins to the Github ESP-IDF repository. These changes some of the header files and signatures of some of the APIs used by the implementation of Arduino-ESP32. I believe that these are what are causing us not to be able to compile. I was going to create a fork and make the changes to reflect the new ESP-IDF library but then I realized that this would break an Arduino download. Hence I'm just raising this issue in the hope that you can resynchronize the Arduino-ESP32 project with the current release of ESP-IDF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions