sve-jvi

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: IDF Component Manager #32885
    sve-jvi
    Participant

    I have already found the solution.

    On the website idf-component-manager it says:

    Starting ESP-IDF v4.4 the idf-component-manager package is installed by default and no extra action is necessary.

    Since I use v4.4.1 I don’t need to run the pip command.

    To enable the component manager in the project configuration phase, you must add the following variable in the CMakeLists.txt of the project root:

    set(ENV{IDF_COMPONENT_MANAGER} “1”)

    In this way, in the configuration phase, when the idf_component.yml file is found in the main component, the dependency is executed and the referenced component is downloaded:

    Solving dependencies requirements
    Updating lock file at C:/Users/user/Documents/Tmp/espressif/mb_slave\dependencies.lock
    Processing 2 dependencies:
    [1/2] espressif/esp-modbus (1.0.4)
    [2/2] idf (4.4.1)
    — DEBUG: Use esp-modbus component folder: C:/Users/user/Documents/Tmp/espressif/mb_slave/managed_components/espressif__esp-modbus.

    This is very important because the freemodbus component has been moved to a separate esp-modbus repository from v5.0.

    Attachments:
    You must be logged in to view attached files.
    in reply to: IDF Component Manager #32876
    sve-jvi
    Participant

    Yes, I understand that this is not a VisualGDB issue, but I am asking how I can configure the Espressif toolsuit that comes with VisualGDB so that the component manager is enabled.

    In the official Espressif IDE we have the “ESP-IDF 4.4 CMD” where we can work from the command line.

    In this CMD we can execute the following command to enable the component manager:

    pip install idf-component-manager –upgrade

    And in the configuration of the project with dependencies developed with the Espressif-IDE we can define IDF_COMPONENT_MANAGER environment variable:

    My question is how can I build a project that has dependencies?

    Thank you very much.

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)