Open ghost opened 3 years ago
Hi Janinahemme,
You can try to create file CMakeLists.txt
in the root directory of this project (e.g. in your case C:\esp\esp-idf\examples\esp32-sniffer\CMakeLists.txt
) and fill it, for instance:
cmake_minimum_required(VERSION 3.2)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32-sniffer)
Or maybe better (for this single project), try to compile it via make all
and then flash the ESP32 with make flash
.
I get this error when building with "idf.py build" after adding the CMakeLists.txt: `FAILED: esp-idf/espmqtt/CMakeFiles/idf_espmqtt.dir/lib/transport_ws.c.obj ccache C:\Users\BBW-Benutzer.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/espmqtt/include -I../components/espmqtt/lib/include -I../../../components/newlib/platform_include -I../../../components/freertos/include -I../../../components/freertos/port/xtensa/include -I../../../components/esp_hw_support/include -I../../../components/esp_hw_support/port/esp32/. -I../../../components/heap/include -I../../../components/log/include -I../../../components/lwip/include/apps -I../../../components/lwip/include/apps/sntp -I../../../components/lwip/lwip/src/include -I../../../components/lwip/port/esp32/include -I../../../components/lwip/port/esp32/include/arch -I../../../components/soc/include -I../../../components/soc/esp32/. -I../../../components/soc/esp32/include -I../../../components/hal/esp32/include -I../../../components/hal/include -I../../../components/esp_rom/include -I../../../components/esp_rom/esp32 -I../../../components/esp_common/include -I../../../components/esp_system/include -I../../../components/esp32/include -I../../../components/driver/include -I../../../components/driver/esp32/include -I../../../components/esp_pm/include -I../../../components/esp_ringbuf/include -I../../../components/efuse/include -I../../../components/efuse/esp32/include -I../../../components/xtensa/include -I../../../components/xtensa/esp32/include -I../../../components/vfs/include -I../../../components/esp_wifi/include -I../../../components/esp_wifi/esp32/include -I../../../components/esp_event/include -I../../../components/esp_netif/include -I../../../components/esp_eth/include -I../../../components/tcpip_adapter/include -I../../../components/app_trace/include -I../../../components/esp_timer/include -I../../../components/nghttp/port/include -I../../../components/nghttp/nghttp2/lib/includes -I../../../components/mbedtls/port/include -I../../../components/mbedtls/mbedtls/include -I../../../components/mbedtls/esp_crt_bundle/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=C:/esp/esp-idf/examples/esp32-sniffer=. -fmacro-prefix-map=C:/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4-dev-744-g1cb31e509\" -DESP_PLATFORM -MD -MT esp-idf/espmqtt/CMakeFiles/idf_espmqtt.dir/lib/transport_ws.c.obj -MF esp-idf\espmqtt\CMakeFiles__idf_espmqtt.dir\lib\transport_ws.c.obj.d -o esp-idf/espmqtt/CMakeFiles/__idf_espmqtt.dir/lib/transport_ws.c.obj -c ../components/espmqtt/lib/transport_ws.c In file included from ../components/espmqtt/lib/include/platform_esp32_idf.h:21, from ../components/espmqtt/lib/include/platform.h:11, from ../components/espmqtt/lib/transport_ws.c:5: ../../../components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
^~~
../components/espmqtt/lib/transport_ws.c: In function 'ws_connect':
../components/espmqtt/lib/transport_ws.c:100:53: error: '258EAFA5-E914-47DA-95CA-C5AB...' directive writing 36 bytes into a region of size between 33 and 64 [-Werror=format-overflow=]
int key_len = sprintf((char)client_key_b64, "%s258EAFA5-E914-47DA-95CA-C5AB0DC85B11", (char)client_key);
^~~~~~~~
../components/espmqtt/lib/transport_ws.c:100:19: note: 'sprintf' output between 37 and 68 bytes into a destination of size 64
int key_len = sprintf((char)client_key_b64, "%s258EAFA5-E914-47DA-95CA-C5AB0DC85B11", (char)client_key);
^~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1`
I hope you can help me.
so I increased the size of key_len to 100 and it fixed the above issue. But the build fails with the following error now
In file included from ../components/espmqtt/lib/include/platform_esp32_idf.h:21, from ../components/espmqtt/lib/include/platform.h:11, from ../components/espmqtt/lib/transport_ws.c:5: E:/espidf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
^~~
[4/7] Generating ld/esp32.project.ld
warning: the choice symbol MQTT_USE_CORE_0 (defined at E:/espidf/components/mqtt/Kconfig:105, E:/tutorial/esp32-sniffer/components/espmqtt/Kconfig:90) is defined with a prompt outside the choice
warning: the choice symbol MQTT_USE_CORE_1 (defined at E:/espidf/components/mqtt/Kconfig:107, E:/tutorial/esp32-sniffer/components/espmqtt/Kconfig:92) is defined with a prompt outside the choice
warning: the choice symbol MQTT_USE_CORE_0 (defined at E:/espidf/components/mqtt/Kconfig:105, E:/tutorial/esp32-sniffer/components/espmqtt/Kconfig:90) is defined with a prompt outside the choice
warning: the choice symbol MQTT_USE_CORE_1 (defined at E:/espidf/components/mqtt/Kconfig:107, E:/tutorial/esp32-sniffer/components/espmqtt/Kconfig:92) is defined with a prompt outside the choice
[6/7] Linking CXX executable esp32-sniffer.elf
FAILED: esp32-sniffer.elf
cmd.exe /C "cd . && E:.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\esp32-sniffer.elf.rsp -o esp32-sniffer.elf && cd ."
e:/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): undefined reference to app_main' e:/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj): in function
main_task':
E:/espidf/components/esp32/cpu_start.c:592: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Can you help here?
@syedadeebul1996 I think this is an issue related to which ESP-IDF version you're using.
I guess you're using the latest stable version (the one on the master branch) that, according to their [releases}(https://github.com/espressif/esp-idf/releases), it is ESP-IDF Release v4.3.1.
Could you please try to use v3.x
(you can git checkout <branch>
inside esp-idf repo) and then try again to compile (i.e. make all) this project?
**Getting the same problem.
With just the newest esp-idf release, it wants a 'CMakeLists.txt', which I just coppied from a 'Hello World' example and edited the project-name.
That didn't help either, it now complained about something else, see the log:**
Executing action: all (aliases: build)
Running cmake in directory /home/daniel/esp/esp32-sniffer/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/daniel/.espressif/python_env/idf5.1_py3.8_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/daniel/esp/esp32-sniffer"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Component directory /home/daniel/esp/esp32-sniffer/components/md5 does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/daniel/esp/esp32-sniffer/components/spiffs does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Found Git: /usr/bin/git (found version "2.25.1")
CMake Error at /home/daniel/esp/esp-idf/tools/cmake/component.cmake:224 (message):
CMake Warning (dev) at 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):
/home/daniel/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:3 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:1029
(define_property):
define_property command is not scriptable
Call Stack (most recent call first):
/home/daniel/esp/esp-idf/tools/cmake/kconfig.cmake:1 (include)
/home/daniel/esp/esp-idf/tools/cmake/idf.cmake:43 (include)
/home/daniel/esp/esp-idf/tools/cmake/project.cmake:29 (include)
/home/daniel/esp/esp32-sniffer/main/CMakeLists.txt:5 (include)
/home/daniel/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
/home/daniel/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)
Call Stack (most recent call first):
/home/daniel/esp/esp-idf/tools/cmake/build.cmake:573 (__component_get_requirements)
/home/daniel/esp/esp-idf/tools/cmake/project.cmake:464 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/home/daniel/esp/esp32-sniffer/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the /home/daniel/esp/esp32-sniffer/build/log/idf_py_stderr_output_19723 and /home/daniel/esp/esp32-sniffer/build/log/idf_py_stdout_output_19723
Going back to idf-release 3.2, then the following error occurs:
Note: You are using Python 3.8.10. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
Checking Python dependencies...
Python requirements from /home/daniel/esp/esp-idf/requirements.txt are satisfied.
Running cmake in directory /home/daniel/esp/esp32-sniffer/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 --warn-uninitialized /home/daniel/esp/esp32-sniffer"...
Warn about uninitialized values.
-- Found Git: /usr/bin/git (found version "2.25.1")
CMake Warning at /home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:125 (message):
Component contains old-style component.mk but no CMakeLists.txt. Component
will be skipped.
Call Stack (most recent call first):
/home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:132 (components_find_all)
/home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:264 (components_find_all)
CMake Warning at /home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:125 (message):
Component contains old-style component.mk but no CMakeLists.txt. Component
will be skipped.
Call Stack (most recent call first):
/home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:132 (components_find_all)
/home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:264 (components_find_all)
-- Building empty aws_iot component due to configuration
CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:1029 (define_property):
define_property command is not scriptable
Call Stack (most recent call first):
/home/daniel/esp/esp-idf/tools/cmake/kconfig.cmake:1 (include)
/home/daniel/esp/esp-idf/tools/cmake/project.cmake:26 (include)
main/CMakeLists.txt:5 (include)
/home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:174 (include)
/home/daniel/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:284 (expand_component_requirements)
CMake Error at /home/daniel/esp/esp-idf/tools/cmake/project.cmake:78 (include):
include could not find load file:
/home/daniel/esp/esp32-sniffer/build/component_depends.cmake
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/home/daniel/esp/esp32-sniffer/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
Is this project still working then?
Edit: Instead of using the 'idf.py ...' command and running with 'make menuconfig', wasn't helpful either. It is complaining about ctype.h missing
In Windows I got a little bit further, but it wants a 'nghttp' plugin which was downloaded by myself manually via the idf.py add-component command. But still the same problem exists:
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:245 (message):
Failed to resolve component 'nghttp'.
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:281 (__build_resolve_and_add_req)
C:/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:574 (__build_expand_requirements)
C:/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/main/esp32-sniffer-master/esp32-sniffer-master/build/CMakeFiles/CMakeOutput.log".
HINT: The component nghttp could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details about moved components.
Refer to the build-system guide for more details about how components are found and included in the build.
@J4NN0 \Downloads\darknet-master\darknet-master>cmake -DENABLE_CUDA=ON CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases.
-- vcpkg not found, toolchain not defined, using integrated libs on win32 Darknet_VERSION: 0.2.5.7 -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631. -- CUDA_PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0 -- CUDACXX: CMake Error at CMakeLists.txt:188 (message): CUDA not found, please build explicitly with -DENABLE_CUDA=OFF if you do not want CUDA.
-- Configuring incomplete, errors occurred! how to fix this
I got the same error and when i tried to create project after including a CMakeLists.txt, I got the following error Executing action: create_project Running cmake in directory /home/yash/esp/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/yash/.espressif/python_env/idf5.4_py3.10_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/yash/esp"... -- IDF_TARGET not set, using default target: esp32 -- Found Git: /usr/bin/git (found version "2.34.1") -- git rev-parse returned 'fatal: detected dubious ownership in repository at '/home/yash/esp/esp-idf' To add an exception for this directory, call:
git config --global --add safe.directory /home/yash/esp/esp-idf'
fatal: detected dubious ownership in repository at '/home/yash/esp/esp-idf' To add an exception for this directory, call:
git config --global --add safe.directory /home/yash/esp/esp-idf
-- 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: /home/yash/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/yash/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - 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: /home/yash/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/yash/esp/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Found Python3: /home/yash/.espressif/python_env/idf5.4_py3.10_env/bin/python (found version "3.10.12") 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 "esp" version: 1
-- Adding linker script /home/yash/esp/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/yash/esp/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /home/yash/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/yash/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/yash/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/yash/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/yash/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/yash/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/yash/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
fatal: detected dubious ownership in repository at '/home/yash/esp/esp-idf'
To add an exception for this directory, call:
git config --global --add safe.directory /home/yash/esp/esp-idf
fatal: detected dubious ownership in repository at '/home/yash/esp/esp-idf/components/openthread/openthread' To add an exception for this directory, call:
git config --global --add safe.directory /home/yash/esp/esp-idf/components/openthread/openthread
-- 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_driver_ana_cmpr esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_uart esp_driver_usb_serial_jtag 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_vfs_console esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa -- Component paths: /home/yash/esp/esp-idf/components/app_trace /home/yash/esp/esp-idf/components/app_update /home/yash/esp/esp-idf/components/bootloader /home/yash/esp/esp-idf/components/bootloader_support /home/yash/esp/esp-idf/components/bt /home/yash/esp/esp-idf/components/cmock /home/yash/esp/esp-idf/components/console /home/yash/esp/esp-idf/components/cxx /home/yash/esp/esp-idf/components/driver /home/yash/esp/esp-idf/components/efuse /home/yash/esp/esp-idf/components/esp-tls /home/yash/esp/esp-idf/components/esp_adc /home/yash/esp/esp-idf/components/esp_app_format /home/yash/esp/esp-idf/components/esp_bootloader_format /home/yash/esp/esp-idf/components/esp_coex /home/yash/esp/esp-idf/components/esp_common /home/yash/esp/esp-idf/components/esp_driver_ana_cmpr /home/yash/esp/esp-idf/components/esp_driver_cam /home/yash/esp/esp-idf/components/esp_driver_dac /home/yash/esp/esp-idf/components/esp_driver_gpio /home/yash/esp/esp-idf/components/esp_driver_gptimer /home/yash/esp/esp-idf/components/esp_driver_i2c /home/yash/esp/esp-idf/components/esp_driver_i2s /home/yash/esp/esp-idf/components/esp_driver_isp /home/yash/esp/esp-idf/components/esp_driver_jpeg /home/yash/esp/esp-idf/components/esp_driver_ledc /home/yash/esp/esp-idf/components/esp_driver_mcpwm /home/yash/esp/esp-idf/components/esp_driver_parlio /home/yash/esp/esp-idf/components/esp_driver_pcnt /home/yash/esp/esp-idf/components/esp_driver_ppa /home/yash/esp/esp-idf/components/esp_driver_rmt /home/yash/esp/esp-idf/components/esp_driver_sdio /home/yash/esp/esp-idf/components/esp_driver_sdm /home/yash/esp/esp-idf/components/esp_driver_sdmmc /home/yash/esp/esp-idf/components/esp_driver_sdspi /home/yash/esp/esp-idf/components/esp_driver_spi /home/yash/esp/esp-idf/components/esp_driver_touch_sens /home/yash/esp/esp-idf/components/esp_driver_tsens /home/yash/esp/esp-idf/components/esp_driver_uart /home/yash/esp/esp-idf/components/esp_driver_usb_serial_jtag /home/yash/esp/esp-idf/components/esp_eth /home/yash/esp/esp-idf/components/esp_event /home/yash/esp/esp-idf/components/esp_gdbstub /home/yash/esp/esp-idf/components/esp_hid /home/yash/esp/esp-idf/components/esp_http_client /home/yash/esp/esp-idf/components/esp_http_server /home/yash/esp/esp-idf/components/esp_https_ota /home/yash/esp/esp-idf/components/esp_https_server /home/yash/esp/esp-idf/components/esp_hw_support /home/yash/esp/esp-idf/components/esp_lcd /home/yash/esp/esp-idf/components/esp_local_ctrl /home/yash/esp/esp-idf/components/esp_mm /home/yash/esp/esp-idf/components/esp_netif /home/yash/esp/esp-idf/components/esp_netif_stack /home/yash/esp/esp-idf/components/esp_partition /home/yash/esp/esp-idf/components/esp_phy /home/yash/esp/esp-idf/components/esp_pm /home/yash/esp/esp-idf/components/esp_psram /home/yash/esp/esp-idf/components/esp_ringbuf /home/yash/esp/esp-idf/components/esp_rom /home/yash/esp/esp-idf/components/esp_system /home/yash/esp/esp-idf/components/esp_timer /home/yash/esp/esp-idf/components/esp_vfs_console /home/yash/esp/esp-idf/components/esp_wifi /home/yash/esp/esp-idf/components/espcoredump /home/yash/esp/esp-idf/components/esptool_py /home/yash/esp/esp-idf/components/fatfs /home/yash/esp/esp-idf/components/freertos /home/yash/esp/esp-idf/components/hal /home/yash/esp/esp-idf/components/heap /home/yash/esp/esp-idf/components/http_parser /home/yash/esp/esp-idf/components/idf_test /home/yash/esp/esp-idf/components/ieee802154 /home/yash/esp/esp-idf/components/json /home/yash/esp/esp-idf/components/log /home/yash/esp/esp-idf/components/lwip /home/yash/esp/esp-idf/components/mbedtls /home/yash/esp/esp-idf/components/mqtt /home/yash/esp/esp-idf/components/newlib /home/yash/esp/esp-idf/components/nvs_flash /home/yash/esp/esp-idf/components/nvs_sec_provider /home/yash/esp/esp-idf/components/openthread /home/yash/esp/esp-idf/components/partition_table /home/yash/esp/esp-idf/components/perfmon /home/yash/esp/esp-idf/components/protobuf-c /home/yash/esp/esp-idf/components/protocomm /home/yash/esp/esp-idf/components/pthread /home/yash/esp/esp-idf/components/sdmmc /home/yash/esp/esp-idf/components/soc /home/yash/esp/esp-idf/components/spi_flash /home/yash/esp/esp-idf/components/spiffs /home/yash/esp/esp-idf/components/tcp_transport /home/yash/esp/esp-idf/components/ulp /home/yash/esp/esp-idf/components/unity /home/yash/esp/esp-idf/components/usb /home/yash/esp/esp-idf/components/vfs /home/yash/esp/esp-idf/components/wear_levelling /home/yash/esp/esp-idf/components/wifi_provisioning /home/yash/esp/esp-idf/components/wpa_supplicant /home/yash/esp/esp-idf/components/xtensa -- Configuring done -- Generating done CMake Warning (dev): Policy CMP0058 is not set: Ninja requires custom command byproducts to be explicit. Run "cmake --help-policy CMP0058" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
This project specifies custom command DEPENDS on files in the build tree that are not specified as the OUTPUT or BYPRODUCTS of any add_custom_command or add_custom_target:
esp.map
For compatibility with versions of CMake that did not have the BYPRODUCTS option, CMake is generating phony rules for such files to convince 'ninja' to build.
Project authors should add the missing BYPRODUCTS or OUTPUT options to the custom commands that produce these files. This warning is for project developers. Use -Wno-dev to suppress it.
-- Build files have been written to: /home/yash/esp/build ninja: error: unknown target 'create_project' command "create_project" is not known to idf.py and is not a Ninja target
When I try to build the project with "idf.py build" I get the following error: "CMakeLists.txt not found in project directory C:\esp\esp-idf\examples\esp32-sniffer". How can I fix this?