Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: dns_sd.h: No such file or directory

Tags:

c++

qt

bonjour

I'm trying to build a demo project using Bonjour, following this tutorial, but i'm getting this error:

error: dns_sd.h: No such file or directory

It happens on this line:

#include <dns_sd.h>

Where do I get that header file?

like image 755
sashoalm Avatar asked Oct 25 '13 08:10

sashoalm


3 Answers

I just had this error on Ubuntu while trying to compile a project. This helped:

sudo apt-get install libavahi-compat-libdnssd-dev
like image 78
friederbluemle Avatar answered Nov 17 '22 20:11

friederbluemle


You can find the mDNSResponder daemon code here: http://www.opensource.apple.com/source/mDNSResponder/

You can download a tar file here: http://www.opensource.apple.com/tarballs/mDNSResponder/

like image 42
user2599140 Avatar answered Nov 17 '22 21:11

user2599140


You can use Avahi configured with mdnsresponder-compat

like image 25
Sergei Krivonos Avatar answered Nov 17 '22 22:11

Sergei Krivonos