Giter VIP home page Giter VIP logo

Comments (2)

monkeytronics avatar monkeytronics commented on August 16, 2024

On further inspection of this, I can see where cbor is being included in the CMakeLists.txt in ota-for-aws-iot-embedded-sdk. When I added the submodule, I obviously ran :

$ git submodule --init --recursive

However, I can see that the tinycbor repo is not there at all! So, it's not surprising that the build was failing. I've manually pasted the repo into place and rerun the build. So either way I've mentioned works to fix the cbor error (either add it, or use the ESP-IDF managed components approach).

Next it fails whinging about:

/libs/esp-aws-iot/libraries/corePKCS11/corePKCS11/source/portable/mbedtls/core_pkcs11_mbedtls.c:275:5: error: unknown type name 'mbedtls_threading_mutex_t'

So I go and have a look around in this repo, and notice that there are a bunch of dependencies missing there too??? Including mdedtls. But that kind of makes sense since mbedtls is included as part of ESP_IDF.... Question is why isn't the mbedtls component found?

Is there some limitation to how this library should be used in order that dependencies like this one work? FWIW, I put all my 3rd party submodules into a folder (outside of any individual project) and pull them in as needed. Shouldn't CMake ensure that the reference to mbedtls is satisfied since it is clearly present in the build???

I've stripped the project down to nothing and it still shows exactly the same behaviour. I've put the esp-aws-iot library into components, and modified the root CMakeLists.txt with :

list(APPEND EXTRA_COMPONENT_DIRS 
    ${CMAKE_CURRENT_LIST_DIR}/components/esp-aws-iot/libraries
)

It finds them ok again, but still gives the mbedtls errors...

from esp-aws-iot.

monkeytronics avatar monkeytronics commented on August 16, 2024

Sorry, last post on this. I found another issue which covered the mbedtls issue link. So, with that, we can close these, but I do have several suggestions to save future headaches:

  1. Can you add an idf_component.yaml to force the cbor component to get added in by default?
  2. Anyone able to explain what the mbedtls fix was? Or how it could be integrated as a default?

from esp-aws-iot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.