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

Error while building 8ms-esp32 project in VS Code #11

Closed
wizwin opened this issue Jul 16, 2022 · 2 comments
Closed

Error while building 8ms-esp32 project in VS Code #11

wizwin opened this issue Jul 16, 2022 · 2 comments

Comments

@wizwin
Copy link

wizwin commented Jul 16, 2022

  1. Installed ESP Extension (Espressif IDF v1.4.0) from VS Code
  2. Followed instructions on https://doc.8ms.xyz/docs/doc-8ms/doc-8ms-1cm15dcfl0tr4
  3. Setup path to xtensa- toolchain in PATH
  4. Cygwin path is also in PATH (at the end so that it picks up xtensa- toolchain first and not the Cygwin gcc)
  5. Always getting build error. Logs from console is pasted below

Any help to fix this issue is appreciated.

Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. 

.1")
-- Component directory D:/main/control does not contain a CMakeLists.txt file. No component will be added
-- Component directory D:/main/custom does not contain a CMakeLists.txt file. No 
component will be added
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Devel/VSCode/Extensions/ESP_IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Devel/VSCode/Extensions/ESP_IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Devel/VSCode/Extensions/ESP_IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file D:/sdkconfig
-- Found Python3: D:/Devel/VSCode/Extensions/ESP_IDF/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "qmsd-demo" version: 2.0
-- Adding linker script D:/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld    
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld       
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld   
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld    
-- Adding linker script D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
CMake Error at D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/tools/cmake/component.cmake:369 (__component_get_property):
  __component_get_property Function invoked with incorrect arguments for
  function named: __component_get_property
Call Stack (most recent call first):
  D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/tools/cmake/utilities.cmake:300 (idf_component_get_property)
  components/qmsd_init/CMakeLists.txt:9 (add_prebuilt_library)


-- Components: app_trace app_update asio bootloader bootloader_support bt bus cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lvgl lwip mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread qmsd_init qmsd_mod qmsd_ui screen sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb touch_panel ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/app_trace D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/app_update D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/asio D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/bootloader D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/bootloader_support D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/bt D:/components/bus D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/cbor D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/cmock D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/coap D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/console D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/cxx D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/driver D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/efuse D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp-tls D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp32 D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_adc_cal D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_common D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_eth D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_event D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_gdbstub D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_hid D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_http_client D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_http_server D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_https_ota D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_https_server D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_hw_support D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_ipc D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_lcd D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_local_ctrl D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_netif D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_phy D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_pm D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_ringbuf D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_rom D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_serial_slave_link D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_system D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_timer D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_websocket_client D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esp_wifi D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/espcoredump D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/esptool_py D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/expat D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/fatfs D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/freemodbus D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/freertos D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/hal D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/heap D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/idf_test D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/ieee802154 D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/jsmn D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/json D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/libsodium D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/log D:/components/lvgl D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/lwip D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/mbedtls D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/mdns D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/mqtt D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/newlib 
D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/nghttp D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/nvs_flash D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/openssl D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/openthread D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/partition_table D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/perfmon D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/protobuf-c D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/protocomm D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/pthread D:/components/qmsd_init D:/components/qmsd_mod D:/components/qmsd_ui D:/components/screen D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/sdmmc D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/soc D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/spi_flash D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/spiffs D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/tcp_transport D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/tcpip_adapter D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/tinyusb D:/components/touch_panel D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/ulp D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/unity D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/usb D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/vfs D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/wear_levelling D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/wifi_provisioning D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/wpa_supplicant D:/Devel/VSCode/Extensions/ESP_IDF/esp-idf/components/xtensa
-- Configuring incomplete, errors occurred!
See also "D:/build/CMakeFiles/CMakeOutput.log".

 *  The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .." terminated with exit code: 1. 

Visual Studio Version:
image

@wizwin
Copy link
Author

wizwin commented Jul 24, 2022

@shukewt @alan-wt Please help to get this project compiled in VS Code.

@wizwin
Copy link
Author

wizwin commented Jul 24, 2022

Never mind, I was able to successfully build after the following changes:

  1. Re-install ESP_IDF extension
  2. Setup xtensa- toolchain in environment (PATH)
  3. Setup CMake and ninja environment (PATH)
  4. Set IDF_PATH in environment (PATH)
  5. Always perform clean and build (To overcome build.ninja not found)
  6. Step one in the following instructions says delete the files in main folder is confusing. Please document this better:
    image

Steps 2, 3 and 4 could be needed only for my setup due to some changes in my installation and other gcc compiler toolchains in PATH.

@wizwin wizwin closed this as completed Jul 24, 2022
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