Gnuradio could not be found because dependency Volk could not be found.

3,012 views
Skip to first unread message

Ice w

unread,
Nov 7, 2019, 10:12:53 PM11/7/19
to gr-...@googlegroups.com


Hi 

my systems is 


root@kali:/# cat /etc/issue

Kali GNU/Linux Rolling \n \l


root@kali:/# uname -a

Linux kali 5.2.0-kali2-amd64 #1 SMP Debian 5.2.9-2kali1 (2019-08-22) x86_64 GNU/Linux


#I got  a problem pls help me



root@kali:~# cd gr-gsm

root@kali:~/gr-gsm# ls

apps            COPYING  examples     include  MANIFEST.md  swig        tests

cmake           dists    grc          lib      python       test_data

CMakeLists.txt  docs     hier_blocks  LICENSE  README.md    TESTING.md

root@kali:~/gr-gsm# mkdir build

root@kali:~/gr-gsm# cd build

root@kali:~/gr-gsm/build# cmake ..

-- The CXX compiler identification is GNU 9.2.1

-- The C compiler identification is GNU 9.2.1

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Build type not specified: defaulting to release.

CMake Deprecation Warning at CMakeLists.txt:45 (cmake_policy):

  The OLD behavior for policy CMP0026 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



CMake Deprecation Warning at CMakeLists.txt:48 (cmake_policy):

  The OLD behavior for policy CMP0043 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



CMake Deprecation Warning at CMakeLists.txt:51 (cmake_policy):

  The OLD behavior for policy CMP0045 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



CMake Deprecation Warning at CMakeLists.txt:54 (cmake_policy):

  The OLD behavior for policy CMP0046 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



-- Found Git: /usr/bin/git (found version "2.23.0.rc1") 

-- Extracting version information from git describe...

-- Looking for pthread.h

-- Looking for pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - not found

-- Looking for pthread_create in pthreads

-- Looking for pthread_create in pthreads - not found

-- Looking for pthread_create in pthread

-- Looking for pthread_create in pthread - found

-- Found Threads: TRUE  

-- Boost version: 1.67.0

-- Found the following Boost libraries:

--   filesystem

--   system

--   thread

--   chrono

--   date_time

--   atomic

-- 

-- Checking for module SWIG

-- Found SWIG version 3.0.12.

-- Found SWIG: /usr/bin/swig3.0  

-- Found LOG4CPP: /usr/lib/x86_64-linux-gnu/liblog4cpp.so

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 

-- Checking for module 'gmp'

--   No package 'gmp' found

-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so  

-- Checking for module 'mpir >= 3.0'

--   No package 'mpir' found

-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) 

-- Found MPLIB: /usr/lib/x86_64-linux-gnu/libgmpxx.so  

-- Checking for module 'volk'

--   Found volk, version 2.0

-- Found VOLK: /usr/lib/x86_64-linux-gnu/libvolk.so  

CMake Warning at CMakeLists.txt:135 (find_package):

  Found package configuration file:


    /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake


  but it set Gnuradio_FOUND to FALSE so package "Gnuradio" is considered to

  be NOT FOUND.  Reason given by package:


  Gnuradio could not be found because dependency Volk could not be found.




-- Checking for module 'cppunit'

--   Found cppunit, version 1.14.0

-- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl  

-- Checking for module 'libosmocore'

--   Found libosmocore, version 0.12.0

-- Found libosmocore: /usr/lib/x86_64-linux-gnu/libosmocore.so  

-- Checking for module 'libosmocodec'

--   Found libosmocodec, version 0.12.0

-- Found libosmocodec: /usr/lib/x86_64-linux-gnu/libosmocodec.so  

-- Checking for module 'libosmocoding'

--   Found libosmocoding, version 0.12.0

-- Found libosmocoding: /usr/lib/x86_64-linux-gnu/libosmocoding.so  

-- Checking for module 'libosmogsm'

--   Found libosmogsm, version 0.12.0

-- Found libosmogsm: /usr/lib/x86_64-linux-gnu/libosmogsm.so  

CMake Error at CMakeLists.txt:150 (message):

  GnuRadio Runtime required to compile gr-gsm



-- Configuring incomplete, errors occurred!

See also "/root/gr-gsm/build/CMakeFiles/CMakeOutput.log".

See also "/root/gr-gsm/build/CMakeFiles/CMakeError.log".

root@kali:~/gr-gsm/build# mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/

root@kali:~/gr-gsm/build# make

make: *** No targets specified and no makefile found.  Stop.

root@kali:~/gr-gsm/build# cmke

bash: cmke: command not found

root@kali:~/gr-gsm/build# cmake ..

