Post Go back to editing

PLUTO and GNU radio

Hello,

I have a question use GNU radio with pluto.

I going through steps described here: https://wiki.analog.com/resources/tools-software/linux-software/gnuradio

In step "install and build gr-iio" I have an issue with make step:

home/tomas/prj/Pluto/gr-iio/lib/iio_math_impl.cc:30:10: fatal error: gnuradio/analog/sig_source_f.h: No such file or directory
#include <gnuradio/analog/sig_source_f.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
lib/CMakeFiles/gnuradio-iio.dir/build.make:337: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/iio_math_impl.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-iio.dir/iio_math_impl.cc.o] Error 1
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

After googling, a found this page, with information that with GNU Radio 3.8 I have to use another branch:

https://ez.analog.com/adieducation/university-program/f/q-a/117130/gr-iio-update-for-gnuradio-3-8-x

So cloned mentioned branch. But I get another error:

tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ make
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'lib/libgnuradio-iio.so....'. Stop.
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Please, could anybody help me with that?

Happy Easter!

Tomas

  • It looks like you are missing liborc. Try installing that on your machine.

    -Travis

  • Hello,

    it looks I have:

    sudo apt-list --installed:

    ...

    libopus0/bionic,now 1.1.2-1ubuntu1 amd64 [installed,automatic]
    liborc-0.4-0/bionic,now 1:0.4.28-1 amd64 [installed]
    liborcus-0.13-0/bionic,now 0.13.4-2 amd64 [installed,automatic]

    Tomas

  • I believe you need the development package liborc-dev .

    -Travis

  • Don't know how, but solved.

    I inspired myself by this topic:

    https://askubuntu.com/questions/939526/make-problem-no-rule-to-make-target-usr-lib-x86-64-linux-gnu-libpcl-common-so

    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ stat /usr/lib/x86_64-linux-gnu/liborc-0.4.so
    stat: cannot stat '/usr/lib/x86_64-linux-gnu/liborc-0.4.so': No such file or directory
    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ sudo apt-get install apt-file

    ...

    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ sudo apt-file update

    ...

    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ apt list --upgradable
    Listing... Done
    libvolk2-bin/bionic 2.2.1-2~ubuntu18.04.1~ppa1 amd64 [upgradable from: 2.0.0-2~bionic1]
    libvolk2-dev/bionic 2.2.1-2~ubuntu18.04.1~ppa1 amd64 [upgradable from: 2.0.0-2~bionic1]
    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ stat /usr/lib/x86_64-linux-gnu/liborc-0.4.so
    stat: cannot stat '/usr/lib/x86_64-linux-gnu/liborc-0.4.so': No such file or directory
    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ pat-file search /usr/lib/x86_64-linux-gnu/liborc-0.4.so

    Command 'pat-file' not found, did you mean:

    command 'apt-file' from deb apt-file
    command 'pad-file' from deb astrometry.net

    Try: sudo apt install <deb name>

    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ apt-file search /usr/lib/x86_64-linux-gnu/liborc-0.4.so
    liborc-0.4-0: /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0
    liborc-0.4-0: /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0.28.0
    liborc-0.4-dev: /usr/lib/x86_64-linux-gnu/liborc-0.4.so
    tomas@tomas-HP:~/prj/Pluto/gr-iio-upgrade-3.8$ sudo apt install liborc-0.4-dev

    And then I was able to install "another branch" mentioned in previous question.

    I think it would be useful to put information at least about "another branch" for GNU radio 3.8 to installation instructions...

    Otherwise thank you for your time and fast response.

    Best regards

    Tomas

  • Thanks for the feedback. We are slowly updating the doc around GNU Radio since its a moving target right now.

    We are trying to get into the gnuradio core and all this foolishness can be avoided :)

    -Travis