Closed muriloplinio closed 3 years ago
I copied the file "head_ref" from .../Core2-for-AWS-IoT-EduKit/Getting-Started/.pio/build/core2foraws/CMakeFiles/git-data to .../Core2-for-AWS-IoT-EduKit/Getting-Started/.pio/build/core2foraws/bootloader/CMakeFiles/git-data
Now it is working!
Hi @muriloplinio, Did you clone or download the project? If you cloned the repo, this issue shouldn't come up. I'll dive further after receiving your response.
Hi, @rashedtalukder! Thank you! I followed the tutorial and I used the command:
"Paste https://github.com/m5stack/Core2-for-AWS-IoT-EduKit.git into the text field and then select the location you want to save the project in."
so I clone!
Following this tutorial from the first step: https://edukit.workshop.aws/en/getting-started.html
After executing this command: pio run --environment core2foraws
I had this error: CMake Error at /Users/muriloplinio/m5stack/Core2-for-AWS-IoT-EduKit/Getting-Started/.pio/build/core2foraws/bootloader/CMakeFiles/git-data/grabRef.cmake:48 (file): file failed to open for reading (No such file or directory):
I am using MacOS Big Sur ver 11.2.3 in a M1 Mac. I am using Visual Studio Code Version: 1.57.0 for Apple Silicon (M1) model.
Makefile:
_PROJECT_NAME := AWS_IoT_EduKit-Getting_Started PROJECT_VER := 1.0.1 include $(IDFPATH)/make/project.mk
CMakeList.txt: cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(AWS_IoT_EduKit-Getting_Started VERSION 1.0.3)
This is the complete terminal screen:
MacBook-Air:Getting-Started muriloplinio$ pio run --environment core2foraws Processing core2foraws (platform: espressif32@3.2.0; framework: espidf; board: m5stack-core2)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html PLATFORM: Espressif 32 (3.2.0) > M5Stack Core2 HARDWARE: ESP32 240MHz, 6.25MB RAM, 16MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:CMake Error at /Users/muriloplinio/m5stack/Core2-for-AWS-IoT-EduKit/Getting-Started/.pio/build/core2foraws/bootloader/CMakeFiles/git-data/grabRef.cmake:48 (file): file failed to open for reading (No such file or directory):
Call Stack (most recent call first): /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/build.cmake:68 (git_describe) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/build.cmake:160 (build_get_idf_git_revision) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/idf.cmake:49 (build_init) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/project.cmake:7 (include) CMakeLists.txt:20 (include)
CMake Error at /Users/muriloplinio/m5stack/Core2-for-AWS-IoT-EduKit/Getting-Started/.pio/build/core2foraws/bootloader/CMakeFiles/git-data/grabRef.cmake:48 (file): file failed to open for reading (No such file or directory):
Call Stack (most recent call first): /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/project.cmake:48 (git_describe) /Users/muriloplinio/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/project.cmake:391 (__project_get_revision) CMakeLists.txt:27 (project)
====================================================== [FAILED] Took 5.47 seconds ======================================================_