-- Build type not specified: defaulting to release.

CMake Deprecation Warning at CMakeLists.txt:45 (cmake_policy):

  The OLD behavior for policy CMP0026 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



CMake Deprecation Warning at CMakeLists.txt:48 (cmake_policy):

  The OLD behavior for policy CMP0043 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



CMake Deprecation Warning at CMakeLists.txt:51 (cmake_policy):

  The OLD behavior for policy CMP0045 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



CMake Deprecation Warning at CMakeLists.txt:54 (cmake_policy):

  The OLD behavior for policy CMP0046 will be removed from a future version

  of CMake.


  The cmake-policies(7) manual explains that the OLD behaviors of all

  policies are deprecated and that a policy should be set to OLD only under

  specific short-term circumstances.  Projects should be ported to the NEW

  behavior and not rely on setting a policy to OLD.



-- Extracting version information from git describe...

-- Boost version: 1.67.0

-- Found the following Boost libraries:

--   filesystem

--   system

--   thread

--   chrono

--   date_time

--   atomic

-- 

-- Checking for module SWIG

-- Found SWIG version 3.0.12.

-- Checking for module 'gmp'

--   No package 'gmp' found

-- Checking for module 'mpir >= 3.0'

--   No package 'mpir' found

-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) 

CMake Warning at CMakeLists.txt:135 (find_package):

  Found package configuration file:


    /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake


  but it set Gnuradio_FOUND to FALSE so package "Gnuradio" is considered to

  be NOT FOUND.  Reason given by package:


  Gnuradio could not be found because dependency Volk could not be found.




CMake Error at CMakeLists.txt:150 (message):

  GnuRadio Runtime required to compile gr-gsm



-- Configuring incomplete, errors occurred!

See also "/root/gr-gsm/build/CMakeFiles/CMakeOutput.log".

See also "/root/gr-gsm/build/CMakeFiles/CMakeError.log".

root@kali:~/gr-gsm/build# 

CMakeError.log
CMakeOutput.log

Cinaed Simson

unread,
Nov 8, 2019, 4:15:31 AM11/8/19
to Ice w, gr-...@googlegroups.com

Actually, gnuradio is missing - it's required to compile gr-gsm.

-- Cinaed
> --
> You received this message because you are subscribed to the Google
> Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gr-gsm+un...@googlegroups.com
> <mailto:gr-gsm+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gr-gsm/CAEG_3fNXzQtirXYkZhZZfrWChcdq-ZV0r-fbZ-B_JCgQABeHUA%40mail.gmail.com
> <https://groups.google.com/d/msgid/gr-gsm/CAEG_3fNXzQtirXYkZhZZfrWChcdq-ZV0r-fbZ-B_JCgQABeHUA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Vasil Velichkov

unread,
Nov 8, 2019, 7:59:36 PM11/8/19
to Ice w, Cinaed Simson, gr-...@googlegroups.com
Hi Ice w, Cinaed,

In Debian Testing and Kali they have updated gnuradio to 3.8 that is not backward compatible with 3.7. Currently the gr-gsm version from the master branch does not support gnuradio 3.8. We are working on porting it in https://github.com/ptrkrysik/gr-gsm/issues/475. For now you need to checkout and build the maint-3.8 branch from my fork.

git clone -b maint-3.8 https://github.com/velichkov/gr-gsm.git
cd gr-gsm
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

Regards,
Vasil

Vasil Velichkov

unread,
Nov 9, 2019, 7:01:38 AM11/9/19
to Ice w, Cinaed Simson, gr-...@googlegroups.com
Hi Ice w,

On 09/11/2019 13.36, Ice w wrote:
> Hi Vasil
> root@kali:~/gr-gsm/apps# grgsm_scanner -v
> Traceback (most recent call last):
> File "/usr/local/bin/grgsm_scanner", line 33, in <module>
> import grgsm
> ModuleNotFoundError: No module named 'grgsm'

You need to export these two environment variables and/or add them in your ~/.bash_profile

export PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH
export VOLK_GENERIC=1

The VOLK variable is needed because of a bug in the Rotator block[1] and the PYTHONPATH is needed because Debian has patched where gnuradio's python OOT modules are installed[2]

[1] https://github.com/gnuradio/volk/pull/278
[2] https://salsa.debian.org/bottoms/pkg-gnuradio/blob/unstable/debian/patches/debian-python-install#L8

Regards,
Vasil
Message has been deleted

essadq...@gmail.com

unread,
Nov 9, 2019, 2:12:41 PM11/9/19
to gr-gsm
HI my friend,

This is my bash probille ? 
/usr/local/lib/python3/dist-packages/grgsm#

