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

Using M5Stack with (ESP-IDF4.0 + arduino-esp32-4.0) as a component (CMake) #204

Open
Sterpa opened this issue Mar 20, 2020 · 1 comment
Open

Comments

@Sterpa
Copy link

Sterpa commented Mar 20, 2020

Could you please update M5Stack CMakeList.txt to use it with (ESP-IDF4.0 + arduino-esp32-4.0) with CMake ? Or please make manual how to do this manualy with M5Stack master branch.
ESP-IDF4.0 + arduino-esp32-4.0 branches is the most powerful environment combination now, but master branch of https://github.com/m5stack/M5Stack is not compatible with ESP-IDF4.0 & arduino-esp32-4.0 branches and with modern cmake syntax.

  1. I tried to change CMakeList.txt to
idf_component_register(SRCDIRS "src" "src/utility" "src/Fonts"
                       INCLUDE_DIRS "src" "src/utility" "src/Fonts"
                       REQUIRES arduino)
  1. enable Bluetooth in menuconfig
  2. target_compile_definitions(${COMPONENT_NAME} PUBLIC ${DEFINITIONS}) generates an error - i have delete all text after idf_component_register

But then i got a billion errors with LoRaWan and so-on...
Unfortunately M5Stack-IDF example is too old and have no CMake...

@oakwhiz
Copy link

oakwhiz commented May 20, 2020

There are some clues here:
https://github.com/DonBrus/M5Stack/blob/master/CMakeLists.txt

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

2 participants