Skip to content

Commit af3f5fa

Browse files
committed
updated
1 parent 9534bd6 commit af3f5fa

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ pip install git+https://github.com/GvozdevLeonid/python_hackrf.git
1313

1414
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
1515
```
16-
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+
LINUX/MACOS:
17+
export PYTHON_HACKRF_CFLAGS=path_to_hackrf.h
18+
export PYTHON_HACKRF_LDFLAGS=path_to_hackrf.(so, dylib)
19+
WINDOWS:
20+
set PYTHON_HACKRF_INCLUDE_PATH=path_to_hackrf.h dir
21+
set PYTHON_HACKRF_LIB_PATH=path_to_libhackrf.dll dir
1822
```
1923

2024
## Requirements:
2125
* Numpy>=2.2.1
26+
* Cython==0.29.37
2227
* Scipy (optional, for faster work)
2328
* pyFFTW (optional, for faster work)
2429
* pyjnius and android (only for android)
@@ -188,15 +193,9 @@ msvcr100.dll
188193

189194
If you install hackrf yourself or via another path, set the following environment variables
190195

191-
MSVC:
196+
MSVC | MinGW:
192197
```
193-
set PYTHON_HACKRF_CFLAGS=/I"{path to .h file directory}"
194-
set PYTHON_HACKRF_LDFLAGS=/LIBPATH:"{path to .dll and .lib file directory}" hackrf.lib
195-
set HACKRF_LIB_DIR="{path to .dll and .lib file directory}"
196-
```
197-
MinGW:
198-
```
199-
set PYTHON_HACKRF_CFLAGS=-I"{path to .h file directory}"
200-
set PYTHON_HACKRF_LDFLAGS=-L"{path to .dll and .a file directory}" -lhackrf'
201-
set HACKRF_LIB_DIR="{path to .dll and .lib file directory}"
198+
set PYTHON_HACKRF_INCLUDE_PATH=path to .h file directory
199+
set PYTHON_HACKRF_LIB_PATH=path to .dll and .lib file directory
200+
set HACKRF_LIB_DIR=path to .dll and .lib file directory
202201
```

0 commit comments

Comments
 (0)