You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-3Lines changed: 40 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
python_hackrf is a cython wrapper for [hackrf](https://github.com/greatscottgadgets/hackrf).
4
4
5
-
Before installing python_hackrf library, you must have hackrf host software installed. Because this library uses dynamic linking with an existing library file.
5
+
Before installing python_hackrf library, you must have hackrf host software installed. Because this library uses dynamic linking with an existing library file. Minimum libhackrf version: 2024.02.1+ (0.9)
6
+
7
+
For windows users please use [additional steps](#installation-on-windows) to install python_hackrf
If your hackrf files are in non-standard paths and during installation the python_hackrf cannot find hackrf.h or the library file, you can specify the paths via environment variables
export/set {linux and macos / windows} PYTHON_HACKRF_CFLAGS=path_to_hackrf.h
17
+
export/set {linux and macos / windows} PYTHON_HACKRF_LDFLAGS=path_to_hackrf.(so, dylib, dll)
16
18
```
17
19
18
20
## Requirements:
@@ -160,3 +162,38 @@ Please use the original hackrf documentation
160
162
161
163
## Notes
162
164
For pyhackrf_transfer, FileBuffer (utils module) has been implemented, which will allow you to more conveniently receive and send iq data from sdr.
165
+
166
+
167
+
## Installation on Windows
168
+
To install python_hackrf, you must first install the HackRF software. Official installation instructions are available on the [HackRF documentation site](https://hackrf.readthedocs.io/en/latest/installing_hackrf_software.html).
169
+
Alternatively, you can download the ZIP archive from the Releases tab of this repository. Extract the archive and move its contents to the standard location: `C:\Program Files\HackRF`
170
+
171
+
The HackRF directory should contain the following subfolders and files:
172
+
```
173
+
├── include
174
+
│ └── hackrf.h
175
+
└── lib
176
+
├── hackrf.dll
177
+
├── hackrf.lib ← for MSVC
178
+
├── libhackrf.a ← for MinGW
179
+
├── libusb-1.0.dll
180
+
└── pthreadVC2.dll
181
+
```
182
+
183
+
184
+
In addition, the archive includes other required DLLs and dependencies to ensure proper operation of HackRF on Windows.
185
+
libusb-1.0.dll
186
+
pthreadVC2.dll
187
+
188
+
If you install hackrf yourself or via another path, set the following environment variables
189
+
190
+
MSVC:
191
+
```
192
+
set PYTHON_HACKRF_CFLAGS=/I"{path to .h file directory}"
193
+
set PYTHON_HACKRF_LDFLAGS=/LIBPATH:"{path to .dll and .lib file directory}" hackrf.lib
194
+
```
195
+
MinGW:
196
+
```
197
+
set PYTHON_HACKRF_CFLAGS=-I"{path to .h file directory}"
198
+
set PYTHON_HACKRF_LDFLAGS=-L"{path to .dll and .a file directory}" -lhackrf'
0 commit comments