FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.35k stars 72 forks source link

Cmake Error 'dns_sd.h not found' #156

Closed fidelis05 closed 1 year ago

fidelis05 commented 1 year ago

I am trying to install it on widows 11, but when I use the 'cmake ..' I get this error

MINGW64 ~/UxPlay/build
$ cmake ..
-- Project name: uxplay
-- X11 libraries not found, will compile without X11 dependence
-- Building for Windows
-- Using CFLAGS with  -march=native
-- *** ONLY USE THIS WHEN COMPILING ON THE MACHINE THAT WILL RUN UXPLAY
--   run "cmake -DNO_MARCH_NATIVE=ON" to switch off this compiler option
-- using CMAKE_CFLAGS:  -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_WIN32 -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -Ofast -march=native
-- (Static linking) LIBPLIST C:/msys64/mingw64/lib/libplist-2.0.a
-- Checking for one of the modules 'avahi-compat-libdns_sd'
-- BONJOUR_SDK_HOME
-- dns_sd: using /Lib/x64/dnssd.lib
CMake Error at lib/CMakeLists.txt:145 (message):
   dns_sd.h not found

-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/migue/UxPlay/build/CMakeFiles/CMakeOutput.log".
fduncanh commented 1 year ago

on windows you need to download and install apples Bonjour sdk which should provides dns_sd.h

fidelis05 commented 1 year ago

Oh, sorry, I thought I already had this bonjour installed but it looks like I had other version of it. Thanks for the help.