Search found 3 matches

by letsbuild
Sun Mar 31, 2024 1:11 pm
Forum: Report Bugs
Topic: libsodium sodium_init causes compilation to fail
Replies: 0
Views: 3906

libsodium sodium_init causes compilation to fail

As the title says importing libsodium and calling `sodium_init` causes idf.py build to fail with an error relating to aegis: ``` .espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/espressif__libsodium/lib...
by letsbuild
Wed Jul 01, 2020 9:25 am
Forum: ESP-IDF
Topic: Certain header files can only be imported from main.c
Replies: 2
Views: 2851

Re: Certain header files can only be imported from main.c

Hey ESP_Angus, thank you very much for your reply. Adding "REQUIRES bt" to my CMake component fixed the issue. I think the Build System documentation should contain a list of all possible components that you can REQUIRE. I think two things could make it more clear: 1) The examples could add the REQU...
by letsbuild
Wed Jun 24, 2020 2:12 pm
Forum: ESP-IDF
Topic: Certain header files can only be imported from main.c
Replies: 2
Views: 2851

Certain header files can only be imported from main.c

There are certain header files I can only include from main.c or else the compiler complains that the header file does not exist. Examples of these header files are: "nvs_flash.h" Bluetooth files eg. "esp_bt.h", "esp_bt_main.h" HTTPS Server files Is there any reason why these files can only be inclu...