Bouke/HAP

Linux error since last commit

manuduarte opened this issue · 1 comments

Hi,

Since the last issue there is some compiling issues.

1st issue (Solved)

./HAP/.build/checkouts/Cdns_sd.git--79080462313159224/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
./HAP/.build/checkouts/NetService.git-3665721673043840872/Sources/NetService/NetService.swift:13:8: error: could not build C module 'Cdns_sd'
import Cdns_sd

I solved that issue with sudo apt-get install libavahi-compat-libdnssd-dev

Second issue:

./HAP/Sources/HAP/Server/Server.swift:67:41: error: cannot convert value of type '[String : String]' to expected argument type 'Data?'
service.setTXTRecord(device.config)
~~~~~~~^~~~~~

Same issue on both x86 and arm platform

Bouke commented

With the release of NetService 0.5, these issues have been introduced. For your first issue, I've updated the readme: 6565741. And for the second issue, I've updated the code: 58f1344. Thank you!

Also note that for a better Linux/arm story, check out PR #68.