HomeKitADK icon indicating copy to clipboard operation
HomeKitADK copied to clipboard

Unable to build with MbedTLS

Open stokito opened this issue 3 years ago • 1 comments

Building with OpenSSL works but I trying to build with CRYPTO=MbedTLS and got an error:

make DOCKER=0 TARGET=Linux CRYPTO=MbedTLS  apps
make[1]: Entering directory '/mnt/work/HomeKitADK'
make[1]: *** No rule to make target 'Output/Linux-x86_64-pc-linux-gnu/Debug/IP/Applications/Lightbulb.MbedTLS', needed by 'apps'.  Stop.
make[1]: Leaving directory '/mnt/work/HomeKitADK'
make: *** [Makefile:67: apps] Error 2

Using Ubuntu 20.10 and I have installed libmbedtls-dev

stokito avatar May 03 '21 19:05 stokito

Also as a side note: in the Build/Makefile:45 looks like:

OPENSSL_PATH = $(firstword $(wildcard /usr/local/Cellar/[email protected]/*))
MBEDTLS_PATH = $(firstword $(wildcard /usr/include/mbedtls) $(wildcard /usr/local/Cellar/mbedtls/*))

Must be changed to

OPENSSL_PATH = $(firstword $(wildcard /usr/include/openssl) $(wildcard /usr/local/Cellar/[email protected]/*))
MBEDTLS_PATH = $(firstword $(wildcard /usr/include/mbedtls) $(wildcard /usr/local/Cellar/mbedtls/*))

i.e. add the /usr/include/openssl similarly to next line

stokito avatar May 03 '21 19:05 stokito