gr-gsm Manual installation error

1,052 views
Skip to first unread message

周卓燃

unread,
Jun 12, 2018, 5:16:51 AM6/12/18
to gr-gsm
I am using Ubuntu 16.04

apt update
apt upgrade
apt install git libboost-all-dev swig cmake autoconf libtool pkg-config build-essential python-docutils libcppunit-dev doxygen liblog4cpp5-dev python-scipy gnuradio-dev gr-osmosdr libosmocore-dev gr-osmosdr gnuradio  libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev python-numpy
git clone https://github.com/ptrkrysik/gr-gsm.git
cd gr-gsm
mkdir build
cd build
cmake ..

ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3

make
make install

mkdir /root/.gnuradio/
echo "[grc]" > /root/.gnuradio/config.conf
echo "local_blocks_path=/usr/local/share/gnuradio/grc/blocks" >> /root/.gnuradio/config.conf

ldconfig
The following error occurred during make
[ 90%] Generating grgsm_livemon
Traceback (most recent call last):
  File "/usr/local/bin/grcc", line 32, in <module>
    from gnuradio.grc.python.Platform import Platform
ImportError: No module named python.Platform
apps/CMakeFiles/pygen_apps.dir/build.make:84: recipe for target 'apps/grgsm_livemon' failed
make[2]: *** [apps/grgsm_livemon] Error 1
CMakeFiles/Makefile2:1338: recipe for target 'apps/CMakeFiles/pygen_apps.dir/all' failed
make[1]: *** [apps/CMakeFiles/pygen_apps.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Vasil Velichkov

unread,
Jun 12, 2018, 10:40:01 AM6/12/18
to gr-gsm
Hi 周卓燃,

On Tuesday, June 12, 2018 at 12:16:51 PM UTC+3, 周卓燃 wrote:
I am using Ubuntu 16.04

apt update
apt upgrade
apt install git libboost-all-dev swig cmake autoconf libtool pkg-config build-essential python-docutils libcppunit-dev doxygen liblog4cpp5-dev python-scipy gnuradio-dev gr-osmosdr libosmocore-dev gr-osmosdr gnuradio  libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev python-numpy
git clone https://github.com/ptrkrysik/gr-gsm.git
cd gr-gsm
mkdir build
cd build
cmake ..

ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3

make
make install

mkdir /root/.gnuradio/
echo "[grc]" > /root/.gnuradio/config.conf
echo "local_blocks_path=/usr/local/share/gnuradio/grc/blocks" >> /root/.gnuradio/config.conf

ldconfig
The following error occurred during make
[ 90%] Generating grgsm_livemon
Traceback (most recent call last):
  File "/usr/local/bin/grcc", line 32, in <module>
    from gnuradio.grc.python.Platform import Platform
ImportError: No module named python.Platform


It seems you have two gnuratio/grcc versions installed on your platform, the first is /usr/bin/grcc from the apt repository and the second is /usr/local/bin/grcc probably installed using pybombs.

My advice is to remove the one installed with pybombs. Run `pybombs inv` and for remove all listed packages, it should be something like

$ pybombs inv 
PyBOMBS - INFO - PyBOMBS Version 2.3.2
Showing package state:
uhd:                installed
apache-thrift:      installed
gnuradio:           installed
root@f0dfdf110fd3:/# pybombs remove uhd apache-thrift gnuradio afasfa
PyBOMBS - INFO - PyBOMBS Version 2.3.2

$ pybombs remove uhd apache-thrift gnuradio

The other option is to try to update all pybombs packages

          $ pybombs update

The problem you are having is in gnuradio and have been reported and marked as Resolved. See https://github.com/gnuradio/gnuradio/issues/1018

周卓燃

unread,
Jun 13, 2018, 2:50:59 AM6/13/18
to gr-gsm

It seems you have two gnuratio/grcc versions installed on your platform, the first is /usr/bin/grcc from the apt repository and the second is /usr/local/bin/grcc probably installed using pybombs.

My advice is to remove the one installed with pybombs. Run `pybombs inv` and for remove all listed packages, it should be something like

$ pybombs inv 
PyBOMBS - INFO - PyBOMBS Version 2.3.2
Showing package state:
uhd:                installed
apache-thrift:      installed
gnuradio:           installed
root@f0dfdf110fd3:/# pybombs remove uhd apache-thrift gnuradio afasfa
PyBOMBS - INFO - PyBOMBS Version 2.3.2

$ pybombs remove uhd apache-thrift gnuradio

The other option is to try to update all pybombs packages

          $ pybombs update

The problem you are having is in gnuradio and have been reported and marked as Resolved. See https://github.com/gnuradio/gnuradio/issues/1018

Thank you for your reply,I use pybombs inv  But there was an error and I did not record it
Later I uninstalled pybombs directly

However, the above problem still exists when installing gr-gsm

If I now reinstall ubuntu16.04 and then use the manual installation method, is it possible to avoid the above error?

Vasil Velichkov

unread,
Jun 13, 2018, 3:10:32 AM6/13/18
to gr-gsm
Hi zhouzhuoran,


On Wednesday, June 13, 2018 at 9:50:59 AM UTC+3, zhouzhuoran wrote:

Thank you for your reply,I use pybombs inv  But there was an error and I did not record it
Later I uninstalled pybombs directly

However, the above problem still exists when installing gr-gsm

Removing pybombs does not remove all packages installed by it and you need to remove the gnuradio and not the pyboombs.
 

If I now reinstall ubuntu16.04 and then use the manual installation method, is it possible to avoid the above error?


Yes, it should do the trick, just make sure to format the partition that contains /usr/

zhouzhuoran

unread,
Jun 14, 2018, 3:15:43 AM6/14/18
to gr-gsm
think you so much
Today I reinstalled Ubuntu 16.04,Then uhd and gnuradio are installed from source,

But when I use the following method to install, there is still a problem

apt update
apt upgrade
apt install git libboost-all-dev swig cmake autoconf libtool pkg-config build-essential python-docutils libcppunit-dev doxygen liblog4cpp5-dev python-scipy gnuradio-dev gr-osmosdr libosmocore-dev gr-osmosdr gnuradio  libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev python-numpy
git clone https://github.com/ptrkrysik/gr-gsm.git
cd gr-gsm
mkdir build
cd build
cmake ..

ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3

make
make install

mkdir /root/.gnuradio/
echo "[grc]" > /root/.gnuradio/config.conf
echo "local_blocks_path=/usr/local/share/gnuradio/grc/blocks" >> /root/.gnuradio/config.conf

ldconfig
I checked some emails, but they were all installed with pybombs, And their gnuradio is also installed via apt-get.

Here's my error, exactly the same as the one I looked at
[ 90%] Generating grgsm_livemon
Block key "rtlsdr_source" not found
Validation failed:

Block - blocks_rotator_cc_0 - Rotator(blocks_rotator_cc):
    Sink - in(0):
        Port is not connected.
Error during file compilation.

apps/CMakeFiles/pygen_apps.dir/build.make:84: recipe for target 'apps/grgsm_livemon' failed
make[2]: *** [apps/grgsm_livemon] Error 1
CMakeFiles/Makefile2:1338: recipe for target 'apps/CMakeFiles/pygen_apps.dir/all' failed
make[1]: *** [apps/CMakeFiles/pygen_apps.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
thank you for your help

Vasil Velichkov

unread,
Jun 14, 2018, 3:28:15 AM6/14/18
to gr-...@googlegroups.com

Hi zhouzhuoran,


On 14.06.2018 10:15, zhouzhuoran wrote:
[ 90%] Generating grgsm_livemon
Block key "rtlsdr_source" not found



You need to install the gr-osmosdr package as well

apt-get install gr-osmosdr

zhouzhuoran

unread,
Jun 14, 2018, 5:26:18 AM6/14/18
to gr-gsm
I installed gr-gsm after installing this dependency package. This issue still exists.

zhouzhuoran

unread,
Jun 14, 2018, 7:16:28 AM6/14/18
to gr-gsm
I use the following method
zzr@zzr:~/gr-gsm/build$ git checkout
0.41.4git              origin/grgsm_on_win    ptrkrysik/trx
development            origin/HEAD            pybombs_tests
grgsm_on_win           origin/master          trx_hopping
HEAD                   origin/merge_trx       v0.41.1
master                 origin/ptrkrysik/trx   v0.41.2
merge_trx              origin/pybombs_tests  
origin/development     origin/trx_hopping    
zzr@zzr:~/gr-gsm/build$ git checkout v0.41.2
There is no installation error in the subsequent installation process. GRC can also be used normally. Will there be any bad influence in the subsequent use of GRC?

Vasil Velichkov

unread,
Jun 14, 2018, 10:09:20 AM6/14/18
to gr-gsm


On Thursday, June 14, 2018 at 12:26:18 PM UTC+3, zhouzhuoran wrote:
I installed gr-gsm after installing this dependency package. This issue still exists.

Vasil Velichkov

unread,
Jun 14, 2018, 10:13:10 AM6/14/18
to gr-gsm

On Thursday, June 14, 2018 at 2:16:28 PM UTC+3, zhouzhuoran wrote:
zzr@zzr:~/gr-gsm/build$ git checkout v0.41.2
There is no installation error in the subsequent installation process. GRC can also be used normally. Will there be any bad influence in the subsequent use of GRC? 

This is an old version and it does not recompile the grgsm_livemon application from grgsm_livemon.grc using the grcc compiler. In case grgsm_livemon does not work you need to recompile it manually with grcc or gnuradio-companion. Generally I do not recommend using an old version but it is possible.

zhouzhuoran

unread,
Jun 14, 2018, 9:36:46 PM6/14/18
to gr-gsm
thanks,Vasil Velichkov

I found a problem during my installation. I should install gnuradio from the apt library instead of installing it manually. The problem was solved!
I have a question. Do you have a complete GSM physical layer and link layer send and receive processes?
Reply all
Reply to author
Forward
0 new messages