gr-gsm
gr-gsm copied to clipboard
airprobe/gsm-receiver$ make ..........Fix swig 'unrecognized option -pthread' compile error
-
Installed a clean UBUNTU 16.04 64 bit
-
installed libosmocore
3.sudo apt install gnu radio 3.7.9
- installed gr-gsm
5.git clone https://github.com/velichkov/gr-gsm.git
6 vic @ vic: ~ / airprobe / gsm-receiver $ make (https://github.com/iamckn/airprobe)
Mistake:
swig error: Unrecognized option -pthread
Use 'swig -help' for available options.
Makefile: 1217: recipe for target '.deps / gsm-generate-stamp' failed
make [5]: *** [.deps / gsm-generate-stamp] Error 1
make [5]: Leaving directory '/ home / vic / airprobe / gsm-receiver / src / lib'
/ bin / bash ../../libtool --tag = CXX --mode = compile g ++ -DHAVE_CONFIG_H -I. -I ../ .. -I -I -I / usr / include -I / usr / include / gnuradio / swig -pthread -I / usr / local / include / -I ../../ src / lib / decoder / openbtsstuff -I / usr / include / python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps / _gsm_la-gsm.Tpo -c -o _gsm_la-gsm.lo test -f 'gsm.cc' || echo './'gsm.cc
libtool: compile: g ++ -DHAVE_CONFIG_H -I. -I ../ .. -I -I -I / usr / include -I / usr / include / gnuradio / swig -pthread -I / usr / local / include / -I ../../ src / lib / decoder / openbtsstuff -I / usr / include / python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps / _gsm_la-gsm.Tpo -c ./gsm.cc -fPIC -DPIC -o .libs / _gsm_la-gsm.o
g ++: error: ./gsm.cc: No such file or directory
g ++: fatal error: no input files
compilation terminated.
Makefile: 750: recipe for target '_gsm_la-gsm.lo' failed
make [4]: *** [_gsm_la-gsm.lo] Error 1
make [4]: Leaving directory '/ home / vic / airprobe / gsm-receiver / src / lib'
Makefile: 880: recipe for target 'all-recursive' failed
make [3]: *** [all-recursive] Error 1
make [3]: Leaving directory '/ home / vic / airprobe / gsm-receiver / src / lib'
Makefile: 421: recipe for target 'all-recursive' failed
make [2]: *** [all-recursive] Error 1
make [2]: Leaving directory '/ home / vic / airprobe / gsm-receiver / src'
Makefile: 576: recipe for target 'all-recursive' failed
make [1]: *** [all-recursive] Error 1
make [1]: Leaving directory '/ home / vic / airprobe / gsm-receiver'
Makefile: 484: recipe for target 'all' failed
make: *** [all] Error 2
vic @ vic: ~ / airprobe / gsm-receiver $
I can’t solve this problem for about two months, I searched the network for solutions periodically. Many have such an error. I somehow managed to install the airprobe package on UBUNTU 16.04 36 bit three times. Now to use go.sh I am converting a file on another computer with 32 bit. But under 32bit Kraken does not work. As I understand it on 64 bit, is that so? But lately, airprobe has not been put on 16.04 32 bit. I have suspicions that there is a mandatory installation sequence and I do not follow this.
The error swig error: Unrecognized option -pthread has been fixed long ago - https://github.com/iamckn/airprobe/commits/master Commits on May 13, 2011
Fix swig 'unrecognized option -pthread' compile error GNURADIO_CORE_CFLAGS may set '-pthread' which is not parseable by swig, so we need to explicitly use GNURADIO_CORE_INCLUDEDIR instead.
Also, the GNURADIO_CORE_INCLUDEDIR / swig directory needs to be explicitly specified in Makefile.common
$ (GNURADIO_CORE_CFLAGS) \ change -I $ (GNURADIO_CORE_INCLUDEDIR)
-I $ (GNURADIO_CORE_INCLUDEDIR) / swig \
as well as "The new version 3.7 GNU Radio is not compatible with AirProbe. You will need to install GNU Radio 3.6. However, neeo from the comments section of this post has created a patch which makes AirProbe compatible with GNU Radio 3.7." But airprobe is already with the patch. And in particular the lines
-I $ (GNURADIO_CORE_INCLUDEDIR)
-I $ (GNURADIO_CORE_INCLUDEDIR) / swig \
fixed on
-I $ (GNURADIO_RUNTIME_INCLUDEDIR)
-I $ (GNURADIO_RUNTIME_INCLUDEDIR) / swig \