jdachtera / node-rtpmidi

A node js implementation of Apples Network Midi Protocol.
92 stars 17 forks source link

Windows 8 build fails 'Cannot open include file dns_sd.h' #9

Closed bartmoons closed 10 years ago

bartmoons commented 10 years ago

I'm trying to build the module, but getting the following error messages:

E:\Redux\PyRedux\Windows>npm install rtpmidi npm WARN package.json Redux@0.1.0 No repository field. npm WARN package.json Redux@0.1.0 No README data npm http GET https://registry.npmjs.org/rtpmidi npm http 304 https://registry.npmjs.org/rtpmidi npm http GET https://registry.npmjs.org/midi-common npm http GET https://registry.npmjs.org/mdns2 npm WARN optional dep failed, continuing avahi_pub@git://github.com/TheThingSyst em/node_avahi_pub npm http 304 https://registry.npmjs.org/mdns2 npm http 304 https://registry.npmjs.org/midi-common

mdns2@2.1.4 install E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node_modules \mdns2 node-gyp rebuild

E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node_modules\mdns2>node "C:\Progra m Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bi n\node-gyp.js" rebuild gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v3.3.0, which is not support ed by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\np m\node_modules\node-gyp\lib\configure.js:106:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node -gyp\lib\configure.js:95:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:635:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at maybeClose (child_process.js:743:16) gyp ERR! stack at Socket. (child_process.js:956:11) gyp ERR! stack at Socket.EventEmitter.emit (events.js:95:17) gyp ERR! stack at Pipe.close (net.js:465:12) gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu les\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node_modules\mdns2 gyp ERR! node -v v0.10.26 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm WARN optional dep failed, continuing mdns2@2.1.4 rtpmidi@0.1.7 node_modules\rtpmidi └── midi-common@0.0.4

E:\Redux\PyRedux\Windows>npm install rtpmidi --python=python2.7 npm WARN package.json Redux@0.1.0 No repository field. npm WARN package.json Redux@0.1.0 No README data npm http GET https://registry.npmjs.org/rtpmidi npm http 304 https://registry.npmjs.org/rtpmidi npm http GET https://registry.npmjs.org/mdns2 npm http GET https://registry.npmjs.org/midi-common npm WARN optional dep failed, continuing avahi_pub@git://github.com/TheThingSyst em/node_avahi_pub npm http 304 https://registry.npmjs.org/midi-common npm http 304 https://registry.npmjs.org/mdns2

mdns2@2.1.4 install E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node_modules \mdns2 node-gyp rebuild

E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node_modules\mdns2>node "C:\Progra m Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bi n\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. txt_record_get_length.cpp txt_record_buffer_to_object.cpp dns_service_process_result.cpp txt_record_deallocate.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\txt_record_deallocate.cpp) [E:\Redux\PyRedux\Windows\node_modul es\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\txt_record_get_length.cpp) [E:\Redux\PyRedux\Windows\node_modul es\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\txt_record_buffer_to_object.cpp) [E:\Redux\PyRedux\Windows\node _modules\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_processresult.cpp) [E:\Redux\PyRedux\Windows\node modules\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] dns_service_browse.cpp network_interface.cpp dns_service_enumerate_domains.cpp dns_service_register.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\network_interface.cpp) [E:\Redux\PyRedux\Windows\node_modules\r tpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_browse.cpp) [E:\Redux\PyRedux\Windows\node_modules\ rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] dns_service_ref_sock_fd.cpp dns_service_resolve.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_enumerate_domains.cpp) [E:\Redux\PyRedux\Windows\no de_modules\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] mdns_utils.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_register.cpp) [E:\Redux\PyRedux\Windows\node_module s\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] dns_service_ref.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_resolve.cpp) [E:\Redux\PyRedux\Windows\node_modules \rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_ref_sock_fd.cpp) [E:\Redux\PyRedux\Windows\node_mod ules\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] txt_record_ref.cpp socket_watcher.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\mdns_utils.cpp) [E:\Redux\PyRedux\Windows\node_modules\rtpmidi\ node_modules\mdns2\build\dns_sd_bindings.vcxproj] dns_service_ref_deallocate.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_ref.cpp) [E:\Redux\PyRedux\Windows\node_modules\rtp midi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] txt_record_set_value.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\socket_watcher.cpp) [E:\Redux\PyRedux\Windows\node_modules\rtpm idi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\txt_record_ref.cpp) [E:\Redux\PyRedux\Windows\node_modules\rtpm idi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] txt_record_create.cpp dns_service_get_addr_info.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_refdeallocate.cpp) [E:\Redux\PyRedux\Windows\node modules\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] dns_sd.cpp e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\txt_record_set_value.cpp) [E:\Redux\PyRedux\Windows\node_module s\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\txt_record_create.cpp) [E:\Redux\PyRedux\Windows\node_modules\r tpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_service_get_addr_info.cpp) [E:\Redux\PyRedux\Windows\node_m odules\rtpmidi\node_modules\mdns2\build\dns_sd_bindings.vcxproj] e:\redux\pyredux\windows\node_modules\rtpmidi\node_modules\mdns2\src\mdns.hpp(3 1): fatal error C1083: Cannot open include file: 'dns_sd.h': No such file or di rectory (..\src\dns_sd.cpp) [E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node _modules\mdns2\build\dns_sd_bindings.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797: 12) gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu les\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd E:\Redux\PyRedux\Windows\node_modules\rtpmidi\node_modules\mdns2 gyp ERR! node -v v0.10.26 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm WARN optional dep failed, continuing mdns2@2.1.4 rtpmidi@0.1.7 node_modules\rtpmidi └── midi-common@0.0.4

bartmoons commented 10 years ago

Did some research and found out that Windows users should install the Apple Bonjour SDK. Fixed now.