Hi,
Shared library builds are supposed to work on macOS, but we don't have
macOS on our CI, so the code is only ever manually tested, and I don't
know if the cmake shared library build gets tested often (maybe in a
macOS distribution such as brew/fink/macports/…?). So if it broke, we
might not notice.
I do notice a typo in the code you posted:
cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On ..
is missing a dash in -D. Can you please double-check the code you ran?
--
Gilles Peskine
Mbed TLS developer
On 01/12/2021 14:55, Felipe Gasper via mbed-tls wrote:
> Hello,
>
> I’m trying to build shared from git on macOS and having no luck. I’m doing:
>
>> mkdir build; cd build
>> cmake DUSE_SHARED_MBEDTLS_LIBRARY=On ..
> …
>
>> make
> …
>
>> ls -la library
> total 2944
> drwxr-xr-x 10 felipe staff 320 Dec 1 08:49 .
> drwxr-xr-x 15 felipe staff 480 Dec 1 08:49 ..
> drwxr-xr-x 8 felipe staff 256 Dec 1 08:49 CMakeFiles
> -rw-r--r-- 1 felipe staff 92755 Dec 1 08:49 Makefile
> -rw-r--r-- 1 felipe staff 2942 Dec 1 08:49 cmake_install.cmake
> -rw-r--r-- 1 felipe staff 34055 Dec 1 08:49 error.c
> -rw-r--r-- 1 felipe staff 916112 Dec 1 08:49 libmbedcrypto.a
> -rw-r--r-- 1 felipe staff 315856 Dec 1 08:49 libmbedtls.a
> -rw-r--r-- 1 felipe staff 104072 Dec 1 08:49 libmbedx509.a
> -rw-r--r-- 1 felipe staff 26265 Dec 1 08:49 version_features.c
>
> Am I just missing something? It seems like I’m following what the README says to do; I also did `export SHARED=1` just in case, but that made no difference.
>
> Thank you in advance!
>
> -FG