Skip to content

Update: Add windows support

Sri Lakshmi Kanthan P requested to merge srilakshmikanthanp/kdnssd:master into master

Hello, Thanks for sharing this library while building for Windows I encountered some errors leading to a fix. I have modified some file and Hope this library support Bonjour SDK so I modified the following things to make it work under Windows

  1. When I Install Bonjour SDK for Windows it has the Following Tree
..


├───Include
│       dns_sd.h

│..

├───Lib
│   ├───Win32
│   │       dnssd.lib
│   │       dnssd.lib.pdb
│   │
│   └───x64
│           dnssd.lib
│           dnssd.lib.pdb
..
..
..

So I have added path dnssd in CMake.

  1. Replace platform-specific functions by using <QtEndian>

Note I have not tried to build the latest version but I have done for version v5.108.0 and it successfully shows the registered service in Mobile App (Not Tried vice versa I do have not two laptops right now)

Merge request reports