airprobe的GNURadio 3.7版本及HackRF支持
由于GNURadio由3.6版本升级到3.7版本之后,原有的代码需要进行改动之后才可以进行编译。
改动介绍请参阅http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7
否则会出现以下提示:
1
2
3
4
5
6
7
8
9
10
|
checking for GNURADIO_CORE... configure: error: Package requirements (gnuradio–core >= 3) were not met:
No package ‘gnuradio-core’ found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non–standard prefix.
Alternatively, you may set the environment variables GNURADIO_CORE_CFLAGS
and GNURADIO_CORE_LIBS to avoid the need to call pkg–config.
See the pkg–config man page for more details.
|
Patch代码见https://github.com/scateu/airprobe-3.7-hackrf-patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$ cd airprobe
$ patch –p1 < ./zmiana.patch
patching file gsm–receiver/Makefile.common
patching file gsm–receiver/config/gr_libgnuradio_core_extra_ldflags.m4
patching file gsm–receiver/config/gr_standalone.m4
patching file gsm–receiver/src/lib/Makefile.swig.gen
patching file gsm–receiver/src/lib/gsm.i
patching file gsm–receiver/src/lib/gsm_constants.h
patching file gsm–receiver/src/lib/gsm_receiver_cf.cc
patching file gsm–receiver/src/lib/gsm_receiver_cf.h
patching file gsm–receiver/src/python/gsm_receive.py
$ cd gsm–receiver
$ . ./bootstrap
|
另外,gsm_receive_hackrf_3.7.py程序对原有的gsm_receive_rtl.py进行了修改,主要是改变了增益,请将它放在airprobe/gsm-receiver/src/python目录下使用。
airprobe编译
1
2
3
4
5
6
7
8
9
10
11
|
git clone git://git.gnumonks.org/airprobe.git
cd airprobe/gsmdecode
./bootstrap
./configure
make
cd airprobe/gsm–receiver
./bootstrap
./configure
make
|