Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error in compilation "mbedtls/platform.h: No such file or directory" #89

Closed
Seikonolff opened this issue Jul 10, 2024 · 2 comments · Fixed by #100
Closed

Error in compilation "mbedtls/platform.h: No such file or directory" #89

Seikonolff opened this issue Jul 10, 2024 · 2 comments · Fixed by #100
Assignees
Labels
bug Something isn't working

Comments

@Seikonolff
Copy link

Seikonolff commented Jul 10, 2024

Hi guys,

Description :

I am trying to use the lib on an arduino nano 33 IoT on platformIO.

I have the following depencies :

[env:nano_33_iot]
platform = atmelsam
board = nano_33_iot
framework = arduino
lib_deps =
digitaldragon/SSLClient@^1.2.0
droscy/esp_mbedtls_esp8266@^2.22300.2

Expected Behavior

With the esp_mbedtls_esp8266 dep, project should be able to be compiled.

Actual Behavior

When I try to compile the project I get stuck with the following error :

.pio\libdeps\nano_33_iot\SSLClient\src\certBundle.c:16:10: fatal error: esp_system.h: No such file or directory

Environment

Arduino nano 33 IoT : https://github.com/ostaquet/Arduino-Nano-33-IoT-Ultimate-Guide

IDE

Visual Studio Code with Platform IO add-on.

Do you have any idea of how I could fix this ?

Thanks a lot for your help,

Mathis

Repository owner deleted a comment from github-actions bot Jul 10, 2024
@RobertByrnes RobertByrnes added bug Something isn't working help wanted Extra attention is needed and removed lacking information help wanted Extra attention is needed labels Jul 10, 2024
@RobertByrnes RobertByrnes self-assigned this Jul 10, 2024
@RobertByrnes
Copy link
Collaborator

RobertByrnes commented Jul 10, 2024

Hi @Seikonolff This is interesting as I have no experience of the atmelsam platform but it is the espressif32 platform which pulls in the mbedtls library version which this library is built on top of. Instead of using the droscy/esp_mbedtls_esp8266@^2.22300.2 library, perhaps try this one instead:

https://github.com/ARMmbed/mbedtls.git#v2.28.7

I don't know if this will work for your platform but it is the correct version for the current state of the SSLClient. I can look at this further if can share your code. Cheers.

@Seikonolff
Copy link
Author

Hi Robert,

It's maybe cause of the 'atmelsan' platform. Even with the lib from the repo I got these errors :

.pio\libdeps\nano_33_iot\SSLClient\src\ssl__client.h:12:10: fatal error: mbedtls/platform.h: No such file or directory
#include <mbedtls/platform.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
.pio\libdeps\nano_33_iot\SSLClient\src\certBundle.c:16:10: fatal error: esp_system.h: No such file or directory

here is the repo of my code : https://github.com/Seikonolff/tinysGsmTest

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants