HackRF 在不同操作系统里的编译安装要点
原文见https://github.com/mossmann/hackrf/wiki/Operating-System-Tips
以下提供一些特定操作系统的编译/安装的注意的要点。
Windows下编译
见http://www.hackrf.net/2014/03/compile-hackrf-host-on-windows-and-linux/Ubuntu 13.04
- 依赖
sudo apt-get -y install build-essential cmake git-core autoconf automake libtool g++ python-dev swig \ pkg-config libfftw3-dev libboost1.53-all-dev libcppunit-dev libgsl0-dev \ libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy \ python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \ libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev ia32-libs
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded sudo apt-get update && sudo apt-get install gcc-arm-none-eabi
libhackrf
git clone git://github.com/mossmann/hackrf.git cd hackrf/host mkdir build && cd build cmake .. make sudo make install
- GNU Radio (注意这里会安装GNU Radio 3.7.x 版本, 意味着旧的流程图会由于程序内部命名的问题,无法使用)
git clone git://git.gnuradio.org/gnuradio.git cd gnuradio mkdir build && cd build cmake ../ make -j4 # example build command to speed up compilation process when 4 cores are available sudo make install sudo ldconfig
gr-osmosdr
git clone git://git.osmocom.org/gr-osmosdr cd gr-osmosdr mkdir build && cd build cmake ../ make sudo make install
OS X (10.5+) with MacPorts
sudo port install gr-osmosdr +full
更进一步的使用homebrew来在OS X上编译HackRF的信息,请参考链接
Gentoo Linux
emerge hackrf-tools
USE="hackrf" emerge gr-osmosdr