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

CMake Error at /home/user/esp/esp-idf/components/mqtt/CMakeLists.txt:1 (include): include could not find requested file (IDFGH-11019) #12202

Closed
3 tasks done
Teesmo opened this issue Sep 6, 2023 · 2 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@Teesmo
Copy link

Teesmo commented Sep 6, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.1

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

I encounter an error when I try to set-my target to esp32s2, using the esp-mesh-lite component, and including mesh_client.h
I expect idf.py to set the target to esp32s2

What is the actual behavior?

Instead, it returns the error


 CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1
  (include):

    include could not find requested file
CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1
  (include):

    include could not find requested file:

  

      /home/onepower/esp/esp-idf/components/mqtt/esp-mqtt/CMakeLists.txt

  Call Stack (most recent call first):

    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)

I searched through /esp/esp-idf/components/mqtt/esp-mqtt, and could not locate the required file, CMakeLists.txt, which the error correctly picks out.

Steps to reproduce.

  1. run install.sh for required target, from esp-idf folder
  2. run export.sh
  3. Go to example project (in my case, the project is esp-mesh-lite/examples/mesh_local_control)
  4. Run idf.py set-target esp32s2 (The error occurs here)
    ...

Build or installation Logs.

Updating lock file at /home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/dependencies.lock
Deleting 1 unused components
 espressif__tinyusb
Processing 7 dependencies:
[1/7] espressif/cmake_utilities (0.5.1)
[2/7] espressif/esp_modem (0.1.28)
[3/7] espressif/esp_modem_usb_dte (1.1.0~1)
[4/7] espressif/iot_bridge (0.7.1)
[5/7] espressif/usb_host_cdc_acm (2.0.0)
[6/7] idf (5.1.1)
[7/7] mesh_lite (0.1.2)
CMake Error at /home/onepower/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/onepower/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 /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1
  (include):

    include could not find requested file:

  

      /home/onepower/esp/esp-idf/components/mqtt/esp-mqtt/CMakeLists.txt

  Call Stack (most recent call first):

    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)

  

  

Call Stack (most recent call first):
  /home/onepower/esp/esp-idf/tools/cmake/build.cmake:574 (__component_get_requirements)
  /home/onepower/esp/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:7 (project)


-- Configuring incomplete, errors occurred!
See also "/home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the /home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/build/log/idf_py_stderr_output_2656785 and /home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/build/log/idf_py_stdout_output_2656785

More Information.

No response

@Teesmo Teesmo added the Type: Bug bugs in IDF label Sep 6, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 6, 2023
@github-actions github-actions bot changed the title CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1 (include): include could not find requested file CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1 (include): include could not find requested file (IDFGH-11019) Sep 6, 2023
@Teesmo Teesmo changed the title CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1 (include): include could not find requested file (IDFGH-11019) CMake Error at /home/user/esp/esp-idf/components/mqtt/CMakeLists.txt:1 (include): include could not find requested file (IDFGH-11019) Sep 6, 2023
@igrr
Copy link
Member

igrr commented Sep 8, 2023

I searched through /esp/esp-idf/components/mqtt/esp-mqtt, and could not locate the required file, CMakeLists.txt, which the error correctly picks out.

Can you try running git submodule update --init in /home/onepower/esp/esp-idf? CMakeLists.txt file of the component comes from a submodule. If you don't see it, it is probably because the submodule is not initialized.

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: Opened Issue is new labels Sep 13, 2023
@Teesmo
Copy link
Author

Teesmo commented Sep 18, 2023

I tried it and it worked, thanks

@Teesmo Teesmo closed this as completed Sep 18, 2023
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Reviewing Issue is being reviewed labels Sep 18, 2023
CommanderRedYT pushed a commit to CommanderRedYT/esp-idf that referenced this issue Sep 24, 2023
movsb pushed a commit to movsb/esp-idf that referenced this issue Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants