apple / HomeKitADK

Apache License 2.0
2.55k stars 232 forks source link

Unable to build with MbedTLS #104

Open stokito opened 3 years ago

stokito commented 3 years ago

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 commented 3 years ago

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

OPENSSL_PATH = $(firstword $(wildcard /usr/local/Cellar/openssl@1.1/*))
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/openssl@1.1/*))
MBEDTLS_PATH = $(firstword $(wildcard /usr/include/mbedtls) $(wildcard /usr/local/Cellar/mbedtls/*))

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