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 |
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: