ESP-IDF on Eclipse IDE error with external Library

villlafranca
Posts: 1
Joined: Tue Dec 13, 2022 1:48 pm

ESP-IDF on Eclipse IDE error with external Library

Postby villlafranca » Tue Dec 13, 2022 4:31 pm

I am using esp-idf v4.1.1 with different compilers, I have used Visual Studio Code and Eclipse IDE with Espressif tool installed.

My intention is that I want to use an external library that, at the moment, only has a function that does a SHA256 hash for which the openssl sha library (<openssl/sha.h>) is used.

The problem is that I include the library as a component to my project and I call it from the main but I get the following error when building the project.

(https://i.stack.imgur.com/3EECj.png)

See main.c, dual.c and dual.h code:

(https://i.stack.imgur.com/4mEUE.png)

(https://i.stack.imgur.com/H8fzL.png)

(https://i.stack.imgur.com/5xa7v.png)

and CMake files:

(https://i.stack.imgur.com/NNadk.png)

(https://i.stack.imgur.com/hFgPc.png)

(https://i.stack.imgur.com/SAqbP.png)

I compiled the library from the terminal with "gcc -o name main.c -lssl -lcrypto" and it works correctly but when compiling it in an esp-idf project nothing...

Please HELP!

I have tried everything, I have included the openssl libraries in all the esp-idf directories, I have put the paths in the CMake... etc.

Who is online

Users browsing this forum: No registered users and 91 guests