Mbed TLS is now part of TrustedFirmware.org.

No dll when building mbedtls with MinGW


Oct 25, 2017 18:45
Hoch

Hi,

I'm trying to compile the mbedtls dll in windows 10 32bit. I manage to build with:

make CC=gcc WINDOWS_BUILD=1

But I can't find the dll.

Then I tried:

make USE_SHARED_MBEDTLS_LIBRARY=On CC=gcc WINDOWS_BUILD=1

But no dll.

What should I do to build the dll?

Thank you in advance!

 
Oct 29, 2017 11:40
Ron Eldor

Hi Hoch,
USE_SHARED_MBEDTLS_LIBRARY is a parameter given to the cmake build. In addition, the WINDOWS_BUILDis defined internally in library/Makefile if WINDOWS is defined.
In order to build your *.dll files with mingw, run the following command:

make CC=gcc WINDOWS=1 SHARED=1

Regards,
Mbed TLS Team member
Ron