diff --git a/README.md b/README.md index 1f3a6dd..22f96e1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Copyright © 2005-2022 Silicondust USA Inc. . +Copyright © 2005-2022 Silicondust USA Inc. . This library implements the libhdhomerun protocol for use with Silicondust HDHomeRun TV tuners. @@ -10,3 +10,16 @@ The top level API is hdhomerun_device - see hdhomerun_device.h for documentation Additional libraries required: - pthread (osx, linux, bsd) - iphlpapi (windows) + +# Compile Instructions + +## Linux/BSD +* run `make` + +## Windows +* Create a new Visual Studio project (empty C++) +* Include all the .c and .h files, except `hdhomerun_os_posix.h`, `hdhomerun_os_posix.c`, `hdhomerun_sock_getifaddrs.c`, `hdhomerun_sock_netdevice.c`, `hdhomerun_sock_netlink.c` & `hdhomerun_sock_posix.c` +* Under the Linker input, add `Bcrypt.lib`, `Ws2_32.lib`, `iphlpapi.lib` as Additional Dependencies. +* Build using Visual Studio + +If using VS2017 or earlier, on the project properties page under C/C++ advanced, change the Compile As type to C, click apply and then change it back to C++ – this is a workaround for a bug in MSVC++.