From f877e4b2265acadb0117c42233d444fb1a2c5473 Mon Sep 17 00:00:00 2001 From: James McGuire <46612003+jamesmcguirepro@users.noreply.github.com> Date: Wed, 23 Nov 2022 21:49:32 -0800 Subject: [PATCH 1/2] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f3a6dd..7ece3b1 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,15 @@ 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` +* 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++. +* Under the Linker input, add `Bcrypt.lib`, `Ws2_32.lib`, `iphlpapi.lib` as Additional Dependencies. +* Build using Visual Studio From cf4cb50eaffdaeace69faab47544c2b5d3b074f7 Mon Sep 17 00:00:00 2001 From: James McGuire <46612003+jamesmcguirepro@users.noreply.github.com> Date: Thu, 9 Mar 2023 19:59:50 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ece3b1..22f96e1 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Additional libraries required: ## 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` -* 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++. * 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++.