Skip to content

proper way to include a nif in AtomVM build #5

@mihailacusteanu

Description

@mihailacusteanu

So I am trying to use this extension, but I am not quite sure how to include the nif(s).

I downloaded the AtomVM repo and then I've put my atomvm_adc folder to src/platforms/esp32 but when I run
idf.py set-target esp32
I get this error:

CMake Error at /Users/mihai/esp/esp-idf/tools/cmake/build.cmake:268 (message):
  Failed to resolve component 'esp_adc_cal'.
Call Stack (most recent call first):
  /Users/mihai/esp/esp-idf/tools/cmake/build.cmake:310 (__build_resolve_and_add_req)
  /Users/mihai/esp/esp-idf/tools/cmake/build.cmake:599 (__build_expand_requirements)
  /Users/mihai/esp/esp-idf/tools/cmake/project.cmake:548 (idf_build_process)
  CMakeLists.txt:32 (project)


-- Configuring incomplete, errors occurred!
HINT: The component esp_adc_cal 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.

I tried to put the component manually in same src/platforms/esp32 folder but then I get another component missing...and so one until I get a dependency that is deprecated.
I guess that it should be another way to automatically solve those dependencies?
or can you suggest any other solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions