Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 27-Dec-2016 | - | ||||
cmake/ | H | 27-Dec-2016 | - | 378 | 321 | |
hackrf-tools/ | H | 03-May-2022 | - | 3,679 | 2,621 | |
libhackrf/ | H | 03-May-2022 | - | 1,972 | 1,581 | |
python/ | H | 27-Dec-2016 | - | 109 | 54 | |
README.md | H A D | 27-Dec-2016 | 2.5 KiB | 100 | 55 |
README.md
1This repository contains host software (Linux/Windows) for HackRF, a project to 2produce a low cost, open source software radio platform. 3 4##How to build the host software on Linux: 5 6###Prerequisites for Linux (Debian/Ubuntu): 7 8`sudo apt-get install build-essential cmake libusb-1.0-0-dev pkg-config` 9 10###Build host software on Linux: 11 12`cd host` 13 14`mkdir build` 15 16`cd build` 17 18`cmake ../ -DINSTALL_UDEV_RULES=ON` 19 20`make` 21 22`sudo make install` 23 24`sudo ldconfig` 25 26##Clean CMake temporary files/dirs: 27 28`cd host/build` 29 30`rm -rf *` 31 32##How to build host software on Windows: 33 34###Prerequisites for cygwin or mingw: 35 36* cmake-2.8.12.1 or more see http://www.cmake.org/cmake/resources/software.html 37* libusbx-1.0.18 or more see http://sourceforge.net/projects/libusbx/files/latest/download?source=files 38* Install Windows driver for HackRF hardware or use Zadig see http://sourceforge.net/projects/libwdi/files/zadig 39 - If you want to use Zadig select HackRF USB device and just install/replace it with WinUSB driver. 40 41>**Note for Windows build:** 42 You shall always execute hackrf-tools from Windows command shell and not from Cygwin or Mingw shell because on Cygwin/Mingw 43 Ctrl C is not managed correctly and especially for hackrf_transfer the Ctrl C(abort) will not stop correctly and will corrupt the file. 44 45###For Cygwin: 46 47`cd host` 48 49`mkdir build` 50 51`cd build` 52 53`cmake ../ -G "Unix Makefiles" -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/` 54 55`make` 56 57`make install` 58 59 60###For MinGW: 61 62`cd host` 63 64`mkdir build` 65 66`cd build` 67 68Normal version: 69 70* 71`cmake ../ -G "MSYS Makefiles" -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/` 72 73Debug version: 74 75* 76`cmake ../ -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/` 77 78`make` 79 80`make install` 81 82###For Visual Studio 2012 x64 83`c:\hackrf\host\cmake>cmake ../ -G "Visual Studio 11 2012 Win64" -DLIBUSB_INCLUDE_DIR=c:\libusb-1.0.18-win\include\libusb-1.0 -DLIBUSB_LIBRARIES=c:\libusb-1.0.18-win\MS64\static\libusb-1.0.lib -DTHREADS_PTHREADS_INCLUDE_DIR=c:\pthreads-w32-2-9-1-release\Pre-built.2\include -DTHREADS_PTHREADS_WIN32_LIBRARY=c:\pthreads-w32-2-9-1-release\Pre-built.2\lib\x64\pthreadVC2.lib` 84 85Solution file: `c:\hackrf\host\cmake\hackrf_all.sln` 86 87##How to build host the software on FreeBSD 88 89You can use the binary package: 90`# pkg install hackrf` 91 92You can build and install from ports: 93`# cd /usr/ports/comms/hackrf` 94`# make install` 95 96 97principal author: Michael Ossmann <mike@ossmann.com> 98 99http://greatscottgadgets.com/hackrf/ 100