Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

$IDF_PATH libsodium

I want to use the libsodium sources already existing in the $IDF_PATH/components directory.

When I build with esp-idf, simply #include <sodium.h> works.
When I build with mos, I get "atal error: sodium.h: No such file or directory"

I'm thinking it is just an includes issue with mos.yml.

How to I tell mos where the esp-idf directory is?

Comments

  • Ha ha! I think I figured it out.

    I added "libsodium" to the "SDK_COMPONENTS" variable in "mongoose-os/fw/platforms/esp32/Makefile.build"

  • You don't need to modify the makefile.
    Just add it in your mos.yml

    build_vars:
      ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} libsodium"
    
  • Or do it the proper way:

    build_vars:
    ESP_IDF_EXTRA_COMPONENTS: ${build_vars.ESP_IDF_EXTRA_COMPONENTS} libsodium

Sign In or Register to comment.