Skip to content
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

can't compile on macos #164

Closed
Keoni80 opened this issue May 17, 2019 · 10 comments
Closed

can't compile on macos #164

Keoni80 opened this issue May 17, 2019 · 10 comments

Comments

@Keoni80
Copy link

Keoni80 commented May 17, 2019

trying to compile the basic example and always have the same error:

/Users/juan/Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp: In member function 'void POWER::powerOFF()':
/Users/juan/Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp:360:35: error: 'ESP_SLEEP_WAKEUP_ALL' was not declared in this scope
esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_ALL);

                               ^

/Users/juan/Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp:361:28: error: 'gpio_deep_sleep_hold_dis' was not declared in this scope
gpio_deep_sleep_hold_dis();

                        ^

Se encontraron múltiples librerías para "SD.h"
Usado: /Users/juan/Documents/Arduino/hardware/espressif/esp32/libraries/SD
No usado: /Applications/Arduino.app/Contents/Java/libraries/SD
exit status 1
Error compilando para la tarjeta M5Stack-Core-ESP32.

it works fine on windows :S

@lovyan03
Copy link
Contributor

Probably, need update ArduinoESP32 (v1.0.2)

@Keoni80
Copy link
Author

Keoni80 commented May 20, 2019

how do i do that?

@Keoni80
Copy link
Author

Keoni80 commented May 20, 2019

done, i deleted the main folder, and then reinstall , thanks

@brentru
Copy link

brentru commented May 20, 2019

@lovyan03 Having this issue as well. Latest ESP32 Board support package and latest M5Stack library version.

Also using macOS

/Users/brentrubell/Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp: In member function 'void POWER::powerOFF()':
/Users/brentrubell/Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp:360:35: error: 'ESP_SLEEP_WAKEUP_ALL' was not declared in this scope
   esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_ALL);

                                   ^
/Users/brentrubell/Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp:361:28: error: 'gpio_deep_sleep_hold_dis' was not declared in this scope
   gpio_deep_sleep_hold_dis();

                            ^
Multiple libraries were found for "WiFi.h"
 Used: /Users/brentrubell/Documents/Arduino/hardware/espressif/esp32/libraries/WiFi
 Not used: /Users/brentrubell/Documents/Arduino/libraries/WiFiNINA
 Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi
Multiple libraries were found for "SD.h"
 Used: /Users/brentrubell/Documents/Arduino/hardware/espressif/esp32/libraries/SD
 Not used: /Users/brentrubell/Documents/Arduino/libraries/SD
 Not used: /Applications/Arduino.app/Contents/Java/libraries/SD

@lovyan03
Copy link
Contributor

Maybe, that is not the latest (arduino-esp32 v1.0.2 release).

image

@brentru
Copy link

brentru commented May 22, 2019

@lovyan03 Looks like it didn't release properly from them, works OK now. Feel free to close!

@rodlenz
Copy link

rodlenz commented May 24, 2019

Dear @Keoni80 I`m facing the exactly same issue, do you mind to explain in more details what exqactly you did to solve this problem? Tks in advance for the additional help.

@Keoni80
Copy link
Author

Keoni80 commented May 24, 2019

@rodlenz i deleted the ESP32 folder, and downloaded again with terminal, then it works with arduino IDE, but still doesn't work with PlatformIO

@rayozzie
Copy link

rayozzie commented Jun 19, 2019

macOS Mojave, Arduino 1.8.9, esp32 1.0.2, Examples/M5Stack/Basics/Display

In preferences, when running with Warnings to Default, there are numerous warnings that are treated as errors.

When running with Warnings to All, there are many, many more warnings that are treated as errors.

These are in many places in the library. The worst offenders are LoRaWan.cpp, Power.cpp, MPU9250.cpp.

Happy to paste/attach warnings, but I think this is likely easy to repro.

@Zontex
Copy link
Contributor

Zontex commented Nov 11, 2020

Seems the problem has been solved, closing the issue.

@Zontex Zontex closed this as completed Nov 11, 2020
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

6 participants