apple / HomeKitADK

Apache License 2.0
2.56k stars 232 forks source link

Raspberry PI Setup and Deployment Fails #82

Closed hubTab closed 3 years ago

hubTab commented 3 years ago

Trying to run the RPI setup command fails:

./Tools/install.sh -d raspi -a Output/Raspi-armv6k-unknown-linux-gnueabihf/Debug/IP/Applications/Lightbulb.OpenSSL -n raspberrypi -p raspberry -k

with the error:

ld: warning: dylib (/usr/local/Cellar/openssl@1.1/1.1.1i/lib/libcrypto.dylib) was built for newer macOS version (10.15) than being linked (10.14)
ld: warning: dylib (/usr/local/Cellar/openssl@1.1/1.1.1i/lib/libcrypto.dylib) was built for newer macOS version (10.15) than being linked (10.14)
Undefined symbols for architecture x86_64:
  "___asan_version_mismatch_check_apple_clang_1103", referenced from:
      _asan.module_ctor in Darwin.a(HAPBase+ASCII.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Output/Darwin-x86_64-apple-darwin19.6.0/Debug/Tools/SetupPayloadParser.OpenSSL] Error 1
make[1]: *** Waiting for unfinished jobs....
Undefined symbols for architecture x86_64:
  "___asan_version_mismatch_check_apple_clang_1103", referenced from:
      _asan.module_ctor in hap.a(HAPAccessorySetup.o)
      _asan.module_ctor in Darwin.a(HAPAssert.o)
      _asan.module_ctor in hap.a(HAPVersion.o)
      _asan.module_ctor in Darwin.a(HAPPlatformRandomNumber.o)
      _asan.module_ctor in Darwin.a(HAPBase+RawBuffer.o)
      _asan.module_ctor in Darwin.a(HAPBase+String.o)
      _asan.module_ctor in Darwin.a(HAPBase+Int.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Output/Darwin-x86_64-apple-darwin19.6.0/Debug/Tools/AccessorySetupGenerator.OpenSSL] Error 1
make: *** [tools] Error 2

I have confirmed that clang is installed. Any ideas would be appreciated.

Thanks,

aajain-com commented 3 years ago

Try make clean followed by ./Tools/install.sh ... again.

hubTab commented 3 years ago

Thanks. I was about to just write the fix for it. I have started with xcode 11 and the switch to xcode 12.3 in the process.