Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compile instructions to README.md #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2005-2022 Silicondust USA Inc. <www.silicondust.com>.
Copyright © 2005-2022 Silicondust USA Inc. <www.silicondust.com>.

This library implements the libhdhomerun protocol for use with Silicondust HDHomeRun TV tuners.

Expand All @@ -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++.