Cmake error: cant find gnuradio_runtime_libraries

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 and
https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig
Making your own signal processing blocks in GNU Radio - YouTube
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"
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

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”.

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

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

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
[email protected]

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
[email protected]

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

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

Best regards,
Marcus

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

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
[email protected]

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” 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…:slight_smile:

Abhishek

On Mon, Mar 16, 2015 at 2:41 AM, Abhishek S.
<[email protected]

3.7.7 libraries might be installed due building of gnuradio script "
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…:slight_smile:
Abhishek

On Mon, Mar 16, 2015 at 3:09 AM, Marcus Müller
[email protected]