If I understand correctly I will have to found "PYTHONPATH" and "VOLK_GENERIC=1" and move them on this folder ?
But how I will found where are "PYTHONPATH" and "VOLK_GENERIC=1" ?

thank you

Cinaed Simson

unread,
Nov 9, 2019, 5:32:04 PM11/9/19
to gr-...@googlegroups.com
On 11/9/19 11:12 AM, essadq...@gmail.com wrote:
> HI my friend,
>
> This is my bash probille ? 
> /usr/local/lib/python3/dist-packages/grgsm#

Hi Ice - no, your bash profile is here

~/.bash_profile

After you've added the variables to your .bash_profile, source it by typing

. ~/.bash_profile

the "." is how you source a file.

Then check your environment by typing

env | grep VOLK_GENERIC

and

env | grep PYTHONPATH

-- Cinaed
> <https://salsa.debian.org/bottoms/pkg-gnuradio/blob/unstable/debian/patches/debian-python-install#L8>
>
>
> Regards,
> Vasil
>
> --
> You received this message because you are subscribed to the Google
> Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gr-gsm+un...@googlegroups.com
> <mailto:gr-gsm+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gr-gsm/ed061293-2986-48d2-b431-d94d04d65d56%40googlegroups.com
> <https://groups.google.com/d/msgid/gr-gsm/ed061293-2986-48d2-b431-d94d04d65d56%40googlegroups.com?utm_medium=email&utm_source=footer>.

Aishu Engolikar

unread,
May 13, 2021, 2:05:54 PM5/13/21
to gr-gsm
Hi,
    I am trying to build gnuradio v3.8 in my ubuntu 20.04 system, but I am stuck with the error below.


- ADDING PERF COUNTERS
-- User set python executable /usr/bin/python3
-- Could NOT find PythonLibs: Found unsuitable version "2.7.18", but required is exact version "3.8" (found /usr/lib/x86_64-linux-gnu/libpython2.7.so)
-- Python checking for six - python 2 and 3 compatibility library - found
-- 
-- Checking for module SWIG
-- Found SWIG version 4.0.1.
-- 
-- Configuring python-support support...
--   Dependency PYTHONLIBS_FOUND = FALSE
--   Dependency SWIG_FOUND = TRUE
--   Dependency SWIG_VERSION_CHECK = TRUE
--   Dependency SIX_FOUND = TRUE
CMake Error at cmake/Modules/GrComponent.cmake:75 (message):
  user force-enabled python-support but configuration checked failed
Call Stack (most recent call first):
  CMakeLists.txt:381 (GR_REGISTER_COMPONENT)


-- Configuring incomplete, errors occurred!
See also "/home/gayathri/workarea/gnuradio/build/CMakeFiles/CMakeOutput.log".
See also "/home/gayathri/workarea/gnuradio/build/CMakeFiles/CMakeError.log".


Please help me resolve this.Looking forward for a solution.(I was not able to attach the log files here since there was not attach file  here.)

Cinaed Simson

unread,
May 13, 2021, 10:42:29 PM5/13/21
to gr-...@googlegroups.com
Hi Aishu - why don't you just  try using the Ubuntu's distribution first.

  apt install gnuradio-dev
  apt install librtlsdr-dev
  apt install rtl-sdr
  apt install gr-osmosdr
  apt install libosmosdr-dev
  apt install libosmocore-dev

Or use pybombs to install gnuradio from source?

And you should only have 1 installation of gnuradio on your system - or you're going to have nothing but trouble.

Note, this is not the gnuadio mailing list.

-- CInaed
To unsubscribe from this group and stop receiving emails from it, send an email to gr-gsm+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/5f304513-49fe-4c62-b722-ac5c42170424n%40googlegroups.com.

Cinaed Simson

unread,
May 13, 2021, 10:48:11 PM5/13/21
to gr-...@googlegroups.com
And regarding the first error about "Could NOT find PythonLibs"  type
 
  apt list --installed | grep libpython3-dev

If nothing comes back, then

  apt install libpython3-dev

-- Cinaed



On 5/13/21 11:05 AM, Aishu Engolikar wrote:
Hi,
    I am trying to build gnuradio v3.8 in my ubuntu 20.04 system, but I am stuck with the error below.


- ADDING PERF COUNTERS
-- User set python executable /usr/bin/python3
-- ": Found unsuitable version "2.7.18", but required is exact version "3.8" (found /usr/lib/x86_64-linux-gnu/libpython2.7.so)
To unsubscribe from this group and stop receiving emails from it, send an email to gr-gsm+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/5f304513-49fe-4c62-b722-ac5c42170424n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages