Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unable to build with MbedTLS #104

Open
stokito opened this issue May 3, 2021 · 1 comment
Open

Unable to build with MbedTLS #104

stokito opened this issue May 3, 2021 · 1 comment

Comments

@stokito
Copy link
Contributor

stokito commented May 3, 2021

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
Copy link
Contributor Author

stokito commented May 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant