apple / HomeKitADK

Apache License 2.0
2.56k stars 232 forks source link

install.sh : fatal error: 'openssl/evp.h' file not found #40

Closed tylerarnold closed 4 years ago

tylerarnold commented 4 years ago

when performing the install.sh, I receive the following error:

r cr Output/Darwin-x86_64-apple-darwin19.3.0/Debug/Darwin.a Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPAssert.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+Crypto.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+Double.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+Float.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+Int.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+MACAddress.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+RawBuffer.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+Sha1Checksum.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+String.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPBase+UTF8.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPLog.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/HAPPlatformSystemInit.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatform.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformAbort.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformAccessorySetup.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformAccessorySetupDisplay.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformAccessorySetupNFC.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformBLEPeripheralManager.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformClock.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformKeyValueStore.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformLog.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformMFiHWAuth.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformMFiTokenAuth.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformRandomNumber.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformRunLoop.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformServiceDiscovery.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformTCPStreamManager.o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Darwin/HAPPlatformTimer.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Wall -Werror -DHAP_ENABLE_DEVELOPMENT_ONLY_CODE=1 -mmacosx-version-min=10.14   -DDARWIN=1 -Werror=unused-function -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-deprecated-declarations -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks -IHAP -IExternal/HTTP -IExternal/JSON -IExternal/Base64 -IPAL -ICommon -I/include -I/include -O0 -g -DHAP_LOG_LEVEL=3     -DHAP_TESTING -IPAL/Darwin -IPAL/Darwin -ICommon   -DHAP_Debug -c PAL/Crypto/OpenSSL/HAPOpenSSL.c -o Output/Darwin-x86_64-apple-darwin19.3.0/Debug/PAL/Crypto/OpenSSL/HAPOpenSSL.o
/opt/local/bin/ranlib: object: Output/Darwin-x86_64-apple-darwin19.3.0/Debug/Darwin.a(HAPAssert.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [Output/Darwin-x86_64-apple-darwin19.3.0/Debug/Darwin.a] Error 1
make[1]: *** Waiting for unfinished jobs....
/opt/local/bin/ranlib: object: Output/Darwin-x86_64-apple-darwin19.3.0/Debug/hap.a(HAPAccessory+Info.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [Output/Darwin-x86_64-apple-darwin19.3.0/Debug/hap.a] Error 1
PAL/Crypto/OpenSSL/HAPOpenSSL.c:10:10: fatal error: 'openssl/evp.h' file not found
#include <openssl/evp.h>
         ^~~~~~~~~~~~~~~
aajain-com commented 4 years ago

Did you follow the pre-requisites at https://github.com/apple/HomeKitADK/blob/master/Documentation/developing_with_adk.md#prerequisites?

Roelof626 commented 2 years ago

I have the same problem. I got the same error but I had a problem with my prerequisites install process. See issue #122. Does this problem have anything todo with the error in the other issue?