Cannot specify include directories for target "__idf_tinyusb"

d.kovyazin
Posts: 1
Joined: Fri Aug 09, 2024 1:38 pm

Cannot specify include directories for target "__idf_tinyusb"

Postby d.kovyazin » Fri Aug 09, 2024 1:51 pm

Error run idf.py build

Code: Select all

-- Found Git: C:/Users/dkovy/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") 
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/dkovy/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/dkovy/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-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: C:/Users/dkovy/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-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 C:/Users/dkovy/esp/v5.2.2/esp-idf/examples/get-started/hello_world/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: C:/Users/dkovy/.espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "hello_world" version: v5.2.2-dirty
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/examples/get-started/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/examples/get-started/hello_world/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/dkovy/esp/v5.2.2/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
CMake Error at C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_tinyusb/CMakeLists.txt:53 (target_include_directories):
  Cannot specify include directories for target "__idf_tinyusb" which is not
  built by this project.


-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex 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_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_tinyusb esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json littlefs log lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/dkovy/esp/v5.2.2/esp-idf/components/app_trace C:/Users/dkovy/esp/v5.2.2/esp-idf/components/app_update C:/Users/dkovy/esp/v5.2.2/esp-idf/components/bootloader C:/Users/dkovy/esp/v5.2.2/esp-idf/components/bootloader_support C:/Users/dkovy/esp/v5.2.2/esp-idf/components/bt C:/Users/dkovy/esp/v5.2.2/esp-idf/components/cmock C:/Users/dkovy/esp/v5.2.2/esp-idf/components/console C:/Users/dkovy/esp/v5.2.2/esp-idf/components/cxx C:/Users/dkovy/esp/v5.2.2/esp-idf/components/driver C:/Users/dkovy/esp/v5.2.2/esp-idf/components/efuse C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp-tls C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_adc C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_app_format C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_bootloader_format C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_coex C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_common C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_eth C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_event C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_gdbstub C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_hid C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_http_client C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_http_server C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_https_ota C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_https_server C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_hw_support C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_lcd C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_local_ctrl C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_mm C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_netif C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_netif_stack C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_partition C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_phy C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_pm C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_psram C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_ringbuf C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_rom C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_system C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_timer C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_tinyusb C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esp_wifi C:/Users/dkovy/esp/v5.2.2/esp-idf/components/espcoredump C:/Users/dkovy/esp/v5.2.2/esp-idf/components/esptool_py C:/Users/dkovy/esp/v5.2.2/esp-idf/components/fatfs C:/Users/dkovy/esp/v5.2.2/esp-idf/components/freertos C:/Users/dkovy/esp/v5.2.2/esp-idf/components/hal C:/Users/dkovy/esp/v5.2.2/esp-idf/components/heap C:/Users/dkovy/esp/v5.2.2/esp-idf/components/http_parser C:/Users/dkovy/esp/v5.2.2/esp-idf/components/idf_test C:/Users/dkovy/esp/v5.2.2/esp-idf/components/ieee802154 C:/Users/dkovy/esp/v5.2.2/esp-idf/components/json C:/Users/dkovy/esp/v5.2.2/esp-idf/components/littlefs C:/Users/dkovy/esp/v5.2.2/esp-idf/components/log C:/Users/dkovy/esp/v5.2.2/esp-idf/components/lwip C:/Users/dkovy/esp/v5.2.2/esp-idf/examples/get-started/hello_world/main C:/Users/dkovy/esp/v5.2.2/esp-idf/components/mbedtls C:/Users/dkovy/esp/v5.2.2/esp-idf/components/mqtt C:/Users/dkovy/esp/v5.2.2/esp-idf/components/newlib C:/Users/dkovy/esp/v5.2.2/esp-idf/components/nvs_flash C:/Users/dkovy/esp/v5.2.2/esp-idf/components/nvs_sec_provider C:/Users/dkovy/esp/v5.2.2/esp-idf/components/openthread C:/Users/dkovy/esp/v5.2.2/esp-idf/components/partition_table C:/Users/dkovy/esp/v5.2.2/esp-idf/components/perfmon C:/Users/dkovy/esp/v5.2.2/esp-idf/components/protobuf-c C:/Users/dkovy/esp/v5.2.2/esp-idf/components/protocomm C:/Users/dkovy/esp/v5.2.2/esp-idf/components/pthread C:/Users/dkovy/esp/v5.2.2/esp-idf/components/sdmmc C:/Users/dkovy/esp/v5.2.2/esp-idf/components/soc C:/Users/dkovy/esp/v5.2.2/esp-idf/components/spi_flash C:/Users/dkovy/esp/v5.2.2/esp-idf/components/spiffs C:/Users/dkovy/esp/v5.2.2/esp-idf/components/tcp_transport C:/Users/dkovy/esp/v5.2.2/esp-idf/components/tinyusb C:/Users/dkovy/esp/v5.2.2/esp-idf/components/ulp C:/Users/dkovy/esp/v5.2.2/esp-idf/components/unity C:/Users/dkovy/esp/v5.2.2/esp-idf/components/usb C:/Users/dkovy/esp/v5.2.2/esp-idf/components/vfs C:/Users/dkovy/esp/v5.2.2/esp-idf/components/wear_levelling C:/Users/dkovy/esp/v5.2.2/esp-idf/components/wifi_provisioning C:/Users/dkovy/esp/v5.2.2/esp-idf/components/wpa_supplicant C:/Users/dkovy/esp/v5.2.2/esp-idf/components/xtensa
-- Configuring incomplete, errors occurred!
See also "C:/Users/dkovy/esp/v5.2.2/esp-idf/examples/get-started/hello_world/build/CMakeFiles/CMakeOutput.log".

 *  The terminal process "C:\Users\dkovy\.espressif\tools\cmake\3.24.0\bin\cmake.exe '-G=Ninja', '-DPYTHON_DEPS_CHECKED=1', '-DESP_PLATFORM=1', '-B=c:\Users\dkovy\esp\v5.2.2\esp-idf\examples\get-started\hello_world\build', '-S=c:\Users\dkovy\esp\v5.2.2\esp-idf\examples\get-started\hello_world'" terminated with exit code: 1. 

JBS_ABRIZ
Posts: 5
Joined: Wed Aug 14, 2024 10:10 am

Re: Cannot specify include directories for target "__idf_tinyusb"

Postby JBS_ABRIZ » Wed Aug 14, 2024 2:49 pm

Can you check the file CMakeLists.txt where your main.c is, it should have espressif__tinyusb in it.

content of CMakeLists.tx :

idf_component_register(SRCS "main.c"
INCLUDE_DIRS "."
REQUIRES bt espressif__tinyusb p nvs_flash)

Who is online

Users browsing this forum: No registered users and 93 guests