-
Notifications
You must be signed in to change notification settings - Fork 14
Installation instructions for Windows 7
Note: These steps are taken from Install Homebridge on Windows: New version (with Plugin)
Note: The Windows User-Account must have administrator rights!
-
Visual Studio Community (https://www.visualstudio.com/products/visual-studio-community-vs)
-
Python 2.7.10 (https://www.python.org/downloads/) You create a system environment variables -> Name: python | value: C:\Python27\python.exe (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true)
-
Open SSL 1.0.2 (http://www.heise.de/download/win32-openssl.html)
-
Nodejs v4.2.2 (https://nodejs.org/en/download/)
-
Bonjour SDK for Windows (https://developer.apple.com/bonjour/)
-
Restart your Computer.
-
getopt.h & getopt.c (http://www.codeproject.com/Articles/157001/Full-getopt-Port-for-Unicode-and-Multibyte-Microso => Download source - 6.4 KB) to your Visual Studio VC Include folder (C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include).
-
unistd.h (do it yourself => Source: https://github.com/KhaosT/HAP-NodeJS/issues/113).
9.1 - Create a file named unistd.h and insert the following text.
#ifndef _UNISTD_H
#define _UNISTD_H 1
/* This file intended to serve as a drop-in replacement for
unistd.h on Windows
Please add functionality as neeeded */
/* #include
#include
#include
#include */ /* for getpid() and the exec..() family /
#include / for _getcwd() and _chdir() */
#define srandom srand
#define random rand
/* Values for the second argument to access.
These may be OR'd together. /
#define R_OK 4 / Test for read permission. /
#define W_OK 2 / Test for write permission. /
//#define X_OK 1 / execute permission - unsupported in windows/
#define F_OK 0 / Test for existence. */
#define access _access
#define dup2 _dup2
#define execve _execve
#define ftruncate _chsize
#define unlink _unlink
#define fileno _fileno
#define getcwd _getcwd
#define chdir _chdir
#define isatty _isatty
#define lseek _lseek
/* read, write, and close are NOT being #defined here, because while there are file handle specific versions for
Windows, they probably don't work for sockets. You need to look at your app and consider whether to call e.g.
closesocket(). */
#define ssize_t int
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
/* should be in some equivalent to */
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef signed __int64 int64_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
#endif /* unistd.h */
9.2 - Save the file unistd.h to your Visual Studio VC Include folder (C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include)
Restart your computer