-
Notifications
You must be signed in to change notification settings - Fork 31
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
CMakeLists.txt not found in project directory #5
Comments
Hi Janinahemme, You can try to create file
Or maybe better (for this single project), try to compile it via |
I get this error when building with "idf.py build" after adding the CMakeLists.txt: 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, 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 |
**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:
|
@J4NN0 -- vcpkg not found, toolchain not defined, using integrated libs on win32 -- 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
fatal: detected dubious ownership in repository at '/home/yash/esp/esp-idf'
-- The C compiler identification is GNU 13.2.0
fatal: detected dubious ownership in repository at '/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 This project specifies custom command DEPENDS on files in the build tree esp.map For compatibility with versions of CMake that did not have the BYPRODUCTS Project authors should add the missing BYPRODUCTS or OUTPUT options to the -- Build files have been written to: /home/yash/esp/build |
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?
The text was updated successfully, but these errors were encountered: