goliothlabs / golioth_platformio_arduino

A PlatformIO project for the ESP32 family that includes the Arduino SDK and the Golioth SDK
Apache License 2.0
1 stars 0 forks source link

Error while building project #1

Open mefjak000 opened 1 year ago

mefjak000 commented 1 year ago

I got this error while following README. I am not using vscode extension and set up project directly in platformio cli maybe this is the case.

-- Configuring incomplete, errors occurred!

fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). CMake Error at /home/mateusz/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (message): Directory specified in EXTRA_COMPONENT_DIRS doesn't exist: /home/mateusz/platformioproject/golioth_platformio_arduino/third-party/esp32-arduino-lib-builder/components/arduino_tinyusb Call Stack (most recent call first): /home/mateusz/.platformio/packages/framework-espidf/tools/cmake/project.cmake:327 (__project_init) CMakeLists.txt:7 (project)

szczys commented 11 months ago

It looks like it can't find tinysub. Try step 2 of the install instructions again to see if that fixes thing.

live-alchemy commented 3 months ago

@szczys I think I found the issue! there is a typo in CMakeLists.txt where third-party/ uses a dash, not an underscore!

line 4 should read list(APPEND EXTRA_COMPONENT_DIRS third_party/esp32-arduino-lib-builder/components/arduino_tinyusb)

live-alchemy commented 3 months ago

That said, I haven't been able to build either, getting the following output back:

Resolving esp32dev dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, 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: 
 - framework-espidf @ 3.50102.240122 (5.1.2) 
 - tool-cmake @ 3.21.3 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - tool-ninja @ 1.9.0 
 - tool-riscv32-esp-elf-gdb @ 12.1.0+20221002 
 - tool-xtensa-esp-elf-gdb @ 12.1.0+20221002 
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) 
 - toolchain-xtensa-esp32 @ 12.2.0+20230208
Reading CMake configuration...
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Component directory <pathToProject>/third_party/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/docs does not contain a CMakeLists.txt file. No component will be added
-- Component directory <pathToProject>/third_party/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/hw does not contain a CMakeLists.txt file. No component will be added
-- Component directory <pathToProject>/third_party/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/lib does not contain a CMakeLists.txt file. No component will be added
-- Component directory <pathToProject>/third_party/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/test does not contain a CMakeLists.txt file. No component will be added
-- Component directory <pathToProject>/third_party/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/tools does not contain a CMakeLists.txt file. No component will be added
-- Building ESP-IDF components for target esp32
-- Configuring incomplete, errors occurred!
See also "<pathToProject>/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log".

fatal: not a git repository (or any of the parent directories): .git
CMake Error at <homeDir>/.platformio/packages/framework-espidf/tools/cmake/component.cmake:224 (message):
  CMake Warning (dev) at .pio/build/esp32dev/build_properties.temp.cmake:8:

    Syntax Warning in cmake code at column 47

    Argument not separated from preceding token by whitespace.

  Call Stack (most recent call first):

    <homeDir>/.platformio/packages/framework-espidf/tools/cmake/scripts/component_get_requirements.cmake:3 (include)

  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Error at
  third_party/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/CMakeLists.txt:95
  (add_library):

    add_library command is not scriptable

  Call Stack (most recent call first):

    <homeDir>/.platformio/packages/framework-espidf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
    <homeDir>/.platformio/packages/framework-espidf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)

Call Stack (most recent call first):
  <homeDir>/.platformio/packages/framework-espidf/tools/cmake/build.cmake:574 (__component_get_requirements)
  <homeDir>/.platformio/packages/framework-espidf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:6 (project)

========================= [FAILED] Took 14.63 seconds =========================
szczys commented 3 months ago

@szczys I think I found the issue! there is a typo in CMakeLists.txt where third-party/ uses a dash, not an underscore!

@live-alchemy looks like you are right. However I also was not able to build after making this change. Unfortunately this was just an experimental project and I don't have any plans to troubleshoot it in the near future. If you do find a fix, please submit a PR and I'm happy to review.