Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nkolban opened this issue Oct 28, 2016 · 1 comment
Closed

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

nkolban opened this issue Oct 28, 2016 · 1 comment

Comments

@nkolban
Copy link

nkolban commented Oct 28, 2016

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.

@nkolban
Copy link
Author

nkolban commented Oct 28, 2016

This issue was fixed in commit ... 3c071e1

@nkolban nkolban closed this as completed Oct 28, 2016
brentru pushed a commit to adafruit/arduino-esp32 that referenced this issue Oct 22, 2024
* Add color definition

* Replace current colors

* Add some yellow and tweak color names

* Fix

* Add more info about Installing Arduino IDE

* Improvements

* Uppercase

* Make esp32 pull silent

* Enhancements

* Fix

* Fix color codes

* Fix checkmarks

* Add more colors!

* Remove not-working coloring

* Remove mkdir warning when cache is on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant