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

Added Windows support #146

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Updated build steps for MSYS2...
fixed a newly introduced build issue caused by ncurses in MSYS2 builds.
  • Loading branch information
snake-4 committed Nov 14, 2022
commit 8adfa14bc07fea86023aa2317fb0c9c0e90a1d31
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ endif

ifeq ($(UNAME), Windows)
# TODO: Perhaps copy the DLL files to the output folder if the OS is Windows?
CPPFLAGS += -DMISSING_TIME_R_FUNCS -DMISSING_CURSES_H_NCURSES -D_USE_MATH_DEFINES
CPPFLAGS += -DMISSING_TIME_R_FUNCS -DMISSING_CURSES_H_NCURSES -D_USE_MATH_DEFINES -DNCURSES_STATIC
LIBS += -lws2_32 -lsystre
LIBS_USB += -lusb-1.0
LIBS_CURSES := -lncurses
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ libhackrf.
libLimeSuite.

## Building on MSYS2
1. Install PothosSDR to `C:\PothosSDR\` and install MSYS2.
> The PothosSDR path can't have spaces in it because the MinGW gcc
doesn't recognize Windows style paths with escaped spaces in them
which is what the pkg-config returns.
2. Remove the following headers `pthread.h, semaphore.h, sched.h` from `<PothosSDR root>/include`.
> MSYS2 already has these POSIX headers and we need the compiler to use the default headers.

Install PothosSDR on the default location and install MSYS2.
#### Building with MinGW-w64
```
$ pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-ncurses mingw-w64-x86_64-libsystre mingw-w64-x86_64-libusb
Expand Down