# Cmake error: cant find gnuradio\_runtime\_libraries

**URL:** <https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576>\
**Category:** GNU Radio\
**Created:** [March 14, 2015, 4:38pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576 "2015-03-14T16:38:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [March 14, 2015, 4:38pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/1 "2015-03-14T16:38:26Z")

</div>

Hey Marcus,  
I am trying to build my own custom block in gnuradio, with the help of  
following link  
“[http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules](http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules) and  
[https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig](https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig)  
[Making your own signal processing blocks in GNU Radio - YouTube](https://www.youtube.com/watch?v=BW8o9ZgFJ5I)”  
But i am stuck with an error while cmake

abhishek@abhishek-Inspiron-N5110:~/gr-howto/build$ cmake …/  
– The CXX compiler identification is GNU 4.8.2  
– The C compiler identification is GNU 4.8.2  
– 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  
– 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  
– Build type not specified: defaulting to release.  
– Boost version: 1.55.0  
– Found the following Boost libraries:  
– filesystem  
– system  
– Found PkgConfig: /usr/bin/pkg-config (found version “0.26”)  
– checking for module ‘gnuradio-runtime’  
– package ‘gnuradio-runtime’ not found  
– Could NOT find GNURADIO\_RUNTIME (missing:  
GNURADIO\_RUNTIME\_LIBRARIES)  
– checking for module ‘cppunit’  
– found cppunit, version 1.13.1  
– Found CPPUNIT: /usr/lib/x86\_64-linux-gnu/libcppunit.so;dl  
CMake Error at CMakeLists.txt:98 (message):  
GnuRadio Runtime required to compile howto

– Configuring incomplete, errors occurred!

In order to trouble shoot.  
I reinstall gnuradio from apt-get install, later i install all the  
dependencies from the source. Even I build the gnuradio script from "  
[http://www.sbrac.org/files/build-gnuradio](http://www.sbrac.org/files/build-gnuradio)"  
Will you help me out with this…  
my gnuradio version is:  
abhishek@abhishek-Inspiron-N5110:~$ gnuradio-config-info --version  
3.7.2.1.  
abhishek@abhishek-Inspiron-N5110:~$ which gr\_modtool  
/usr/bin/gr\_modtool  
and Os Ubuntu 14.04

I am just in the learning phase of gnuradio and usrp so, please help me  
with this,  
Thanks in advance,  
Abhishek

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 14, 2015, 4:54pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/2 "2015-03-14T16:54:27Z")

</div>

Do you have GNU Radio correctly installed?  
this looks like you don’t, or you have an old installation (GNU Radio  
3.6).  
Check by running “gnuradio-config-info --version”.

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 7:43pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/3 "2015-03-15T19:43:33Z")

</div>

> Perhaps you should add the directory containing `gnuradio-runtime.pc’  
> to the PKG\_CONFIG\_PATH environment variable  
> Yes, that sounds good!

> No package ‘gnuradio-runtime’ found  
> what does this exactly mean…?  
> pkgconfig couldn’t find a .pc containing gnuradio-runtime.

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 7:35pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/4 "2015-03-15T19:35:55Z")

</div>

Hey Marcus,  
My after this command “gnuradio-config-info --version”  
i got 3.7.2.1  
later i type “pkg-config --modversion gnuradio-runtime”  
i got  
abhishek@abhishek-Inspiron-N5110:~$ pkg-config --modversion  
gnuradio-runtime  
Package gnuradio-runtime was not found in the pkg-config search path.  
Perhaps you should add the directory containing `gnuradio-runtime.pc’  
to the PKG\_CONFIG\_PATH environment variable  
No package ‘gnuradio-runtime’ found  
what does this exactly mean…?  
Thanks in advance,  
Abhishek

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 8:12pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/5 "2015-03-15T20:12:36Z")

</div>

Would you tell me how to add gnuradio-runtime.pc to the PKG\_CONFIG\_PATH  
environment variable…?  
Thanks in advance,  
Abhishek

On Mon, Mar 16, 2015 at 12:12 AM, Marcus Müller  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 9:10pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/6 "2015-03-15T21:10:33Z")

</div>

hey marcus,  
Thanks for all your help, now have completed everything properly, but I  
am  
not able to find “square\_ff” block in grc,  
would you please help me out.  
Thanks in advance,  
Abhishek

On Mon, Mar 16, 2015 at 12:44 AM, Marcus Müller  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 8:16pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/7 "2015-03-15T20:16:01Z")

</div>

Hi Abhishek,

On 03/15/2015 08:11 PM, Abhishek S. wrote:

> Would you tell me how to add gnuradio-runtime.pc to the  
> PKG\_CONFIG\_PATH environment variable…?  
> You want to add the directory containing it to that environment  
> variable. How one can do that depends on your operating system. I’m  
> pretty sure google will help you.

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 9:36pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/8 "2015-03-15T21:36:48Z")

</div>

Did you make and make install your out-of-tree module already? Does GRC  
look into the place where you install into when looking for block  
definitions?

Generally, I’d like to point you to the guided Tutorials, which are a  
bit easier to follow and currently better maintained:

[https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorials](https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials)

Best regards,  
Marcus

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 10:08pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/9 "2015-03-15T22:08:09Z")

</div>

Compare:

> My after this command “gnuradio-config-info --version”  
> i got 3.7.2.1  
> and

> ImportError: libgnuradio-runtime-3.7.7git.so.0.0.0: cannot open shared  
> object file: No such file or directory  
> You’re mixing 3.7.2.1 and 3.7.7; this can’t work. You will need to  
> uninstall both GNU Radio versions (wherever they came from), and build  
> your module again.

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 15, 2015, 9:55pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/10 "2015-03-15T21:55:28Z")

</div>

yaa I have done make and make install both, even my xml block is created  
inside the grc folder which I had shown through attachment. Later i  
copied  
that howto\_square\_ff.xml file to path “/usr/share/gnuradio/grc/blocks”  
where all my blocks are stored. This helped me to get square\_ff block in  
grc, but while running an example using that block i am stuck with an  
error

ImportError: libgnuradio-runtime-3.7.7git.so.0.0.0: cannot open shared  
object file: No such file or directory

On Mon, Mar 16, 2015 at 2:05 AM, Marcus Müller  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 16, 2015, 3:46pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/11 "2015-03-16T15:46:44Z")

</div>

my grc is 3.7.2.1… can i uninstall 3.7.7 version and then work  
on  
it…?  
and also 3.7.7 libraries might be installed due building of gnuradio  
script  
“[http://www.sbrac.org/files/build-gnuradio](http://www.sbrac.org/files/build-gnuradio)” or installing gnuradio  
through  
pybombs. can you explain me how to remove these libraries…?  
Please help me out…This might be my last querry, thanks for all  
your  
helps and suggestion…🙂

Abhishek

On Mon, Mar 16, 2015 at 2:41 AM, Abhishek S.  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [March 16, 2015, 3:53pm UTC](https://www.ruby-forum.com/t/cmake-error-cant-find-gnuradio-runtime-libraries/234576/12 "2015-03-16T15:53:32Z")

</div>

3.7.7 libraries might be installed due building of gnuradio script "  
[http://www.sbrac.org/files/build-gnuradio](http://www.sbrac.org/files/build-gnuradio)" or installing gnuradio  
through  
pybombs. can you explain me how to remove these libraries…?  
Please help me out…This might be my last querry, thanks for all  
your  
helps and suggestion…🙂  
Abhishek

On Mon, Mar 16, 2015 at 3:09 AM, Marcus Müller  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
